Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-722

XWiki syntax renderer doesn't escape ]] in references in links

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 14.10.15, 15.6, 15.5.1
    • Rendering in the platform, 3.0 M3
    • Syntax - xwiki/2.0
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      1. Create a page named ]]#Mypage
      2. Insert a link to this page using the WYSIWYG Editor using the link dialog
      3. Click "Save & View".

      Expected result:

      The link is displayed with label ]]#Mypage.

      Actual result:

      ]]#MyPage#MyPage.WebHome]]
      

      is displayed with the link ending after the first "MyPage". Also, the link points to the current page and not the selected target page.

      This is a rendering bug, the code shows that it always existed since moving the code from xwiki-platform. The WYSIWYG editor is just used for reproduction. I was able to reproduce this on XWiki 1.7 with Syntax 1.0, in Syntax 2.0 it doesn't seem to be possible to have this kind of link at all in that version of XWiki but it reproduces basically exactly as described (though without "#") in XWiki 2.0.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: