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

Wrong hrel links for REST attachments, objects...

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Hi all, 

      Using the great xwiki platform to backing up the content of nudger.fr

      I noticed a bug on some REST "rel" url formats when querying pages with multiple spaces. 

       

      If i go to the rest document, and look at the links section, i got : 
       

      • <link href="https://WIKI_HOST/rest/wikis/xwiki/spaces/verticals/spaces/tv/spaces/technologies-tv-2" rel="http://www.xwiki.org/rel/space"/>
      • <link href="https://WIKI_HOST/rest/wikis/xwiki/spaces/verticals/tv/technologies-tv-2/pages/WebHome/history" rel="http://www.xwiki.org/rel/history"/>
      • <link href="https://WIKI_HOST/rest/wikis/xwiki/spaces/verticals/tv/technologies-tv-2/pages/WebHome/attachments" rel="http://www.xwiki.org/rel/attachments"/>
      • <link href="https://WIKI_HOST/rest/wikis/xwiki/spaces/verticals/tv/technologies-tv-2/pages/WebHome/objects" rel="http://www.xwiki.org/rel/objects"/>
      • <link href="https://WIKI_HOST/rest/syntaxes" rel="http://www.xwiki.org/rel/syntaxes"/>
      • <link href="https://WIKI_HOST/rest/wikis/xwiki/spaces/verticals/spaces/tv/spaces/technologies-tv-2/pages/WebHome" rel="self"/>
      • <link href="https://WIKI_HOST/rest/wikis/xwiki/classes/verticals.tv.technologies-tv-2.WebHome" rel="http://www.xwiki.org/rel/class"/>
         

      Looking deeper : 

      the history, attachments and objects url are wrong : 

      The "spaces" prefix seems to be missing for all second level and more spaces.

       

      Best regards

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: