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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.7.1, 3.0 M3
    • 2.4, 2.5 M1
    • {Unused} Core
    • None
    • bugfixingday
    • Unknown

    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

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

            Dates

              Created:
              Updated:
              Resolved: