You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Justin Ross (JIRA)" <ji...@apache.org> on 2016/11/04 14:29:58 UTC

[jira] [Updated] (PROTON-1297) proton-j not passing user:pass to remote broker

     [ https://issues.apache.org/jira/browse/PROTON-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Ross updated PROTON-1297:
--------------------------------
    Labels: messenger  (was: )

> 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
>              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.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org