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

ASF subversion and git services commented on ACCUMULO-2083:
-----------------------------------------------------------

Commit cabdbe829b9b901a292e1bc17bd02a9c54d9f8c9 in branch 
refs/heads/1.5.1-SNAPSHOT from [~vines]
[ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=cabdbe8 ]

ACCUMULO-2083 - adding test for 0 byte in Key with regexes


> RegExFilter Erroneously Reconstructs RowId Containing Null Character
> --------------------------------------------------------------------
>
>                 Key: ACCUMULO-2083
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2083
>             Project: Accumulo
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Laura Schanno
>            Assignee: John Vines
>            Priority: Minor
>         Attachments: RegexWithNullByte.java
>
>
> I applied a core.iterators.user.RegExFilter iterator to a BatchScanner 
> iterating over Key,Value pairs where the row id of the Keys are formatted as 
> "<source>\0\<sink>". RegExFilter reconstructed the row id as "<source>", 
> dropping the sink half. This appears to be due to the usage of the 
> String(byte bytes[], int offset, int length, Charset charset) constructor to 
> reset the values of the Matcher objects in the both of the matches() 
> functions. The String constructor only reconstructs a String up to the "\0" 
> character.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to