This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-1b7d5467-5ad2-4777-9521-c426313a9473 XWIKI-23414 Open

Introduce relative UserReference

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-c97c54a7-824d-4b38-bdda-71c71b0cba13 Raphaël Jakse created this issue on 25/Jul/25 14:23
 
Summary: Introduce relative UserReference
Issue Type: cid:jira-generated-image-avatar-1b7d5467-5ad2-4777-9521-c426313a9473 New Feature
Affects Versions: 17.5.0
Assignee: Unassigned
Components: User
Created: 25/Jul/25 14:23
Priority: cid:jira-generated-image-static-major-cb76064d-8c75-4f3d-94e4-577606ad99eb Major
Reporter: Raphaël Jakse
Description:

Sometimes, it's useful to refer to a user in the context of the current wiki. When using entity references, it's possible. XWiki.USERNAME will refer to the USERNAME user in the current wiki.

It is currently not possible to use a UserReference for this. DocumentUserReference can be used to create a user reference from an entity reference, but this entity reference must be a DocumentReference, which requires a wiki to be set in the reference.

This means that APIs dealing with local users cannot currently use the UserReference and must use LocalDocumentReference or EntityReference instead, which works but is weaker.

A LocalDocumentUserReference or an EntityUserRference taking a relative reference would be nice to have.