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

Error using the manager permissions action in the docLib on a folder that uses no inherit permissions

    Details

    • Type: Service Pack Request
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 3.3.1, 3.3.4
    • Fix Version/s: 3.4.5
    • Component/s: Installer
    • Labels:
      None
    • Environment:
      Generic
      Support: Win7 x64 / JDK 1.6.0_21 x64 / MySQL 5.1.49 Community / Tomcat 6.0.26 / FF 3.6.13 and IE 8
    • Bug Priority:
      Category 2
    • ACT Numbers:

      25308

    • Testcase ID:
      Hide

      Share-195

      Show
      Share-195

      Description

      [ Problem ]
      Error using the manager permissions action in the docLib on a folder that uses no inherit permissions

      [ Problem Description ]
      When trying to manage permissions on a parent folder which does not inherit permissions (it has permissions explicitly set in the repository-browser) the following client-side js error appears when another user attempts to 'manage permissions' within the doclib:

      this.rolePickers[r[1]] is undefined
      [Break On This Error] (function(){var q=Alfresco.util.encode...Alfresco.module.DoclibAspects("null");

      [ Steps to reproduce ]

      • install and start Alfresco 3.3.x or 3.4.x
      • create three users, user1, user2 and user3 ('user1' and 'user2' will be given explicit permissions to access the parent folder in the share site doclib, 'user3' will be given admin permissions to try and 'manage permissions' through the doclib.
      • add 'user3' to the Administrators group.
      • in Share, login as admin and create a site
      • under that site's document library create folder ('folder1') and then a sub-folder within ('sub-folder1')
      • go into the repository-browser and browse to the parent folder you've just created ('folder1')
      • switch off inherit permissions and add 'user1' and 'user2' as SiteCollaborators
      • now logoff and log back in as 'user3' in Share
      • navigate to the site's document library, click on the parent folder ('folder1') and then click Manage Permissions.

      [ Expected result ]
      Admin user can manage permissions as normal

      [ Actual result ]
      Javascript error appears:

      Error: this.rolePickers[permissions[1]] is undefined
      Source: http://<hostname>:<port>/modules/documentlibrary/permissions.js
      Line: 422

      [ Additional information ]
      I'm not able to give much more information other than what the customer has already provided.

      Code:

      if (permissions[2] in this.options.roles)

      { this.rolePickers[permissions[1]].set("name", permissions[2]); this.rolePickers[permissions[1]].set("label", this.msg("role." + permissions[2])); }
      • what we think is happening is the code is trying to fetch a non-existing picker, but the array of pickers has a missing element.

      Tested against 3.3.1, 3.3.4 and 3.4.0 RC1

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs (Inactive)
                Reporter:
                astrachan Alex Strachan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 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 - 6 hours
                  6h

                    Structure Helper Panel