Chuck Rolke created PROTON-1473:
-----------------------------------

             Summary: [C++ binding] cryptic error message when authentication 
fails
                 Key: PROTON-1473
                 URL: https://issues.apache.org/jira/browse/PROTON-1473
             Project: Qpid Proton
          Issue Type: Bug
          Components: cpp-binding
    Affects Versions: 0.17.0
         Environment: Fedora 25
Client: examples/cpp/helloworld
Server: Dispatch router listener configured with authenticatePeer: yes and a 
suitable common sasl mechanism
            Reporter: Chuck Rolke
            Assignee: Cliff Jansen


If you specify the URL with no credentials:
{noformat}
cpp> ./helloworld 192.168.0.16:5674/aaa
amqp:connection:framing-error: AMQP header mismatch: Insufficient data to 
determine protocol [''] (connection aborted)
{noformat}
This error message is true in a strict sense but does not give a user much of a 
clue about what's wrong.

The same setup with good URL credentials:
{noformat}
cpp> ./helloworld user:[email protected]:5674/aaa
Hello World!
{noformat}

The same setup with bad URL credentials:
{noformat}
cpp> ./helloworld user:[email protected]:5674/aaa
amqp:unauthorized-access: Authentication failed [mech=DIGEST-MD5]
{noformat}
This error message is good.






--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to