Return-Path: X-Original-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3C1C75C4 for ; Tue, 1 Nov 2011 18:19:56 +0000 (UTC) Received: (qmail 36541 invoked by uid 500); 1 Nov 2011 18:19:56 -0000 Delivered-To: apmail-incubator-mesos-dev-archive@incubator.apache.org Received: (qmail 36094 invoked by uid 500); 1 Nov 2011 18:19:56 -0000 Mailing-List: contact mesos-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mesos-dev@incubator.apache.org Delivered-To: mailing list mesos-dev@incubator.apache.org Received: (qmail 35835 invoked by uid 99); 1 Nov 2011 18:19:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 18:19:55 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 18:19:54 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B2AF432C69D for ; Tue, 1 Nov 2011 18:19:34 +0000 (UTC) Date: Tue, 1 Nov 2011 18:19:34 +0000 (UTC) From: "Vinod Kone (Created) (JIRA)" To: mesos-dev@incubator.apache.org Message-ID: <873252229.46824.1320171574733.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (MESOS-54) Mesos ZooKeeper authentication is broken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Mesos ZooKeeper authentication is broken ---------------------------------------- Key: MESOS-54 URL: https://issues.apache.org/jira/browse/MESOS-54 Project: Mesos Issue Type: Bug Reporter: Vinod Kone In src/zookeeper/zookeeper.cpp authenticate() takes (scheme,credentials) as arguments, but this function is called with (username,password). this results in the client trying to authenticate with szk with scheme 'username' and failing. Relevant code snippets. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: int ZooKeeper::authenticate(const string& username, const string& password) { #ifndef USE_THREADED_ZOOKEEPER return process::call(impl->self(), &ZooKeeperImpl::authenticate, cref(username), cref(password)); #else Promise promise = impl->authenticate(username, password); return promise.future().get(); #endif // USE_THREADED_ZOOKEEPER } ::::::::::::::::::::::::::::::: Promise authenticate(const string& scheme, const string& credentials) { Promise promise; tuple >* args = new tuple >(promise); int ret = zoo_add_auth(zh, scheme.c_str(), credentials.data(), credentials.size(), voidCompletion, args); if (ret != ZOK) { promise.set(ret); delete args; } return promise; } ::::::::::::::::::::::::::::::: -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira