Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 522502

Summary: ACL processing does not handle wildcards correctly
Product: Red Hat Enterprise MRG Reporter: Issue Tracker <tao>
Component: qpid-cppAssignee: Rajith Attapattu <rattapat+nobody>
Status: CLOSED ERRATA QA Contact: ppecka <ppecka>
Severity: medium Docs Contact:
Priority: high    
Version: 1.1CC: freznice, gsim, iboverma, lbrindle, mcressma, ppecka, tao
Target Milestone: 1.2   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-03 09:18:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 527551    

Description Issue Tracker 2009-09-10 14:44:31 UTC
Escalated to Bugzilla from IssueTracker

Comment 1 Issue Tracker 2009-09-10 14:44:33 UTC
Event posted on 09-09-2009 09:43am EDT by rrajaram

Description of problem:

There seems to be a problem processing wildcards in ACL. e.g.

ACL:
acl allow tester@QPID unbind exchange name=foo queuename=bar routingkey=foo.*

Command:
qpid-config -a tester/tester@localhost unbind foo bar foo.bar

Broker:
2009-aug-21 11:47:42 info ACL Deny id:tester@QPID action:unbind ObjectType:exchange Name:foo
2009-aug-21 11:47:42 error Execution exception: not-allowed: ACL denied exchange unbind request from tester@QPID (qpid/broker/SessionAdapter.cpp:203)

I believe this is due to a bug in AclData::lookup
   }else if (!matchProp(paramItr->second, pMItr->second)){
should read
   }else if (!matchProp(pMItr->second, paramItr->second)){

NOTE:
This problem has already been reported at Apache under issue Id QPID-2062

How reproducible:

Always

Steps to Reproduce:

Create a wild card acl and then try to bind

Actual results:

ACL wild card is not honored

Expected results:

ACL wild card should be honored

Additional info:

https://issues.apache.org/jira/browse/QPID-2062
This event sent from IssueTracker by mcressma  [SEG - MRG]
 issue 340308

Comment 3 Rajith Attapattu 2009-09-11 23:37:31 UTC
Applied patch from Tim at rev 813850 (trunk) and I also added test cases at the same rev.

Comment 6 ppecka 2009-10-22 11:40:47 UTC
The issue has been fixed on RHEL 4.8 / 5.4 i386 / x86_64 on packages:

# rpm -qa | grep qpid | sort -u
python-qpid-0.5.752581-4.el5
qpidc-0.5.752581-29.el5
qpidc-devel-0.5.752581-29.el5
qpidc-rdma-0.5.752581-29.el5
qpidc-ssl-0.5.752581-29.el5
qpidd-0.5.752581-29.el5
qpidd-acl-0.5.752581-29.el5
qpidd-devel-0.5.752581-29.el5
qpid-dotnet-0.4.738274-2.el5
qpidd-rdma-0.5.752581-29.el5
qpidd-ssl-0.5.752581-29.el5
qpidd-xml-0.5.752581-29.el5
rh-tests-distribution-MRG-Messaging-qpid_common-1.5-15

-> VERIFIED

Comment 7 Irina Boverman 2009-10-28 17:39:39 UTC
Release note added. If any revisions are required, please set the 
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

New Contents:
Corrected problem processing wildcards in ACL (522502)

Comment 8 Lana Brindley 2009-11-24 03:19:24 UTC
Release note updated. If any revisions are required, please set the 
"requires_release_notes"  flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

Diffed Contents:
@@ -1 +1,8 @@
-Corrected problem processing wildcards in ACL (522502)+Messaging bug fix.
+
+C: Creating an access control list (ACL) that contains a wildcard
+C: The wildcard is not honoured.
+F:
+R:
+
+NEED FURTHER INFO FOR RELNOTE.

Comment 9 Rajith Attapattu 2009-11-24 17:01:32 UTC
I don't think we need to add any release notes as the JIRA itself is very descriptive. Hence I am removing the release note flag.

Comment 10 Rajith Attapattu 2009-11-24 17:01:32 UTC
Deleted Release Notes Contents.

Old Contents:
Messaging bug fix.

C: Creating an access control list (ACL) that contains a wildcard
C: The wildcard is not honoured.
F:
R:

NEED FURTHER INFO FOR RELNOTE.

Comment 12 errata-xmlrpc 2009-12-03 09:18:16 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1633.html