You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robbie Gemmell (JIRA)" <ji...@apache.org> on 2017/02/13 18:00:45 UTC
[jira] [Updated] (PROTON-1297) proton-j Messenger not passing
user:pass to remote broker
[ https://issues.apache.org/jira/browse/PROTON-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robbie Gemmell updated PROTON-1297:
-----------------------------------
Summary: proton-j Messenger not passing user:pass to remote broker (was: proton-j not passing user:pass to remote broker)
> proton-j Messenger 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
> Labels: messenger
>
> 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.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org