No-auth Windows broker fails client connection with "Selected mechanism not 
supported"
--------------------------------------------------------------------------------------

                 Key: QPID-1896
                 URL: https://issues.apache.org/jira/browse/QPID-1896
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
         Environment: Windows XP SP 3, VC++ 9.0
            Reporter: Pete MacKinnon


If a client offers any non-empty auth mechanism (e.g., "PLAIN"), the windows 
C++ broker will fail to start/tune the connection with "Selected mechanism not 
supported" eventhough it has authorization disabled ("--auth=no").

void ConnectionHandler::start(const FieldTable& /*serverProps*/, const Array& 
mechanisms, const Array& /*locales*/)
{
    checkState(NOT_STARTED, INVALID_STATE_START);
    setState(NEGOTIATING);
    sasl = SaslFactory::getInstance().create(*this);

    std::string mechlist;
    bool chosenMechanismSupported = mechanism.empty();
    for (Array::const_iterator i = mechanisms.begin(); i != mechanisms.end(); 
++i) {
        if (!mechanism.empty() && mechanism == (*i)->get<std::string>()) {
            chosenMechanismSupported = true;
            mechlist = (*i)->get<std::string>() + SPACE + mechlist;
        } else {
            if (i != mechanisms.begin()) mechlist += SPACE;
            mechlist += (*i)->get<std::string>();
        }
    }

    if (!chosenMechanismSupported) {
        fail("Selected mechanism not supported: " + mechanism);
    }


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org

Reply via email to