This issue has been created
There are 6 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-c0f1a494-e388-4d2c-adf5-977bfc343073 XWIKI-23138 Open

"Import a XAR in a wiki" REST API is not working as expected when "history" parameter is set with values ​​in uppercase

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-066095ca-34c8-4c21-ae7c-7bc9fc7e290b Mohamed Boussaa created this issue on 24/Apr/25 11:14
 
Summary: "Import a XAR in a wiki" REST API is not working as expected when "history" parameter is set with uppercase values
Issue Type: cid:jira-generated-image-avatar-c0f1a494-e388-4d2c-adf5-977bfc343073 Bug
Affects Versions: 16.10.5
Assignee: Unassigned
Components: REST
Created: 24/Apr/25 11:14
Priority: cid:jira-generated-image-static-major-bb9347c4-1514-4696-a350-9b850c93d9c1 Major
Reporter: Mohamed Boussaa
Description:

When testing this fix https://jira.xwiki.org/browse/XWIKI-21071 I noticed that the Import a XAR in a wiki REST service is now expecting values in lowercase for the "history" parameter. So, for example using "history=REPLACE" won't work but "history=replace" works.

It seems related to that removal: https://github.com/xwiki/xwiki-platform/commit/0a2d4f1c4c6c1a39733948e631b50d7b1df6c7de#diff-5fa518235ef8f5bc1b4c69385ceb7c061d8796308c77311c6693ffd29f1ae1f2L176-L187
 
Note that uppercase values for history parameter are also used on another REST service, so, this service could be impacted too.
 
 
 
  #
10:39
So, this service could be impacted too

 
 

6 updates

 
cid:jira-generated-image-avatar-066095ca-34c8-4c21-ae7c-7bc9fc7e290b Changes by Mohamed Boussaa on 24/Apr/25 11:16
 
Description: When testing this fix https://jira.xwiki.org/browse/ XWIKI-21071   I noticed that the [Import a XAR in a wiki REST service|https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI#H2Fwikis2F7BwikiName7D] is now expecting values in lowercase instead of uppercase for the "history" parameter. So, for example using "history=REPLACE" won't work but "history=replace" works.

It seems related to that removal: [https://github.com/xwiki/xwiki-platform/commit/0a2d4f1c4c6c1a39733948e631b50d7b1df6c7de#diff-5fa518235ef8f5bc1b4c69385ceb7c061d8796308c77311c6693ffd29f1ae1f2L176-L187]
 
Note that uppercase values for history parameter are also used on [another REST service|
[ https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI#H2Fwikimanager28Thisresourceisonlyavailablewhenusingthemulti-wikifeature29] ] , so, this service could be impacted too.
 
 
 
  #
[10:39|https://matrix.to/#/!IsiGBKXlDxGnVroBhS:matrix.xwiki.com/$1745483988481GXmjs:matrix.xwiki.com?via=matrix.xwiki.com]
So, this service could be impacted too
 
cid:jira-generated-image-avatar-64e3259a-b0a1-4891-ac84-a283897cd3e2 Changes by Simon Urli on 24/Apr/25 11:19
 
Fix Version: 17.3.0
Fix Version: 16.10.7
Assignee: Simon Urli
Priority: Major Blocker
 
cid:jira-generated-image-avatar-066095ca-34c8-4c21-ae7c-7bc9fc7e290b Changes by Mohamed Boussaa on 24/Apr/25 11:20
 
Summary: "Import a XAR in a wiki" REST API is not working as expected when "history" parameter is set with uppercase values ​​in uppercase