This issue has been created
There are 4 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-eefb2dff-e228-4513-ab79-30766cd916f3 XWIKI-23648 Open

Impossible to use RefactoringScriptService#restore(String batchId) directly if you have programming right

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-9e857aad-ad15-402a-9c91-e8fb63873ef7 Thomas Mortagne created this issue on 30/Oct/25 18:26
 
Summary: Impossible to directly use RefactoringScriptService#restore(String batchId) directly if you have programming right
Issue Type: cid:jira-generated-image-avatar-eefb2dff-e228-4513-ab79-30766cd916f3 Bug
Affects Versions: 16.10.13
Assignee: Unassigned
Components: Refactoring
Created: 30/Oct/25 18:26
Priority: cid:jira-generated-image-static-critical-96a96a76-fe38-40e7-84f8-ffe7ff6790ef Critical
Reporter: Thomas Mortagne
Description:

And probably the same for most others RefactoringScriptService which don't take a request.

You end up with a request where right check is enabled, but no user is provided.

 
 

4 updates

 
cid:jira-generated-image-avatar-9e857aad-ad15-402a-9c91-e8fb63873ef7 Changes by Thomas Mortagne on 30/Oct/25 18:28
 
Summary: Impossible to directly use RefactoringScriptService#restore(String batchId) directly if you have programming right
Version: 16.10.11
Version: 16.10.13
Description: And probably For example the same for most others RefactoringScriptService which don't take a request following

{code}
{{velocity}}
#set ($batchId = "5cfabdc7-ecdd-49f3-90ba-a3fce03e0de2")
$services
. refactoring.restore($batchId)
{{/velocity}}
You end up with a request where right check {code}

produces the error

{code}
The author [null] of this script
is enabled, but no user is provided not allowed to restore document [xwiki:Level1 . WebHome()] with ID [11]
{code}