You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rg...@apache.org on 2015/12/03 12:29:11 UTC
svn commit: r1717735 -
/qpid/java/trunk/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/Session_1_0.java
Author: rgodfrey
Date: Thu Dec 3 11:29:11 2015
New Revision: 1717735
URL: http://svn.apache.org/viewvc?rev=1717735&view=rev
Log:
QPID-6928 : null or empty string target destinations should route to the default destination of the virtual host
Modified:
qpid/java/trunk/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/Session_1_0.java
Modified: qpid/java/trunk/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/Session_1_0.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/Session_1_0.java?rev=1717735&r1=1717734&r2=1717735&view=diff
==============================================================================
--- qpid/java/trunk/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/Session_1_0.java (original)
+++ qpid/java/trunk/broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/Session_1_0.java Thu Dec 3 11:29:11 2015
@@ -331,7 +331,13 @@ public class Session_1_0 implements Sess
}
String addr = target.getAddress();
- if(!addr.startsWith("/") && addr.contains("/"))
+ if(addr == null || "".equals(addr.trim()))
+ {
+ MessageDestination messageDestination = getVirtualHost().getDefaultDestination();
+ destination = new NodeReceivingDestination(messageDestination, target.getDurable(),
+ target.getExpiryPolicy());
+ }
+ else if(!addr.startsWith("/") && addr.contains("/"))
{
String[] parts = addr.split("/",2);
ExchangeImpl exchange = getVirtualHost().getAttainedExchange(parts[0]);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org