Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6467

`AllPermission` not checked when updating `ConditionalPermissionAdmin`

    XMLWordPrintableJSON

Details

    Description

      `ConditionalPermissionUpdate.commit()` should check whether the caller has `AllPermission` before committing the updated permissions. The Javadocs state:

      "Throws:

          SecurityException – If the caller does not have AllPermission.

          IllegalStateException – If this update's Conditional Permissions are not valid or inconsistent. For example, this update has two Conditional Permissions in it with the same name"

      This check is not performed (it is performed in the deprecated `addConditionalPermissionInfo()` and `setConditionalPermissionInfo()` methods).

      As a result, there is no way to prevent arbitrary code that can access the `ConditionalPermissionAdmin` from modifying the permissions at will.

       

       

      Attachments

        Issue Links

          Activity

            People

              karlpauls Karl Pauls
              joeldudley Joel Dudley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: