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

Multiple backslash are not properly handled in reference resolvers and serializers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 3.1 RC1, 3.0.1
    • 2.7.2, 3.1 M2
    • Model
    • None
    • Unknown

    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

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

            Dates

              Created:
              Updated:
              Resolved: