Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1956

Add helper function to (un)escape illegal JCR characters

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Critical Critical
    • 3.4.0.Final
    • 3.2.0.Final
    • Common, Tools

      I have files with names that contain illegal JCR characters (e.g. square brackets).
      Trying to insert them into ModeShape as-is doesn't work of course.
      What about providing an helper function to (un)escape those illegal characters?

      JackRabbit provides such a function: org.apache.jackrabbit.util.Text.escapeIllegalJcrChars()

      According to MODE-1930, such a (non-generic) function has been developed for the DDL sequencer. So I think this should migrate from the DDL sequencer to the common framework.

      Ed: ModeShape has a utility in the 'modeshape-common' library. We should either suggest people use that or provide something in our official API within the org.modeshape.jcr.api package.

            dflorian@redhat.com Daniel Florian (Inactive)
            dalbani Damiano Albani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: