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

Multiple backslash are not properly handled in reference resolvers and serializers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.7.2, 3.1 M2
    • Fix Version/s: 3.1 RC1, 3.0.1
    • Component/s: Model
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Resolver: Whatever the number of backslashes, it escape the following character even if the backslash itself is actually escaped by a backslash. Said another way, there is no escaping handling of the escaping character itself.

      Backslashes number should be taken into account and only an odd number of backslashes is supposed to escape. Also backslashes should be systematically unescaped/escaped.

      Serializer: the serializer follows the same "rule" and does not escape backslashes.

      Here is a demonstrative use case showing the issue (serialize and then parse):

      • wiki space\ page -> wiki:space\.page -> defaultwiki defaultspace wikispacepage

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: