| Summary: | Qpid JCA Adapter -- Use of guest/guest for authentication info should be eradicated for the JCA adapter | ||
|---|---|---|---|
| Product: | Red Hat Enterprise MRG | Reporter: | Weston M. Price <wprice> |
| Component: | qpid-jca | Assignee: | messaging-bugs <messaging-bugs> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | MRG Quality Engineering <mrgqe-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.0 | CC: | astitcher, cdewolf, jpechane, tross |
| Target Milestone: | 2.1.2 | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Weston M. Price
2011-09-08 17:41:04 UTC
User and password are optional fields in the url, so the replacement can be somewhat simpler: amqp://client/test?brokerlist='tcp://localhost:5672'?sasl_mechs='ANONYMOUS' Note that the ' are incorrect in the options in the previous comment. Sorry, thinking more I'm not sure whether the sasl_mechs option attaches to the url as a whole or the specific tcp address so it might be: amqp://client/test?brokerlist='tcp://localhost:5672?sasl_mechs=\'ANONYMOUS\'' But I think you would need to escape the ' in the latter case. amqp://client/test?brokerlist='tcp://localhost:5672'?sasl_mechs='ANONYMOUS'' Updated URL as per comment above. This has been fixed in package qpid-java-jca-0.10-10 The configuration
<mbean code="org.jboss.resource.deployment.AdminObject"
name="qpid.factory:name=remoteConnectionFactory">
<attribute name="JNDIName">remoteConnectionFactory</attribute>
<depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='qpid-ra.rar'</depends>
<attribute name="Type">javax.jms.ConnectionFactory</attribute>
<attribute name="Properties">
connectionURL=amqp://client/test?brokerlist='tcp://mrg01.mw.lab.eng.bos.redhat.com:5672'?sasl_mechs='ANONYMOUS''
</attribute>
</mbean>
throws an exception
2011-11-07 14:48:54,297 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController:419] (main) Error installing to Start: name=qpid.factory:name=remoteConnectionFactory state=Create mode=Manual requiredState=Installed
javax.naming.NamingException: User information not found on url at index 7: amqp://client/test?brokerlist='tcp://mrg01.mw.lab.eng.bos.redhat.com:5672'?sasl_mechs='ANONYMOUS''
at org.apache.qpid.ra.admin.QpidConnectionFactoryProxy.getReference(QpidConnectionFactoryProxy.java:119)
at org.jnp.interfaces.NamingContext.bind(NamingContext.java:632)
at org.jnp.interfaces.NamingContext.bind(NamingContext.java:611)
at javax.naming.InitialContext.bind(InitialContext.java:417)
at org.jboss.util.naming.Util.bind(Util.java:105)
at org.jboss.util.naming.Util.bind(Util.java:91)
at org.jboss.resource.deployment.AdminObject.bind(AdminObject.java:162)
at org.jboss.resource.deployment.AdminObject.startService(AdminObject.java:103)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
The connection URL should read: amqp://anonymous:@client/test?brokerlist='tcp://mrg01.mw.lab.eng.bos.redhat.com:5672'?sasl_mechs='ANONYMOUS'' Note the identity of anonymous. |