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

Improve URL backward-compatibility after introduction of Nested Spaces

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.2-milestone-1
    • Fix Version/s: 7.4-milestone-1
    • Component/s: Old Core, URLs
    • Labels:
      None
    • Tests:
      Unit, Integration
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      Description

      Ok I brainstormed with Thomas Mortagne (and Denis Gervalle complained before but I didn't follow him at the time and I was wrong) and we agreed that it's better for backward-compatibility to do this:

      • If the first segment is not an action name, then consider that the action is "view" (whether showview is true or false)
      • If the first segment is an action name then always consider that it represents an action (whether showview is true or false). e.g. if the first space is called "view" then "view/view" will need to be used to produce a view URL for it.
      • Modify the URL serialization to output "view/<first space name>" when the first space name is an action name and the action is View (and showview = false)

      Right now, we have the limitations mentioned in the Release Notes of 7.2: http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72M1#HURLs (caused by XWIKI-12169) and this is causing XWIKI-12834 for example.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                vmassol Vincent Massol
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: