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

Link to unexisting document produce "parent" query string when parsed back from XHTML

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5 M2
    • Fix Version/s: 2.5 RC1
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • Tests:
      Integration
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      A parent information is dynamically added to a document link when producing the XHTML when the document does not exist. The problem is that XHTML parser expect the query string in the href to be the source one and does not know that parent parameter is dynamically generated.

      The result is that when you have a page containing
      [[doc:unexistingdocument]]
      edit with the WYSIWYG and then save, it becomes
      [[doc:unexistingdocument?parent="thecurrentpage"]]

      The solution is to save everything Link object is containing in the XHTML marker to not loose it.

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              tmortagne Thomas Mortagne
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: