Chuck Rolke created QPID-4735:
---------------------------------

             Summary: C++ Broker ACL file size/count limit check bug when no 
value declared by user
                 Key: QPID-4735
                 URL: https://issues.apache.org/jira/browse/QPID-4735
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
    Affects Versions: 0.20
            Reporter: Chuck Rolke
            Assignee: Chuck Rolke


The error in the ACL code shows up when:
1. An ACL rule specifies an 'upper limit' rule such as filemaxsizeupperlimit
2. The queue_declare call from the user does not specify qpid.file_size in the 
queue declaration.

The broker passes a file_size lookup value of 0 to the ACL for checking.

The ACL code (in error) sees that the lookup value is 0 and declares the 
comparison a failure despite the fact that the value (0) is less than the 
rule's upper limit.

The fix is not to check that a lookup value is zero but just go ahead with the 
comparison.

The failure is easy to trigger in the self test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to