You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/05/01 01:10:16 UTC

[jira] [Commented] (ACCUMULO-1361) VisibilityEvaluator throws NPE when passed a zero length byte array

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

Hudson commented on ACCUMULO-1361:
----------------------------------

Integrated in Accumulo-Trunk #847 (See [https://builds.apache.org/job/Accumulo-Trunk/847/])
    ACCUMULO-1361 committing Corey Nolet's patch for zero-length ColumnVisibility (Revision 1477733)

     Result = SUCCESS
ecn : 
Files : 
* /accumulo/trunk
* /accumulo/trunk/assemble
* /accumulo/trunk/core
* /accumulo/trunk/core/src/main/java/org/apache/accumulo/core/security/VisibilityEvaluator.java
* /accumulo/trunk/core/src/test/java/org/apache/accumulo/core/security/VisibilityEvaluatorTest.java
* /accumulo/trunk/examples
* /accumulo/trunk/fate/src/main/java/org/apache/accumulo/fate/ZooStore.java
* /accumulo/trunk/fate/src/main/java/org/apache/accumulo/fate/zookeeper/ZooSession.java
* /accumulo/trunk/pom.xml
* /accumulo/trunk/server
* /accumulo/trunk/src

                
> VisibilityEvaluator throws NPE when passed a zero length byte array
> -------------------------------------------------------------------
>
>                 Key: ACCUMULO-1361
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1361
>             Project: Accumulo
>          Issue Type: Improvement
>            Reporter: Chris McCubbin
>            Assignee: Corey J. Nolet
>            Priority: Minor
>             Fix For: 1.5.0
>
>         Attachments: ACCUMULO-1361.1.patch
>
>
> The following code snippet throws a NPE on a fairly recent version of 1.5. I would expect it to return true, or at the very least, to throw a meaningful exception.
> {code:title=SadPanda.java|borderStyle=solid}
> VisibilityEvaluator evaluator = new VisibilityEvaluator(new Authorizations("a".getBytes()));
> ColumnVisibility cv = new ColumnVisibility(new byte[0]);
> //The following line throws a NPE
> boolean result = evaluator.evaluate(cv);
> {code}

--
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