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

Modularize the redirection logic in XWikiAction

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 14.0-rc-1
    • 13.10.2
    • Old Core
    • None
    • Unit
    • Unknown
    • Awaiting Committer feedback

    Description

      Current, redirections are only supported for pages based on the presence of a XWiki.RedirectClass in the page. See https://github.com/xwiki/xwiki-platform/blob/69d9428f6c4eb384665346003f3e342abc19c40b/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/XWikiAction.java#L578 and https://github.com/xwiki/xwiki-platform/blob/69d9428f6c4eb384665346003f3e342abc19c40b/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/XWikiAction.java#L876

      This logic can be modularized by loading a dedicated role and make them redirect the user.

      This involves:

      • introducing a new role
      • move the existing logic to a new component
      • use the same logic for moved attachments redirection

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: