Uploaded image for project: 'Book Versions'
  1. Book Versions
  2. BVERSION-236

Installing / upgrading the application can bring the instance down

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.24
    • 1.23
    • None
    • None
    • Unknown

    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 right sets are stored. 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.

      Attachments

        Activity

          People

            ralucamorosan Raluca Stavro
            ralucamorosan Raluca Stavro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: