[ 
https://issues.apache.org/jira/browse/SLING-7359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16318183#comment-16318183
 ] 

ASF GitHub Bot commented on SLING-7359:
---------------------------------------

tteofili commented on issue #3: SLING-7359: prevent distribution loop in 
triggers from distribution events
URL: 
https://github.com/apache/sling-org-apache-sling-distribution-core/pull/3#issuecomment-356239600
 
 
   @Buuhuu could you please rebase against latest trunk, merging of PR #2 
requires now _TestSerializer_ in _FileDistributionPackageBuilderTest_ 
implements #getContentType.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> DistributionEventDistributeDistributionTrigger causes distribution loop
> -----------------------------------------------------------------------
>
>                 Key: SLING-7359
>                 URL: https://issues.apache.org/jira/browse/SLING-7359
>             Project: Sling
>          Issue Type: Bug
>          Components: Content Distribution
>    Affects Versions: Content Distribution Core 0.2.10
>            Reporter: Dirk Rudolph
>
> The DistributionEventDistributeDistributionTrigger [is listening for 
> org/apache/sling/distribution/agent/package/distributed 
> events|https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/trigger/impl/DistributionEventDistributeDistributionTrigger.java#L67].
>  
> 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. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to