Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8088410BE0 for ; Wed, 12 Feb 2014 18:15:28 +0000 (UTC) Received: (qmail 90309 invoked by uid 500); 12 Feb 2014 18:15:26 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 90259 invoked by uid 500); 12 Feb 2014 18:15:24 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 90208 invoked by uid 99); 12 Feb 2014 18:15:23 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Feb 2014 18:15:23 +0000 Date: Wed, 12 Feb 2014 18:15:23 +0000 (UTC) From: "Ryan Knowles (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ACCUMULO-2358) Issue with character encoding of Success returned from Login using Thrift Proxy and NodeJS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ryan Knowles created ACCUMULO-2358: -------------------------------------- Summary: Issue with character encoding of Success returned from Login using Thrift Proxy and NodeJS Key: ACCUMULO-2358 URL: https://issues.apache.org/jira/browse/ACCUMULO-2358 Project: Accumulo Issue Type: Bug Components: client, proxy Affects Versions: 1.5.0 Environment: CentOS 6.4, NodeJS 0.10.21, NPM thrift module 0.9.1 Reporter: Ryan Knowles Priority: Minor I recently tried to connect to Accumulo through the Thrift proxy using NodeJS. I was able to successfully send login information to Accumulo and receive back a success, but when I tried to use this success to feed into other functions such as listTables I would receive an Exception. I traced this down to the AccumuloProxy.js file that was generated from the proxy.thrift file. In the AccumuloProxy_login_result.prototype.read function if the ftype == Thrift.Type.STRING then this.success is set to input.readString(). During this readString function the toString is called on the Buffer, but what is returned has characters that are not correctly encoded. I modified the AccumuloProxy_login_result.prototype.read to call readBinary instead and return the Buffer as success. I was then able to pass the Buffer into the other functions and correctly get a result. -- This message was sent by Atlassian JIRA (v6.1.5#6160)