Matt Pavlovich created PROTON-1297:
--------------------------------------
Summary: proton-j not passing user:pass to remote broker
Key: PROTON-1297
URL: https://issues.apache.org/jira/browse/PROTON-1297
Project: Qpid Proton
Issue Type: Bug
Components: proton-j
Affects Versions: 0.14.0
Reporter: Matt Pavlovich
Test environment: ActiveMQ amqp listener on :5672
The test below fails if username+password authentication is enabled on the
remote broker. Appears that proton-j is ignoring the username and password
fields in the URI.
{noformat}
@Test
public void testProduceMsg() throws Exception {
String[] bodies = new String[] { "Hello World!" };
Address addr = new
Address("amqp://admin:admin@localhost:5672/Foo.Bar");
Messenger mng = new MessengerImpl();
mng.start();
Message msg = new MessageImpl();
System.out.println("Addr: " + addr.toString());
msg.setAddress(addr.toString());
for (String body : bodies) {
msg.setBody(new AmqpValue(body));
mng.put(msg);
}
mng.send();
}
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]