[
https://issues.apache.org/jira/browse/ARTEMIS-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16521299#comment-16521299
]
ASF GitHub Bot commented on ARTEMIS-1951:
-----------------------------------------
Github user michaelandrepearce commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/2156#discussion_r197624300
--- Diff:
artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java
---
@@ -511,6 +512,10 @@ public QueueBinding updateQueue(SimpleString name,
changed = true;
queue.setExclusive(exclusive);
}
+ if ((user != null && !user.equals(queue.getUser()) || (user ==
null && queue.getUser() != null))) {
+ changed = true;
+ queue.setUser(SimpleString.toSimpleString(user));
--- End diff --
Slight issue here in the logic that the older methods if invoked to update
a queue will clear the user associated with the queue , as they will pass in
null causing user to be set to null no matter.
> Queue's user can't be updated
> -----------------------------
>
> Key: ARTEMIS-1951
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1951
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.5.0
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Fix For: 2.7.0
>
>
> ARTEMIS-1569 added the ability to specify the queue's user via XML. However,
> the user set on the XML when the queue is first created can never be changed
> later.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)