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 |