Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1878

Utiliy.filter alllows illegal JCR name characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Event 2.4.2
    • Event 3.0.0
    • Extensions
    • None

    Description

      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.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: