You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org> on 2014/07/23 14:53:39 UTC

[jira] [Comment Edited] (HBASE-11438) [Visibility Controller] Support UTF8 character as Visibility Labels

    [ https://issues.apache.org/jira/browse/HBASE-11438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14071570#comment-14071570 ] 

ramkrishna.s.vasudevan edited comment on HBASE-11438 at 7/23/14 12:53 PM:
--------------------------------------------------------------------------

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 pass 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 UTF-8 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.



was (Author: ram_krish):
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)