Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 98010 invoked from network); 31 Mar 2010 18:07:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Mar 2010 18:07:49 -0000 Received: (qmail 21822 invoked by uid 500); 31 Mar 2010 18:07:49 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 21784 invoked by uid 500); 31 Mar 2010 18:07:48 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 21772 invoked by uid 99); 31 Mar 2010 18:07:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 18:07:48 +0000 X-ASF-Spam-Status: No, hits=-1185.6 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 18:07:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B7EF7234C4C9 for ; Wed, 31 Mar 2010 18:07:27 +0000 (UTC) Message-ID: <27748385.610551270058847752.JavaMail.jira@brutus.apache.org> Date: Wed, 31 Mar 2010 18:07:27 +0000 (UTC) From: "Roger Schildmeijer (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Updated: (CASSANDRA-935) login() request via Thrift/PHP fails with "Unexpected authentication problem" in cassandra log / "Internal error processing login" in Thrift In-Reply-To: <1746129927.587341269980547262.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roger Schildmeijer updated CASSANDRA-935: ----------------------------------------- Attachment: CASSANDRA-935-v2.patch > login() request via Thrift/PHP fails with "Unexpected authentication problem" in cassandra log / "Internal error processing login" in Thrift > -------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-935 > URL: https://issues.apache.org/jira/browse/CASSANDRA-935 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.6 > Environment: PHP 5.3, Cassandra 0.6.0-rc1 (as in current vote), CentOS 5.4 x64, 4-node cluster > Reporter: Vitaly Pecharsky > Assignee: Roger Schildmeijer > Priority: Minor > Attachments: CASSANDRA-935-v2.patch, CASSANDRA-935.patch > > > When issuing a login request via PHP Thrift with the following parameters: > $auth_request = new cassandra_AuthenticationRequest; > $auth_request->credentials = array ( > "username" => "jsmith", > "password" => "havebadpass", > ); > $client->login("Keyspace1", $auth_request); > I get an exception, with the following details > PHP Exception: > PHP Fatal error: Uncaught exception 'TApplicationException' with message 'Internal error processing login' in /home/redsolar/html/includes/thrift/packages/cassandra/Cassandra.php:73 > Cassandra log: > ERROR 13:00:53,823 Internal error processing login > java.lang.RuntimeException: Unexpected authentication problem > at org.apache.cassandra.auth.SimpleAuthenticator.login(SimpleAuthenticator.java:113) > at org.apache.cassandra.thrift.CassandraServer.login(CassandraServer.java:651) > at org.apache.cassandra.thrift.Cassandra$Processor$login.process(Cassandra.java:1147) > at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:1125) > at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:253) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:636) > Caused by: java.lang.NullPointerException > at java.io.FileInputStream.(FileInputStream.java:133) > at java.io.FileInputStream.(FileInputStream.java:96) > at org.apache.cassandra.auth.SimpleAuthenticator.login(SimpleAuthenticator.java:82) > ... 7 more > File contents (all chmod 777 for testing): > "conf/access.properties" > Keyspace1=jsmith,Elvis Presley,dilbert > "conf/password.properties" > jsmith=havebadpass > Elvis\ Presley=graceland4evar > dilbert=nomoovertime -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.