This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-ce622ecd-1cc3-4f78-97e8-09b95695702a XWIKI-22618 Open

The REST API query endpoint returns invalid page URLs for nested pages

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-7df13e10-c305-415f-846c-1e77955c90e5 slauriere created this issue on 30/Oct/24 11:19
 
Summary: The REST API query endpoint returns invalid page URLs for nested pages
Issue Type: cid:jira-generated-image-avatar-ce622ecd-1cc3-4f78-97e8-09b95695702a Bug
Affects Versions: 16.4.3
Assignee: Unassigned
Components: REST
Created: 30/Oct/24 11:19
Priority: cid:jira-generated-image-static-major-3344a5cc-dfdc-47e6-82de-451f7151c4ec Major
Reporter: slauriere
Description:

Steps to reproduce

Run a query over REST which matches nested pages, for example all pages contained in space XWiki.EntityNameValidation:

/xwiki/rest/wikis/xwiki/query?type=xwql&q=where doc.fullName like 'XWiki.EntityNameValidation%25'

Actual result

Here's a sample searchresult returned:

<searchResult>
<link href="http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/XWiki/EntityNameValidation/pages/Administration" rel="http://www.xwiki.org/rel/page"/>
<type>page</type>
[...]
</searchResult>

An occurrence of /spaces is missing between /XWiki and /EntityNameValdiation.

Expected result

<searchResult>
<link href="http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/XWiki/spaces/EntityNameValidation/pages/Administration" rel="http://www.xwiki.org/rel/page"/>
<type>page</type>
[...]
</searchResult>

Regression note

XWiki 15.10.11 returns the expected search results.

 
 

1 update

 
cid:jira-generated-image-avatar-7df13e10-c305-415f-846c-1e77955c90e5 Changes by slauriere on 30/Oct/24 11:19
 
Labels: regression