You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org> on 2010/02/18 19:26:27 UTC

[jira] Commented: (QPID-2413) ACL - error handling/bounds checking

    [ https://issues.apache.org/jira/browse/QPID-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835320#action_12835320 ] 

Rajith Attapattu commented on QPID-2413:
----------------------------------------

In rev 911509 in Qpid trunk, I added some error handling to catch the lexical cast errors and report a proper error message.
As a security measure the ACL request is denied.
This atleast prevents the broker killing the connection.

A proper mechanism needs to be put in place to validate ACL rules.

> ACL - error handling/bounds checking
> ------------------------------------
>
>                 Key: QPID-2413
>                 URL: https://issues.apache.org/jira/browse/QPID-2413
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>    Affects Versions: 0.5, 0.6
>            Reporter: Rajith Attapattu
>            Assignee: Rajith Attapattu
>             Fix For: 0.7
>
>
> The c++ broker accepts illegal values for the following ACL properties maxqueuesize, maxqueuecount, policytype,
> Only valid ACL rules should be accepted and an exception should thrown at startup time.
> At the moment the broker throws an exception at the point when the ACL rule with illegal values is triggered.
> Steps to Reproduce:
> #set ACL rules vith invalid values
> acl allow tester@QPID all queue maxqueuesize=18446744073709551617
> acl allow tester@QPID all queue maxqueuesize=-1
> acl allow tester@QPID all queue policytype=invalid_policy_type

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org