This issue has been created
This issue has been deleted
 
 
XWiki Platform / cid:jira-generated-image-avatar-17fc6010-98e5-4c25-ab2a-8c942a21f648 XWIKI-23389

Installing / upgrading the application can bring the instance down

 

Issue created

 
cid:jira-generated-image-avatar-69e25a5b-fd9c-4500-82c0-e3877ed15509 Raluca Stavro created this issue on 18/Jul/25 16:47
 
Summary: Installing / upgrading the application can bring the instance down
Issue Type: cid:jira-generated-image-avatar-17fc6010-98e5-4c25-ab2a-8c942a21f648 Bug
Affects Versions: 1.23
Assignee: Unassigned
Created: 18/Jul/25 16:47
Priority: cid:jira-generated-image-static-critical-a84333bf-28a7-43a9-85ef-fb047003e346 Critical
Reporter: Raluca Stavro
Description:

The cause is around https://github.com/xwiki-contrib/book-versions/blob/c81acdd94aa054388e27d1e6d908e12f05406376/application-book-versions-api/src/main/java/org/xwiki/contrib/bookversions/internal/PublishBookRightInitializer.java#L89 and it is related to the fact that every Right has a value, and that value needs to be below 64 because of the way we store right sets. And when you unregister a right that is not the last registered right, you break that whole system. So, basically, unregistering of rights is only supported when you unregister the last registered right. Plus, the values that are associated with rights need to be continuous.

 
 

Issue deleted

 
cid:jira-generated-image-avatar-69e25a5b-fd9c-4500-82c0-e3877ed15509 Raluca Stavro has deleted this issue on 18/Jul/25 16:47