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

xwikiRelativeUrl is absolute in space, page and attachment REST resources

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.4.4, 11.3
    • Fix Version/s: None
    • Component/s: REST
    • Labels:
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Date of First Response: