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

"newline" special character in page name is not taken into consideration on Page Reference

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 12.10.11
    • None
    • Windows 11 Pro, Firefox 129, using a local instance of XWiki 16.4.2 on Oracle 19c, Tomcat 9.0.93
    • Unknown

    Description

      Steps to reproduce

      1. Insert the following content into a page in wiki/source mode: 
        [[link to page with new line>>Parent.Chi
        ld.WebHome]]
      2. Save the page
      3. Create the child page from the missing link
      4. Go to the created page <server>/xwiki/bin/view/Parent/Chi%0Ald/ and click on 'Information' tab
      5. Observe the previously created child page reference
      6. Click the button to copy the reference to clipboard
      7. Go to another page and paste it into a link as a document reference

      Expected results

      The document reference contains the correct name of the page, e.g.:

      Parent.Chi%0Ald.WebHome

      Any link created that contains this reference is valid and leads correctly to the target document.

      Actual results

      The page reference doesn't contain the "newline" special character, it displays the reference as:

      Parent.Child.WebHome

      Therefore, if the reference is used in a link it leads to a non-existent page.

      The issue was reproduced also on XWiki 16.6.0, 16.4.2, 15.10.11 and 12.10.11, but it may be older.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: