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

DistributionEventDistributeDistributionTrigger causes distribution loop

    XMLWordPrintableJSON

Details

    Description

      The DistributionEventDistributeDistributionTrigger is listening for org/apache/sling/distribution/agent/package/distributed events.

      Assuming we have

      • an agent configured for the allowed root path /foo with DistributionEventDistributeDistributionTrigger "trigger-on-foo-distrib" and
      • a DistributionEventDistributeDistributionTrigger "trigger-on-foo-distrib" for /foo as well,

      the agent's successful delivery will trigger another distribution on the same agent.

      To circumvent that the DistributionEventDistributeDistributionTrigger should check the DistributionRequestHandler against the component that fired the event it handles and should stop propagation when the event's origin is the same request handler.

      Attachments

        Issue Links

          Activity

            People

              diru Dirk Rudolph
              diru Dirk Rudolph
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: