You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Donal Evans (Jira)" <ji...@apache.org> on 2021/09/07 22:24:00 UTC

[jira] [Updated] (GEODE-9582) redis glob pattern should never throw PatternSyntaxException

     [ https://issues.apache.org/jira/browse/GEODE-9582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donal Evans updated GEODE-9582:
-------------------------------
    Description: 
The GlobPattern class converts a user's glob pattern into a pattern that is compiled by the jdk's Pattern.compile method. Some character sequences will cause the jdk to throw PatternSynaxException. For example giving it the bytes {{stringToBytes("\C")}} causes an exception.
 Native redis with this same pattern treats it like just "C".
 I think we need to look at every case in which the jdk compile throws PatternSynaxException and make sure GlobPattern will not submit a pattern to Pattern.compile that will cause it to throw.

  was:
The GlobPattern class converts a user's glob pattern into a pattern that is compiled by the jdk's Pattern.compile method. Some character sequences will cause the jdk to throw PatternSynaxException. For example giving it the bytes stringToBytes("\\C") causes an exception.
Native redis with this same pattern treats it like just "C".
I think we need to look at every case in which the jdk compile throws PatternSynaxException and make sure GlobPattern will not submit a pattern to Pattern.compile that will cause it to throw.



> redis glob pattern should never throw PatternSyntaxException
> ------------------------------------------------------------
>
>                 Key: GEODE-9582
>                 URL: https://issues.apache.org/jira/browse/GEODE-9582
>             Project: Geode
>          Issue Type: Bug
>          Components: redis
>            Reporter: Darrel Schneider
>            Priority: Major
>
> The GlobPattern class converts a user's glob pattern into a pattern that is compiled by the jdk's Pattern.compile method. Some character sequences will cause the jdk to throw PatternSynaxException. For example giving it the bytes {{stringToBytes("\C")}} causes an exception.
>  Native redis with this same pattern treats it like just "C".
>  I think we need to look at every case in which the jdk compile throws PatternSynaxException and make sure GlobPattern will not submit a pattern to Pattern.compile that will cause it to throw.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)