Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 53615DCE4 for ; Thu, 14 Mar 2013 02:36:16 +0000 (UTC) Received: (qmail 59461 invoked by uid 500); 14 Mar 2013 02:36:15 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 59374 invoked by uid 500); 14 Mar 2013 02:36:14 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 59328 invoked by uid 99); 14 Mar 2013 02:36:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Mar 2013 02:36:13 +0000 Date: Thu, 14 Mar 2013 02:36:13 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-8085) Backport the fix for Bytes.toStringBinary() into 94 (HBASE-6991) 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/HBASE-8085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Enis Soztutar updated HBASE-8085: --------------------------------- Resolution: Fixed Release Note: This patch changes Bytes.toStringBinary() and Bytes.toBytesBinary() to escape the character "\". Unprintable characters are escaped using "\\x%02X" format, but "\" was not escaped properly leading to irreversible ser/de using toStringBinary() -> toBytesBinary(). Hadoop Flags: Incompatible change,Reviewed Status: Resolved (was: Patch Available) Committed this. Thanks Tianying. > Backport the fix for Bytes.toStringBinary() into 94 (HBASE-6991) > ---------------------------------------------------------------- > > Key: HBASE-8085 > URL: https://issues.apache.org/jira/browse/HBASE-8085 > Project: HBase > Issue Type: Bug > Components: util > Affects Versions: 0.94.5 > Reporter: Tianying Chang > Assignee: Tianying Chang > Fix For: 0.94.7 > > Attachments: HBASE-8085.patch, HBASE-8085-v2.patch > > > there is a bug in Bytes.toStringBinary(), which will return the same string for 1) byte[] a = {'\\', 'x', 'D', 'A'} 2) "\xDA". > It seems this bug has already been fixed in trunk with HBASE 6991. We should backport it to 94. -- 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