This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-3e916627-b0fc-453a-823d-7375233095a4 XWIKI-22423 Open

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-db456bcd-4c8b-4561-9a88-e28d673b34af Ilie Andriuta created this issue on 14/Aug/24 16:50
 
Summary: "newline" special character in page name is not taken into consideration on Page Reference
Issue Type: cid:jira-generated-image-avatar-3e916627-b0fc-453a-823d-7375233095a4 Bug
Affects Versions: 12.10.11
Assignee: Unassigned
Attachments: Created_Link_to_Child_page.png, Newline_Not_in__Page_Reference.png
Components: Web - Templates & Resources
Created: 14/Aug/24 16:50
Environment: Windows 11 Pro, Firefox 129, using a local instance of XWiki 16.4.2 on Oracle 19c, Tomcat 9.0.93
Priority: cid:jira-generated-image-static-major-6b6d56f0-813a-4a4e-b7ee-5072a1073d4c Major
Reporter: Ilie Andriuta
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.