[
https://issues.apache.org/jira/browse/QPID-4877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13664007#comment-13664007
]
Keith Wall commented on QPID-4877:
----------------------------------
For 0-8..0-9-1:
Qpid client ought not to try to queue.bind to the default (nameless) exchange.
For the sake of backward compatibility with older clients, the Java Broker
should silently ignore queue.binds where the routing key matches the queue name
and there are no binding arguments. Other cases should continue to cause the
exception as this would constitute a misuse of the default exchange.
For 0-10:
(Not yet examined)
> Consumers created using BURLs without exchanges fail with "Cannot add
> bindings to the default exchange [error code 403: access refused]"
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-4877
> URL: https://issues.apache.org/jira/browse/QPID-4877
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker, Java Client
> Affects Versions: 0.23
> Reporter: Keith Wall
>
> Since QPID-4832, if a client, using a BURL that does not reference the
> exchange, attempts Session#createConsumer(), he will see a stack trace.
> Example BURL:
> destination.myqueue = BURL:direct:///myqueue/myqueue?routingkey='myqueue'
> {noformat}
> 2013-05-22 11:27:29,255 DEBUG [IoReceiver - localhost/127.0.0.1:5672]
> [AMQConnection] exceptionReceived done by:IoReceiver -
> localhost/127.0.0.1:5672
> org.apache.qpid.AMQChannelClosedException: Error:
> org.apache.qpid.AMQSecurityException: Cannot add bindings to the default
> exchange [error code 403: access refused] [error code 504: channel error]
> at
> org.apache.qpid.client.handler.ChannelCloseMethodHandler.methodReceived(ChannelCloseMethodHandler.java:97)
> at
> org.apache.qpid.client.handler.ClientMethodDispatcherImpl.dispatchChannelClose(ClientMethodDispatcherImpl.java:164)
> at
> org.apache.qpid.framing.amqp_0_9.ChannelCloseBodyImpl.execute(ChannelCloseBodyImpl.java:137)
> at
> org.apache.qpid.client.state.AMQStateManager.methodReceived(AMQStateManager.java:114)
> at
> org.apache.qpid.client.protocol.AMQProtocolHandler.methodBodyReceived(AMQProtocolHandler.java:520)
> at
> org.apache.qpid.client.protocol.AMQProtocolSession.methodFrameReceived(AMQProtocolSession.java:462)
> at
> org.apache.qpid.framing.AMQMethodBodyImpl.handle(AMQMethodBodyImpl.java:97)
> at
> org.apache.qpid.client.protocol.AMQProtocolHandler.received(AMQProtocolHandler.java:477)
> at
> org.apache.qpid.client.protocol.AMQProtocolHandler.received(AMQProtocolHandler.java:1)
> at
> org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:161)
> at java.lang.Thread.run(Thread.java:662)
> {noformat}
> The user can work around the issue by including the exchange name within the
> BURL.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]