Service Packs and Hot Fixes
  1. Service Packs and Hot Fixes
  2. MNT-6152

Lock icon displayed for documents with expired lock

    Details

      Description

      Documents with an expired lock still have a lock icon displayed in the Web Client browse view because the icon is shown regardless of the cm:expiryDate property.
      The problem relies in UILockIcon.java :

      Object val = getValue();
      NodeRef ref = null;
      if (val instanceof NodeRef)
      {
      ref = (NodeRef)val;
      if (nodeService.exists(ref) && nodeService.hasAspect(ref, ContentModel.ASPECT_LOCKABLE) == true)

      { lockUser = (String)nodeService.getProperty(ref, ContentModel.PROP_LOCK_OWNER); }

      }
      final boolean locked = lockUser != null;

      The LockService.getLockStatus method should be called instead of guessing status through the NodeService.

        Issue Links

          Activity

          Hide
          Alfresco QA Team added a comment -

          Successfully validated on Alfresco Enterprise v3.4.9 (678).

          Show
          Alfresco QA Team added a comment - Successfully validated on Alfresco Enterprise v3.4.9 (678).

            People

            • Assignee:
              Closed Bugs
              Reporter:
              Philippe DE RIVAROLA
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m