You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "james strachan (JIRA)" <ji...@apache.org> on 2007/02/07 16:34:03 UTC

[jira] Created: (AMQ-1157) startup destinations don't work when using a security policy

startup destinations don't work when using a security policy
------------------------------------------------------------

                 Key: AMQ-1157
                 URL: https://issues.apache.org/activemq/browse/AMQ-1157
             Project: ActiveMQ
          Issue Type: New Feature
          Components: Broker
    Affects Versions: 4.1.0
            Reporter: james strachan
         Assigned To: james strachan
             Fix For: 4.2.0


we need a special 'broker' security context which is able to create new destinations on startup etc.

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


[jira] Resolved: (AMQ-1157) startup destinations don't work when using a security policy

Posted by "james strachan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

james strachan resolved AMQ-1157.
---------------------------------

    Resolution: Fixed

There's now a special Broker security context (see the static constant in SecurityContext) which can be used for the broker when its starting up. Then this special context is allowed to create destinations on startup

> startup destinations don't work when using a security policy
> ------------------------------------------------------------
>
>                 Key: AMQ-1157
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1157
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Broker
>    Affects Versions: 4.1.0
>            Reporter: james strachan
>         Assigned To: james strachan
>             Fix For: 4.2.0
>
>
> we need a special 'broker' security context which is able to create new destinations on startup etc.

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


[jira] Commented: (AMQ-1157) startup destinations don't work when using a security policy

Posted by "Christian Burger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40280 ] 

Christian Burger commented on AMQ-1157:
---------------------------------------

Hello,

I downloaded yesterday the 5.0-Snapshot soruce and debugged (cause I run into the same problem) ... even if above mentioned changes are applied still another change is missing:

Class: AbstractRegion.java
Method: start()

Here you find this:
            ConnectionContext context = new ConnectionContext();
            context.setBroker(broker.getBrokerService().getBroker());
            context.getBroker().addDestination(context, dest);

Also here the SecurityContext need to be added:             context.setSecurityContext(SecurityContext.BROKER_SECURITY_CONTEXT);
            ConnectionContext context = new ConnectionContext();
            context.setBroker(broker.getBrokerService().getBroker());
             context.setSecurityContext(SecurityContext.BROKER_SECURITY_CONTEXT);
            context.getBroker().addDestination(context, dest);

Can this be made soon?

> startup destinations don't work when using a security policy
> ------------------------------------------------------------
>
>                 Key: AMQ-1157
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1157
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Broker
>    Affects Versions: 4.1.0
>            Reporter: James Strachan
>            Assignee: James Strachan
>             Fix For: 5.0.0
>
>
> we need a special 'broker' security context which is able to create new destinations on startup etc.

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


[jira] Assigned: (AMQ-1157) startup destinations don't work when using a security policy

Posted by "Rob Davies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Davies reassigned AMQ-1157:
-------------------------------

    Assignee: Rob Davies  (was: James Strachan)

> startup destinations don't work when using a security policy
> ------------------------------------------------------------
>
>                 Key: AMQ-1157
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1157
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Broker
>    Affects Versions: 4.1.0
>            Reporter: James Strachan
>            Assignee: Rob Davies
>             Fix For: 5.1.0
>
>
> we need a special 'broker' security context which is able to create new destinations on startup etc.

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


[jira] Reopened: (AMQ-1157) startup destinations don't work when using a security policy

Posted by "David Dossot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Dossot reopened AMQ-1157:
-------------------------------


Using the latest 5.0-SNAPSHOT, I still have the issue:

10:55:38,273 INFO  [org.apache.activemq.broker.BrokerService] ActiveMQ null JMS Message Broker (test-mule-node-8080) is starting
10:55:38,273 INFO  [org.apache.activemq.broker.BrokerService] For help or more information please see: http://activemq.apache.org/
10:55:38,625 INFO  [org.apache.activemq.store.jdbc.JDBCPersistenceAdapter] Database driver recognized: [mysql-ab_jdbc_driver]
10:55:38,694 INFO  [org.apache.activemq.store.jdbc.DefaultDatabaseLocker] Attempting to acquire the exclusive lock to become the Master broker
10:55:38,709 INFO  [org.apache.activemq.store.jdbc.DefaultDatabaseLocker] Becoming the master on dataSource: org.apache.commons.dbcp.BasicDataSource@b09ddb
10:55:39,176 INFO  [org.apache.activemq.broker.BrokerService] Using Persistence Adapter: JDBCPersistenceAdaptor(org.apache.commons.dbcp.BasicDataSource@b09ddb)
10:55:39,181 ERROR [org.apache.activemq.broker.BrokerService] Failed to start ActiveMQ JMS Message Broker. Reason: java.lang.SecurityException: User is not authenticated.
java.lang.SecurityException: User is not authenticated.
	at org.apache.activemq.security.AuthorizationBroker.addDestination(AuthorizationBroker.java:52)
	at org.apache.activemq.broker.MutableBrokerFilter.addDestination(MutableBrokerFilter.java:151)
	at org.apache.activemq.broker.region.AbstractRegion.start(AbstractRegion.java:93)
	at org.apache.activemq.broker.region.RegionBroker.start(RegionBroker.java:180)
	at org.apache.activemq.broker.jmx.ManagedRegionBroker.start(ManagedRegionBroker.java:103)
	at org.apache.activemq.broker.TransactionBroker.start(TransactionBroker.java:109)
	at org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153)
	at org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153)
	at org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153)
	at org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153)
	at org.apache.activemq.broker.MutableBrokerFilter.start(MutableBrokerFilter.java:163)
	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:428)

> startup destinations don't work when using a security policy
> ------------------------------------------------------------
>
>                 Key: AMQ-1157
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1157
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Broker
>    Affects Versions: 4.1.0
>            Reporter: James Strachan
>            Assignee: James Strachan
>             Fix For: 5.0.0
>
>
> we need a special 'broker' security context which is able to create new destinations on startup etc.

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


[jira] Resolved: (AMQ-1157) startup destinations don't work when using a security policy

Posted by "Rob Davies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Davies resolved AMQ-1157.
-----------------------------

    Resolution: Fixed

set security context in SVN revision 607037

> startup destinations don't work when using a security policy
> ------------------------------------------------------------
>
>                 Key: AMQ-1157
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1157
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Broker
>    Affects Versions: 4.1.0
>            Reporter: James Strachan
>            Assignee: Rob Davies
>             Fix For: 5.1.0
>
>
> we need a special 'broker' security context which is able to create new destinations on startup etc.

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


[jira] Updated: (AMQ-1157) startup destinations don't work when using a security policy

Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiram Chirino updated AMQ-1157:
-------------------------------

    Fix Version/s:     (was: 5.0.0)
                   5.1.0

> startup destinations don't work when using a security policy
> ------------------------------------------------------------
>
>                 Key: AMQ-1157
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1157
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Broker
>    Affects Versions: 4.1.0
>            Reporter: James Strachan
>            Assignee: James Strachan
>             Fix For: 5.1.0
>
>
> we need a special 'broker' security context which is able to create new destinations on startup etc.

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