Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1297

proton-j Messenger not passing user:pass to remote broker

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: proton-0.14.0
    • Fix Version/s: None
    • Component/s: proton-j
    • Labels:

      Description

      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.

      	@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();
      
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mattrpav Matt Pavlovich
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: