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

"compact" serializer is not fully compatible with "current" resolver

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.2-milestone-1
    • Fix Version/s: 7.2-milestone-2
    • Component/s: Old Core
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Here is an example:

      • go to wiki:space.page and add a velocity script
      • serialize "wiki:space.space2.page" using "compact" serializer
        -> you end up with "space2.page"
      • if you resolve it using context serializer you ends up with "wiki:space2.page"

      The issue is that "compact" serializer is based on reference element while it's expected to be based on element type IMO (it just used to be the same thing before nested spaces). At least for retro compatiblity we should make sure "compact" serializer compare the whole "space.space2" against "space", i.e. be based on entity type.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: