[ 
https://issues.apache.org/jira/browse/AMQ-5916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14653686#comment-14653686
 ] 

Ganesh Murthy edited comment on AMQ-5916 at 8/4/15 2:08 PM:
------------------------------------------------------------

The org.apache.activemq.broker.jmx.BrokerView class has a 
createDurableSubscriber(String clientId, String subscriberName, String 
topicName, String selector) function and it instantiates a new connection 
context like this - 

ConnectionContext connectionContext = new ConnectionContext();

this fails to copy the securityContext from the shared global connectionContext.

The above line must be replaced with 
ConnectionContext sharedContext = 
BrokerSupport.getConnectionContext(broker.getContextBroker());
ConnectionContext context = sharedContext.copy();


was (Author: ganeshmurthy):
The org.apache.activemq.broker.jmx.BrokerView class has a 
createDurableSubscriber(String clientId, String subscriberName, String 
topicName, String selector) function and it instantiates a new connection 
context like this - 

> Creation of durable subscriber fails via broker AdminView due to lack of 
> SecurityContext  on ConnectionContext
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-5916
>                 URL: https://issues.apache.org/jira/browse/AMQ-5916
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.11.1
>            Reporter: Ganesh Murthy
>
> When JAAS authentication and authorization are setup, creation of durable 
> subscriber fails due to lack of securityContext. 
> The ConnectionContext object does not inherit the securityContext of the 
> broker's shared connection context



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to