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

Generated REST URL invalid when the page name contains ;

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.10.19
    • REST
    • None
    • Unknown

    Description

      Steps to reproduce:

      1. Create a page named "Weird; Reference".
      2. Inspect the HTML and copy the value of the data-xwiki-rest-url attribute of the HTML element.
      3. Open the copied URL.

      Expected result:

      The document is returned by the REST API.

      Actual result:

      An error that the document isn't found is displayed.

      This is because the URL in the attribute is /xwiki/rest/wikis/xwiki/spaces/Weird;%20Reference/pages/WebHome while it should be /xwiki/rest/wikis/xwiki/spaces/Weird%3B%20Reference/pages/WebHome/requiredRights.

      When opening the correct URL, also all URLs in the XML are wrong apart from the self reference:

      Attachments

        Activity

          People

            Unassigned Unassigned
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: