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

Renaming xwiki/1.0 documents with source/target names containing the > character fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4, 2.5 M1
    • Fix Version/s: 2.7.1, 3.0 M3
    • Component/s: {Unused} Core
    • Labels:
      None
    • keywords:
      bugfixingday
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      When a document is renamed, the method
      com.xpn.xwiki.doc.XWikiDocument.rename(DocumentReference, List<DocumentReference>, List<DocumentReference>, XWikiContext)
      is called. This method unconditionally tries to parse names of both source and target document as XWiki Syntax 1.0, which expects > to be followed by _, without any possibility to escape the > (see lines 5636-5637 in XWikiDocument and com.xpn.xwiki.content.parsers.LinkParser.parseTarget(StringBuffer, Link)).

      As the result, the renaming fails in the middle with an obscure error trace.

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              nickless Alex Busenius
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

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