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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.2-milestone-2
    • 7.2-milestone-1
    • Old Core
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: