QPID-7923: [Java Broker] [ACL] Mark Queue#getConsumers and getPublishingLink as not requiring an ACL check.
Queue#getConsumers returns information that was available without an explict ACL permission in previous release. This change avoids breaking compatibility with existing rule-sets. Project: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/commit/0dad8495 Tree: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/tree/0dad8495 Diff: http://git-wip-us.apache.org/repos/asf/qpid-broker-j/diff/0dad8495 Branch: refs/heads/master Commit: 0dad8495a2960c38251b2a393e52922696abd8e4 Parents: 9c44860 Author: Keith Wall <[email protected]> Authored: Wed Sep 27 11:41:26 2017 +0100 Committer: Keith Wall <[email protected]> Committed: Wed Sep 27 11:42:43 2017 +0100 ---------------------------------------------------------------------- .../src/main/java/org/apache/qpid/server/model/Queue.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-broker-j/blob/0dad8495/broker-core/src/main/java/org/apache/qpid/server/model/Queue.java ---------------------------------------------------------------------- diff --git a/broker-core/src/main/java/org/apache/qpid/server/model/Queue.java b/broker-core/src/main/java/org/apache/qpid/server/model/Queue.java index e146466..855603e 100644 --- a/broker-core/src/main/java/org/apache/qpid/server/model/Queue.java +++ b/broker-core/src/main/java/org/apache/qpid/server/model/Queue.java @@ -309,12 +309,12 @@ public interface Queue<X extends Queue<X>> extends ConfiguredObject<X>, mandatory = true) OverflowPolicy getOverflowPolicy(); - @ManagedOperation(nonModifying = true, changesConfiguredObjectState = false) + @ManagedOperation(nonModifying = true, changesConfiguredObjectState = false, skipAclCheck = true) Collection<PublishingLink> getPublishingLinks(); @Override - @ManagedOperation(nonModifying = true, changesConfiguredObjectState = false) + @ManagedOperation(nonModifying = true, changesConfiguredObjectState = false, skipAclCheck = true) Collection<QueueConsumer<?,?>> getConsumers(); //operations --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
