This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-10d670da-c386-41e3-93be-95858d6f3232 XWIKI-25597 Open

Return 404 from the page tags REST resource when the page doesn't exist

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-2952f5dd-0008-4509-9f6b-21c80fec5b0b Michael Hamann created this issue on 27/Oct/26 11:43
 
Summary: Return 404 from the page tags REST resource when the page doesn't exist
Issue Type: cid:jira-generated-image-avatar-10d670da-c386-41e3-93be-95858d6f3232 Improvement
Affects Versions: 17.10.0
Assignee: Unassigned
Components: REST
Created: 27/Oct/26 11:43
Priority: cid:jira-generated-image-static-major-79418c16-73b7-4c3d-8f60-62dfae042305 Major
Reporter: Michael Hamann
Description:

GET /rest/wikis/{wiki}/spaces/{space}/pages/{page}/tags returns 200 with an empty list of tags when the page doesn't exist, while the other REST resources of a page (e.g., the page itself, its objects, its attachments or its history) return 404 for a page that doesn't exist.

The tags resource should also return 404 for a page that doesn't exist, so that clients can distinguish a page without tags from a missing page. As this changes the behavior of the REST API, it should be mentioned in the release notes.