Ok, no problem. Just only guessing if it could be a bug.
It won't be bad anyways to have an utility to create valid JCR names. Martin On 5/18/06, Stefan Guggisberg <[EMAIL PROTECTED]> wrote:
On 5/18/06, Martin Perez <[EMAIL PROTECTED]> wrote: > Hello. > > I'm using the Jackrabbit Text utility class to unscape and scape node names > before adding them to the repository. This works very fine scaping > whitespaces, written accents, etc. but curiosly it seems unable to unscape > the symbol ' . have a look at the javadoc of said method: http://jackrabbit.apache.org/api-1/org/apache/jackrabbit/util/Text.html#escape(java.lang.String) the escape method does escape characters that are not allowed in a URI (http://rfc.net/rfc2396.html). the single quote character (') is allowed in a URI. the escape method does *not* escape characters that are illegal in JCR names (see 4.6 Path Syntax in the JSR 170 spec). cheers stefan > > This means that if you scape the word "don't" you get the word "don't" and > then if you add a node with this name to Jackrabbit an exception is thrown. > > I know that this isn't a bug on the Jackrabbit core, but not sure if it's a > bug on the Text class or if it could cause problems on some parts of the > project that use that class. > > What do u think? > > Cheers, > > Martin > >
