This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-324a72d7-c0f4-4bff-a9b3-6d4691009b8d XWIKI-22699 Open

Resolving an EntityReference of type Page to Document doesn't check page existence

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-1ee0fc59-3c77-44a3-8280-9df819c61c5d Simon Urli created this issue on 27/Nov/24 10:49
 
Summary: Resolving an EntityReference of type Page to Document doesn't check page existence
Issue Type: cid:jira-generated-image-avatar-324a72d7-c0f4-4bff-a9b3-6d4691009b8d Bug
Affects Versions: 15.10.14
Assignee: Unassigned
Components: Model
Created: 27/Nov/24 10:49
Priority: cid:jira-generated-image-static-major-f941423d-c6c8-4a9f-904d-375ccfa08daf Major
Reporter: Simon Urli
Description:

Resolving an EntityReference of type Page such as wiki:Space/Page to a Document EntityReference should return wiki:Space.Page if that page exists. Right now the resolver always return wiki:Space.Page.WebHome without performing any check.

This bug is very visible when resolving a PageResourceReference to a Document type, since the DocumentResourceReferenceResolver does perform this kind of check so there's an inconsistency here.