Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-21992

BehaviourFilterImpl.isEnabled(NodeRef, QName) is checking wrong QName in case of subClass

    Details

    • Triage:
      ACE
    • Resolution Time Custom Field:
      20 weeks, 2 days, 20 hours, 45 minutes, 34 seconds

      Description

      Hi,

      In class BehaviourFilterImpl, method boolean isEnabled(NodeRef nodeRef, QName className) is checking for subclasses of className to decide whether a behaviour (policy) is enabled.

      But if it is the case dictionaryService.isSubClass(className, classCheck) (line 506) is true, then classFilters should be retrieved for classCheck instead of className but this is not the case.

      Hence line 510,

      MutableInt filter = classFilters.get(className);

      should be replaced by :

      MutableInt filter = classFilters.get(classCheck);

      Regards,

      Nicolas

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                nicolasbarithel Nicolas Barithel
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: