Utiliy.filter alllows illegal JCR name characters
-------------------------------------------------
Key: SLING-1878
URL: https://issues.apache.org/jira/browse/SLING-1878
Project: Sling
Issue Type: Bug
Components: Commons
Affects Versions: Extensions Event 2.4.2
Reporter: Felix Meschberger
Assignee: Felix Meschberger
Fix For: Extensions Event 3.0.0
The Utility.filter method is used to filter strings for a subset characters
used for creating node names to persist events in the repository. Yet, the list
of legal characters includes illegal characters like the brackets "[", "]" and
the asterisk "*".
In addition the implementation is suboptimal in that it uses the String.indexOf
method to check for legal characters. This can be improved by using a BitSet
where the accepted characters are represented by bits turned on.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.