You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Gordon Sim (Created) (JIRA)" <ji...@apache.org> on 2012/04/20 10:54:42 UTC
[jira] [Created] (QPID-3964) Incorrect ACL checks for passive
declares
Incorrect ACL checks for passive declares
-----------------------------------------
Key: QPID-3964
URL: https://issues.apache.org/jira/browse/QPID-3964
Project: Qpid
Issue Type: Bug
Components: C++ Broker
Affects Versions: 0.16
Reporter: Gordon Sim
Assignee: Gordon Sim
Fix For: 0.17
The broker checks for a 'create' permission when responding to a passive declare. This is not correct as a passive declare explicitly *does not* create the exchange/queue in question.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org
[jira] (QPID-3964) Incorrect ACL checks for passive declares
Posted by "jiraposter@reviews.apache.org (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-3964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258181#comment-13258181 ]
jiraposter@reviews.apache.org commented on QPID-3964:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4827/
-----------------------------------------------------------
Review request for Ted Ross, Chug Rolke and rajith attapattu.
Summary
-------
At present, the broker enforces the create permission for passive declares, albeit with the option of distinguishing that case through a value for the 'passive' property. This is unintuitive and causes confusion. The attached change removes the 'passive' property from the 'create' actions, and enforces the 'access' action instead for passive declares. As a passive declare is similar in nature to Queue- or Exchange- Query, this is more consistent.
Note however that this change would not be backwards compatible for all possible ACLs. I can't see any case where the required change to the ACL would not be an improvement, but important to recignise that a change may in some cases be required.
This addresses bug QPID-3964.
https://issues.apache.org/jira/browse/QPID-3964
Diffs
-----
/trunk/qpid/cpp/src/qpid/broker/AclModule.h 1328252
/trunk/qpid/cpp/src/qpid/broker/Broker.cpp 1328252
/trunk/qpid/cpp/src/qpid/broker/SessionAdapter.cpp 1328252
/trunk/qpid/cpp/src/tests/acl.py 1328252
Diff: https://reviews.apache.org/r/4827/diff
Testing
-------
Fixed existing tests to cover the new approach; make check passes.
Thanks,
Gordon
> Incorrect ACL checks for passive declares
> -----------------------------------------
>
> Key: QPID-3964
> URL: https://issues.apache.org/jira/browse/QPID-3964
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Affects Versions: 0.16
> Reporter: Gordon Sim
> Assignee: Gordon Sim
> Fix For: 0.17
>
>
> The broker checks for a 'create' permission when responding to a passive declare. This is not correct as a passive declare explicitly *does not* create the exchange/queue in question.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org
[jira] [Commented] (QPID-3964) Incorrect ACL checks for passive
declares
Posted by "jiraposter@reviews.apache.org (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-3964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258203#comment-13258203 ]
jiraposter@reviews.apache.org commented on QPID-3964:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4827/#review7067
-----------------------------------------------------------
Ship it!
The reasoning behind this is clear enough. In the checkin comment please also describe the deletion of the 'passive' property.
- Chug
On 2012-04-20 10:38:09, Gordon Sim wrote:
bq.
bq. -----------------------------------------------------------
bq. This is an automatically generated e-mail. To reply, visit:
bq. https://reviews.apache.org/r/4827/
bq. -----------------------------------------------------------
bq.
bq. (Updated 2012-04-20 10:38:09)
bq.
bq.
bq. Review request for Ted Ross, Chug Rolke and rajith attapattu.
bq.
bq.
bq. Summary
bq. -------
bq.
bq. At present, the broker enforces the create permission for passive declares, albeit with the option of distinguishing that case through a value for the 'passive' property. This is unintuitive and causes confusion. The attached change removes the 'passive' property from the 'create' actions, and enforces the 'access' action instead for passive declares. As a passive declare is similar in nature to Queue- or Exchange- Query, this is more consistent.
bq.
bq. Note however that this change would not be backwards compatible for all possible ACLs. I can't see any case where the required change to the ACL would not be an improvement, but important to recignise that a change may in some cases be required.
bq.
bq.
bq. This addresses bug QPID-3964.
bq. https://issues.apache.org/jira/browse/QPID-3964
bq.
bq.
bq. Diffs
bq. -----
bq.
bq. /trunk/qpid/cpp/src/qpid/broker/AclModule.h 1328252
bq. /trunk/qpid/cpp/src/qpid/broker/Broker.cpp 1328252
bq. /trunk/qpid/cpp/src/qpid/broker/SessionAdapter.cpp 1328252
bq. /trunk/qpid/cpp/src/tests/acl.py 1328252
bq.
bq. Diff: https://reviews.apache.org/r/4827/diff
bq.
bq.
bq. Testing
bq. -------
bq.
bq. Fixed existing tests to cover the new approach; make check passes.
bq.
bq.
bq. Thanks,
bq.
bq. Gordon
bq.
bq.
> Incorrect ACL checks for passive declares
> -----------------------------------------
>
> Key: QPID-3964
> URL: https://issues.apache.org/jira/browse/QPID-3964
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Affects Versions: 0.16
> Reporter: Gordon Sim
> Assignee: Gordon Sim
> Fix For: 0.17
>
>
> The broker checks for a 'create' permission when responding to a passive declare. This is not correct as a passive declare explicitly *does not* create the exchange/queue in question.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org
[jira] (QPID-3964) Incorrect ACL checks for passive declares
Posted by "jiraposter@reviews.apache.org (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-3964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258185#comment-13258185 ]
jiraposter@reviews.apache.org commented on QPID-3964:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4827/#review7070
-----------------------------------------------------------
Ship it!
This is an improvement and should remove one source of confusion for ACL writers.
- Ted
On 2012-04-20 10:38:09, Gordon Sim wrote:
bq.
bq. -----------------------------------------------------------
bq. This is an automatically generated e-mail. To reply, visit:
bq. https://reviews.apache.org/r/4827/
bq. -----------------------------------------------------------
bq.
bq. (Updated 2012-04-20 10:38:09)
bq.
bq.
bq. Review request for Ted Ross, Chug Rolke and rajith attapattu.
bq.
bq.
bq. Summary
bq. -------
bq.
bq. At present, the broker enforces the create permission for passive declares, albeit with the option of distinguishing that case through a value for the 'passive' property. This is unintuitive and causes confusion. The attached change removes the 'passive' property from the 'create' actions, and enforces the 'access' action instead for passive declares. As a passive declare is similar in nature to Queue- or Exchange- Query, this is more consistent.
bq.
bq. Note however that this change would not be backwards compatible for all possible ACLs. I can't see any case where the required change to the ACL would not be an improvement, but important to recignise that a change may in some cases be required.
bq.
bq.
bq. This addresses bug QPID-3964.
bq. https://issues.apache.org/jira/browse/QPID-3964
bq.
bq.
bq. Diffs
bq. -----
bq.
bq. /trunk/qpid/cpp/src/qpid/broker/AclModule.h 1328252
bq. /trunk/qpid/cpp/src/qpid/broker/Broker.cpp 1328252
bq. /trunk/qpid/cpp/src/qpid/broker/SessionAdapter.cpp 1328252
bq. /trunk/qpid/cpp/src/tests/acl.py 1328252
bq.
bq. Diff: https://reviews.apache.org/r/4827/diff
bq.
bq.
bq. Testing
bq. -------
bq.
bq. Fixed existing tests to cover the new approach; make check passes.
bq.
bq.
bq. Thanks,
bq.
bq. Gordon
bq.
bq.
> Incorrect ACL checks for passive declares
> -----------------------------------------
>
> Key: QPID-3964
> URL: https://issues.apache.org/jira/browse/QPID-3964
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Affects Versions: 0.16
> Reporter: Gordon Sim
> Assignee: Gordon Sim
> Fix For: 0.17
>
>
> The broker checks for a 'create' permission when responding to a passive declare. This is not correct as a passive declare explicitly *does not* create the exchange/queue in question.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org
[jira] [Commented] (QPID-3964) Incorrect ACL checks for passive
declares
Posted by "Gordon Sim (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-3964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258127#comment-13258127 ]
Gordon Sim commented on QPID-3964:
----------------------------------
There is a 'passive' property that can be specified to give explicit permission for passive declares. That suggests that the current scheme was at some level intentional. It requires a 'create' permission with property 'passive' set to true however, which is odd. A passive declare is much like e.g. a query which requires the 'access' permission.
> Incorrect ACL checks for passive declares
> -----------------------------------------
>
> Key: QPID-3964
> URL: https://issues.apache.org/jira/browse/QPID-3964
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Affects Versions: 0.16
> Reporter: Gordon Sim
> Assignee: Gordon Sim
> Fix For: 0.17
>
>
> The broker checks for a 'create' permission when responding to a passive declare. This is not correct as a passive declare explicitly *does not* create the exchange/queue in question.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org
[jira] [Resolved] (QPID-3964) Incorrect ACL checks for passive
declares
Posted by "Gordon Sim (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-3964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gordon Sim resolved QPID-3964.
------------------------------
Resolution: Fixed
> Incorrect ACL checks for passive declares
> -----------------------------------------
>
> Key: QPID-3964
> URL: https://issues.apache.org/jira/browse/QPID-3964
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Affects Versions: 0.16
> Reporter: Gordon Sim
> Assignee: Gordon Sim
> Fix For: 0.17
>
>
> The broker checks for a 'create' permission when responding to a passive declare. This is not correct as a passive declare explicitly *does not* create the exchange/queue in question.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org