This issue has been created
There are 6 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-6029dc3e-ad3b-4ad5-80ce-35cb9cb2661d XWIKI-22222 Open

Add the concept of "request effective author"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-75680b47-0acf-47bf-a2b1-c8ecc82859b9 Marius Dumitru Florea created this issue on 10/Jun/24 10:58
 
Summary: Add the concept of "request effective author"
Issue Type: cid:jira-generated-image-avatar-6029dc3e-ad3b-4ad5-80ce-35cb9cb2661d New Feature
Affects Versions: 15.10.10
Assignee: Unassigned
Components: Old Core
Created: 10/Jun/24 10:58
Priority: cid:jira-generated-image-static-major-b2de54ac-097c-4725-8f3a-2d58525debde Major
Reporter: Marius Dumitru Florea
Description:

When the server-side receives a request to save some content or to execute / render some unsaved content, it correctly assumes that the content author is the currently authenticated user. This means that the content is saved or executed with the rights of the current user. This is fine most of the time, but there are some cases where we want to save or execute the content with less access rights. To be precise:

  • we want the current user to appear as author in the history, because the request was sent by them
  • we don't want the content to get / inherit all the access rights of the current user

The second point could be implemented using "document access rights" but:

  • document rights are not going to be implemented anytime soon
  • there will be a migration phase at the beginning, so it won't be available for some of the existing pages
  • even for documents that are migrated to document rights, there are still cases where the content author is checked (e.g. display macro inside async macro, cache macro, PDF viewer delegating view right of the author, etc.)

For these reasons, following Thomas Mortagne suggestion, I propose to introduce the concept of "request effective author":

  • the user that is responsible in terms of access rights for the submitted content
  • is the currently authenticated user by default (if not set to a different value by some extension)
 
 

6 updates

 
cid:jira-generated-image-avatar-75680b47-0acf-47bf-a2b1-c8ecc82859b9 Changes by Marius Dumitru Florea on 10/Jun/24 10:58
 
Fix Version: 16.5.0-rc-1
Fix Version: 16.4.1
Fix Version: 15.10.11
Difficulty: Unknown Medium
Assignee: Marius Dumitru Florea
Tests: Unit