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 4722B11E06 for ; Wed, 23 Jul 2014 10:04:39 +0000 (UTC) Received: (qmail 12612 invoked by uid 500); 23 Jul 2014 10:04:38 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 12555 invoked by uid 500); 23 Jul 2014 10:04:38 -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 12542 invoked by uid 99); 23 Jul 2014 10:04:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 10:04:38 +0000 Date: Wed, 23 Jul 2014 10:04:38 +0000 (UTC) From: "ramkrishna.s.vasudevan (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-11438) [Visibility Controller] Support UTF8 character as Visibility Labels 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-11438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ramkrishna.s.vasudevan updated HBASE-11438: ------------------------------------------- Attachment: HBASE-11438_v2.patch Wraps long lines. The failed test case seems to pass locally. The failure log shows it is not able to decode the UTF-8 character. Users path the labels in addLabels, scan.setAuths and in the mutation.setCellVisibility. While setting the visibility the user passes expressions that has '&','!' and '!'. Now with this patch user is allowed to pass any character as the visibility label but the thing to note here is that while using such characters or characters like '&','|','!' in cell visibility as part of labels would require him to use CellVisibillity.quote() so that these special characters are properly quoted. While using it in Authorizations and addLabels the user can simply specify the special characters as a normal String. Like 'a&B'. But when the same has to be use in cell visibility it has to be quoted so that the system can differentiate between '&' use in the label and '&' used as an operator in an expression. > [Visibility Controller] Support UTF8 character as Visibility Labels > ------------------------------------------------------------------- > > Key: HBASE-11438 > URL: https://issues.apache.org/jira/browse/HBASE-11438 > Project: HBase > Issue Type: Improvement > Components: security > Affects Versions: 0.98.4 > Reporter: ramkrishna.s.vasudevan > Assignee: ramkrishna.s.vasudevan > Fix For: 0.98.5 > > Attachments: HBASE-11438_v1.patch, HBASE-11438_v2.patch > > > This would be an action item that we would be addressing so that the visibility labels could have UTF8 characters in them. Also allow the user to use a client supplied API that allows to specify the visibility labels inside double quotes such that UTF8 characters and cases like &, |, ! and double quotes itself could be specified with proper escape sequence. Accumulo too provides one such API in the client side. -- This message was sent by Atlassian JIRA (v6.2#6252)