From commits-return-17378-apmail-activemq-commits-archive=activemq.apache.org@activemq.apache.org Wed Nov 30 16:14:02 2011 Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E014A9B12 for ; Wed, 30 Nov 2011 16:14:01 +0000 (UTC) Received: (qmail 48236 invoked by uid 500); 30 Nov 2011 16:14:01 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 48204 invoked by uid 500); 30 Nov 2011 16:14:01 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 48147 invoked by uid 99); 30 Nov 2011 16:14:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 16:14:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 16:14:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E0981A9F0A for ; Wed, 30 Nov 2011 16:13:40 +0000 (UTC) Date: Wed, 30 Nov 2011 16:13:40 +0000 (UTC) From: "Hiram Chirino (Updated) (JIRA)" To: commits@activemq.apache.org Message-ID: <2104236958.26490.1322669620921.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1059911416.6684.1314883269777.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (APLO-86) Subscription with exclusive:true and auto-delete:true should not redeliver messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/APLO-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hiram Chirino updated APLO-86: ------------------------------ Fix Version/s: (was: 1.0) 1.0-beta6 The 'auto-delete' has also been removed. > Subscription with exclusive:true and auto-delete:true should not redeliver messages > ----------------------------------------------------------------------------------- > > Key: APLO-86 > URL: https://issues.apache.org/jira/browse/APLO-86 > Project: ActiveMQ Apollo > Issue Type: Bug > Reporter: Lionel Cons > Assignee: Hiram Chirino > Fix For: 1.0-beta6 > > > The exclusive and auto-delete subscription options can be combined to create a private reply queue. > The current Apollo snapshot does not seem to always delete unconsumed messages, allowing a rogue client to consume them. > My test scenario: > - c1 subscribes to /queue/foo with exclusive:true and auto-delete:true and ack:client > - c1 sends messages with the appropriate reply-to header, expecting replies to go to /queue/foo > - (rogue) c2 subscribes to /queue/foo with the intent to steal messages, it does not get any because of exclusive:true > - c1 receives and acks messages and then decides to quit > - there are not yet delivered or not yet acked messages in the queue > - c1 unsubscribes and disconnects > - the broker delivers the pending messages to c2 before/while deleting the queue > IMHO, the broker should not deliver messages to c2 in this situation. > The best solution is probably to forbid subscribing to a queue that has a subscription with both exclusive:true and auto-delete:true. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira