Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User: X does not have permission='CREATE_NON_DURABLE_QUEUE' #8

Open
starksm64 opened this issue Aug 26, 2024 · 1 comment
Open

User: X does not have permission='CREATE_NON_DURABLE_QUEUE' #8

starksm64 opened this issue Aug 26, 2024 · 1 comment

Comments

@starksm64
Copy link
Contributor

I have seen this error for the j2ee user, and now a null or I guess the guest user:

2024-08-26 10:04:55,122 ERROR [org.apache.activemq.artemis.ra.ActiveMQRALogger] (default-threads - 1) AMQ154003: Unable to reconnect org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec(ra=org.wildfly.extension.messaging.activemq.ActiveMQResourceAdapter@9a257017 destination=java:/jms_ee_mdb_mdb_msgTypesT2_MDB_TOPIC destinationType=jakarta.jms.Topic ack=Auto-acknowledge durable=false clientID=null user=null maxSession=15): ActiveMQSecurityException[errorType=SECURITY_EXCEPTION message=AMQ229213: User: null does not have permission='CREATE_NON_DURABLE_QUEUE' for queue ba5be96c-9798-409e-b3c4-9c51aca58f9b on address jms.topic.jms_ee_mdb_mdb_msgTypesT2_MDB_TOPIC]

what needs to be configured for this? I tried adding the CREATE_NON_DURABLE_QUEUE role to the guest user in cts-roles.properties but still see this error.

@starksm64
Copy link
Contributor Author

Looking at the code, it seems like this urn:jboss:domain:messaging-activemq setting should be allowing the access:

        <security-setting name="#">
            <role name="guest" send="true" consume="true" create-durable-queue="true" delete-durable-queue="true" create-non-durable-queue="true" delete-non-durable-queue="true"/>
        </security-setting>

Maybe there is some user mapping problem such that user 'null' is not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant