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

xwikiRelativeUrl is absolute in space, page and attachment REST resources

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 8.4.4, 11.3
    • REST
    • Unknown

    Description

      The xwikiRelativeUrl property has been introduced by XWIKI-3346 in XWiki 1.8. It's not easy to determine when we broke it but right now its value is an absolute URL. You can check with:

      • /xwiki/rest/wikis/xwiki/spaces/Sandbox/
      • /xwiki/rest/wikis/xwiki/spaces/Sandbox/pages/WebHome
      • /xwiki/rest/wikis/xwiki/spaces/Sandbox/pages/WebHome/attachments

      The issue seems to be related to the fact that ExternalServletURLFactory is put on the XWiki context and it always returns an absolute URL (as its name suggests).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: