There are 3 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-2af21a57-8ea8-4546-8622-0d9cb1071a63 XWIKI-23162 Open

Upload of XAR file by REST API not working any longer in 16.x and 17.x

 
View issue   ยท   Add comment
 

3 comments

 
cid:jira-generated-image-avatar-d41dba2d-2342-4c5b-b118-e904a947d094 Ralf on 05/May/25 12:29
 

Hallo Thomas Mortagne ,

yes, my above cURL call is working with v15.10.16, but not with v16.x and also not with v17.x.
But thanks to your link above, I've found out what was the problem:

In my cURL call above, the following header is missing:
 -H "Content-type:application/octet-stream"  

When I add this header in my REST API call, everything works find in 15.x, 16.x and 17.x

Thank you very much for your kind help.

 
cid:jira-generated-image-avatar-d41dba2d-2342-4c5b-b118-e904a947d094 Ralf on 05/May/25 12:29
 
Hallo [~tmortagne] ,

yes, my above cURL call is working with v15.10.16, but not with v16.x and also not with v17.x.
But thanks to your link above, I've found out what was the problem:

In my cURL call above, the following header is missing:
 {{-H "Content-type:application/octet-stream" }} 

When I add this header in my REST API call, everything works find in 15.x, 16.x and 17.x
.
Seems this header is optional in 15x, but mandatory in 16.x and 17.x.

Thank you very much for your kind help.
 
cid:jira-generated-image-avatar-d41dba2d-2342-4c5b-b118-e904a947d094 Ralf on 05/May/25 12:37
 
Hallo [~tmortagne] ,

yes, my above cURL call is working with v15.10.16, but not with v16.x and also not with v17.x.
But thanks to your link above, I've found out what was the problem:

In my cURL call above, the following header is missing:
 {{-H "Content-type:application/octet-stream" }} 

When I add this header in my REST API call, everything works
find fine in 15.x, 16.x and 17.x.
Seems this header is optional in 15x, but mandatory in 16.x and 17.x.

Thank you very much for your kind help.