Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4715

Event filter in ResourceEventDistributionTrigger is wrongly configured

    XMLWordPrintableJSON

Details

    Description

      In line 88 and 89 of ResourceEventDistributionTrigger class we have:

      properties.put(EventConstants.EVENT_FILTER, "(path=" + path + "/*)");
      properties.put(EventConstants.EVENT_FILTER, "(!(" + DEAConstants.PROPERTY_APPLICATION + "=*))");
      

      That way the event filter for a specifi path (line 88) is overriden by a filter from line 99 (distributed events). Hence trigger is distributing too many distribution requests. They of course are skipped by allowedRoots property in SimpleDistributionAgent but nevertheless it's an issue.

      Attachments

        Activity

          People

            marett Timothee Maret
            maciusio Maciej Dybek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: