Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-15594

Permissions for non-existent users can't be removed anymore

    Details

      Description

      Description
      Since MNT-12792 has been fixed we introduced a check in permissions.post.json.js to prevent the addition of permission for non-existing users.
      But it is also preventing the removal of permission for non-existing users that may have been created before an upgrade to 5.0.1.
      The check should only prevent the addition (and NOT the removal) of permissions for non-existing users.

      Steps to reproduce

      1. Install an Alfresco with a version < 5.0.1
      2. Use Alfresco Javascript API to set permission on a node to a user that does NOT exist:
        document.setPermission("Coordinator","BOB");
      3. Upgrade Alfresco to 5.0.1+
      4. Display the permissions of the node
      5. Remove the "blank" permission and save
      6. Display the permissions of the node once again

      Actual result
      The "blank" permission (corresponding to the permission set for a non-existing user) is NOT removed.

      Expected result
      The "blank" permission is removed.

      Notes

      • attached is a fix proposal

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs
                Reporter:
                croux Corentin Roux [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 20 minutes
                  2d 20m