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

Links to wiki pages containing '|-|' in their name are broken when saved by the WYSIWYG editor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 7.4
    • None

    Description

      Put the following in a wiki page:

      [[label>>one|-|two]]
      
      image:one|-|two.png
      

      Edit in WYSIWYG mode and save without changing anything. You get:

      [[Label>>one]]
      
      image:one
      

      The problem seems to be that XHTMLMarkerResourceReferenceSerializer doesn't escape the '|-|' sequence in the entity reference. You get:

      <!--startwikilink:false|-|doc|-|one|-|two-->
      <!--startimage:false|-|attach|-|one|-|two.png-->
      

      Since '|-|' is not escaped I suppose "two" is considered a resource reference parameter. Would we break backwards compatibility if we start encoding the '|-|' now?

      Attachments

        Activity

          People

            Unassigned Unassigned
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: