This issue has been created
There are 6 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-14a09931-35b8-4ab7-b31c-e2a179bfc29c XWIKI-24139 In Progress

Failures when trying to access /wikis/query endpoint

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-72a15be1-c00e-4679-bc56-628673d2e389 Thomas Mortagne created this issue on 19/Mar/26 11:28
 
Summary: Failures when trying to access /wikis/query endpoint
Issue Type: cid:jira-generated-image-avatar-14a09931-35b8-4ab7-b31c-e2a179bfc29c Bug
Affects Versions: 17.10.0-rc-1
Assignee: Unassigned
Components: REST
Created: 19/Mar/26 11:28
Priority: cid:jira-generated-image-static-blocker-0515c688-e04e-4c3d-8929-718643e09447 Blocker
Reporter: Thomas Mortagne
Description:

The endpoint /wikis/query always conflicted with endpoint /wikis/

{wikiName}

, but XWIKI-17936 made it worst by setting the wiki to (the often not existing) wiki "query" when calling it.

The path /wikis/query was a very bad idea (should have been /query probably, since it's not returning wiki descriptors) but it's hard to change now.

 
 

6 updates

 
cid:jira-generated-image-avatar-72a15be1-c00e-4679-bc56-628673d2e389 Changes by Thomas Mortagne on 19/Mar/26 11:28
 
Fix Version: 18.2.0-rc-1
Fix Version: 17.10.5
Description: The endpoint /wikis/query always conflicted with endpoint /wikis/ \ {wikiName}, but XWIKI-17936 made it worst by setting the wiki to (the often not existing) wiki "query" when calling it.

The path /wikis/query was a very bad idea (should have been /query probably, since it's not returning wiki descriptors) but it's hard to change now.
Assignee: Thomas Mortagne
Status: Open In Progress
Labels: regression
 
 

1 comment

 
cid:jira-generated-image-avatar-72a15be1-c00e-4679-bc56-628673d2e389 Thomas Mortagne on 19/Mar/26 11:30
 

As suggested by Michael Hamann, the simplest would probably be to do the context switching only when the wiki exists (which make sense for any endpoint anyway).