From f32d1e11b56b884c8dffb23c719a6ba89683522a Mon Sep 17 00:00:00 2001 From: "Charles E. Rolke" Date: Tue, 24 Sep 2013 19:30:38 +0000 Subject: QPID-4604: C++ Broker queue creation limit bugfix - patch from Ernie Allen Don't count a queue creation against a queue that already exists. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1525980 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/Broker.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/broker/Broker.cpp b/qpid/cpp/src/qpid/broker/Broker.cpp index 80e08dd25c..f02689a327 100644 --- a/qpid/cpp/src/qpid/broker/Broker.cpp +++ b/qpid/cpp/src/qpid/broker/Broker.cpp @@ -1294,8 +1294,9 @@ std::pair, bool> Broker::createQueue( if (!acl->authorise(userId,acl::ACT_CREATE,acl::OBJ_QUEUE,name,¶ms) ) throw framing::UnauthorizedAccessException(QPID_MSG("ACL denied queue create request from " << userId)); - if (!acl->approveCreateQueue(userId,name) ) - throw framing::UnauthorizedAccessException(QPID_MSG("ACL denied queue create request from " << userId)); + if (!queues.find(name)) + if (!acl->approveCreateQueue(userId,name) ) + throw framing::UnauthorizedAccessException(QPID_MSG("ACL denied queue create request from " << userId)); } Exchange::shared_ptr alternate; -- cgit v1.2.1