From dev-return-85043-archive-asf-public=cust-asf.ponee.io@sling.apache.org Sun Jan 7 14:16:17 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 559B2180654 for ; Sun, 7 Jan 2018 14:16:17 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 451DB160C29; Sun, 7 Jan 2018 13:16:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8896C160C17 for ; Sun, 7 Jan 2018 14:16:16 +0100 (CET) Received: (qmail 52556 invoked by uid 500); 7 Jan 2018 13:16:15 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 52545 invoked by uid 99); 7 Jan 2018 13:16:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jan 2018 13:16:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 16534C054C for ; Sun, 7 Jan 2018 13:16:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id nMGX4qG3c9Zd for ; Sun, 7 Jan 2018 13:16:14 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 079F85FAF9 for ; Sun, 7 Jan 2018 13:16:13 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 813DEE0D50 for ; Sun, 7 Jan 2018 13:16:10 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id C74C7240DE for ; Sun, 7 Jan 2018 13:16:06 +0000 (UTC) Date: Sun, 7 Jan 2018 13:16:06 +0000 (UTC) From: "Dirk Rudolph (JIRA)" To: dev@sling.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SLING-7359) DistributionEventDistributeDistributionTrigger causes distribution loop MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Dirk Rudolph created SLING-7359: ----------------------------------- Summary: 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]. So assuming we have a agent configured for the allowed root path /foo and trigger 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 requires the DistributionRequestHandler api to be extended by a method name (for example) representing the owner's name. -- This message was sent by Atlassian JIRA (v6.4.14#64029)