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

Update failed: protected property 'sizeQuota' message appears when user tries to alter User Profile details following their size quota being set via JS

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 3.1.2, 3.3.1, 3.3.2
    • Fix Version/s: 3.4
    • Component/s: Alfresco Explorer
    • Labels:
      None
    • Environment:
      Generic
      Windows 7 x64 / JDK 1.6_21 x64 / Apache Tomcat 6.0.26 / MySQL 5.1.49 / FF 3.6, IE 8
    • Bug Priority:
      Category 2

      Description

      [ Problem ]
      Update failed: protected property 'sizeQuota' message appears when user tries to alter User Profile details following their size quota being set via JS

      [ Details ]
      If a user's size quota is altered via javascript (i.e.var newVal = 5 * 1024 * 1024 * 1024; user.properties["sizeQuota"]=newVal, when the user subsequently goes into the User Profile screen in JSF and tries to add/edit details to this screen and save, the following message appears:

      Please correct the errors below then click OK.
      A system error happened during the operation: 09010028 Update failed: protected property 'sizeQuota'

      The corresponding stack is attached in alfresco.log

      [ Steps for replication ]

      1. Install Alfresco and create logon as admin
      2. Create a user (called 'test') who's quota will be changed.
      3. As admin, upload the attached js into the 'Data Dictionary/Scripts' space.
      4. As Admin, execute the script via 'Run Action'
      5. Logout and log back in as 'test'
      6. Go into User Profile and attempt to populate any of the fields and click OK.

      [ Expected result ]
      Details can be edited and comitted.

      [ Actual result ]
      Please correct the errors below then click OK.
      A system error happened during the operation: <number> Update failed: protected property 'sizeQuota'

      [ Additional details ]
      Have tested versions 3.1.2, 3.3.1 and 3.3.2 as well as altering other properties in the same script before user.save() however the same problem occurs.
      The problem can be worked around with the following procedure:

      1. Login as Admin
      2. Select 'Administration Console' and 'Manage System Users'
      3. Search for user 'test'.
      4. Update user details without changing any data.
      5. Log in as user 'test'
      6. Change the details on the 'User Profile'
      7. Save and everything works fine until the script is run again.

      Could be related to http://issues.alfresco.com/jira/browse/CHK-1869

      Attached:
      testQuotas.js
      alfresco.log

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs
                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 - 3 hours, 30 minutes
                  3h 30m

                    Structure Helper Panel