There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-5804759b-ba8e-41a0-b15c-d3369656f3d2 XWIKI-23162 In Progress

Upload of XAR file by REST API not working any longer in 16.x when not providing the content type explicitly

 
View issue   ·   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-efefe35a-b45c-4877-aa22-e3bd87894771 Thomas Mortagne on 26/May/25 17:40
 

According to curl log, it's actually sending multipart/form-data as Content-Type by default. I guess it's the usual limitation with Jersey not being able to deal with servlet request already manipulated before reach it.

 
cid:jira-generated-image-avatar-efefe35a-b45c-4877-aa22-e3bd87894771 Thomas Mortagne on 26/May/25 17:41
 
According to curl log, it's actually sending {{multipart/form-data}} as {{Content-Type}} by default. I guess it's the usual limitation with Jersey not being able to deal with servlet request already manipulated (and so “consumed”) before reach it in the case of a {{multipart/form-data}} .