Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-23138

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

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      When testing this fix XWIKI-21071 I noticed that the Import a XAR in a wiki REST service 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, so, this service could be impacted too.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              mouhb Mohamed Boussaa
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: