[
https://issues.apache.org/jira/browse/QPID-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Ross resolved QPID-1896.
-------------------------------
Resolution: Duplicate
The diff suggested by Gordon was introduced as part of the fix for QPID-2979.
> 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
> Assignee: Steve Huston
> Attachments: windows-sasl-noauth.patch
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]