jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: Bug on unscaping node names?
Date Thu, 18 May 2006 12:08:22 GMT
On 5/18/06, Martin Perez <mpermar@gmail.com> 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:

the escape method does escape characters that are not allowed in a URI

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).


> 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

View raw message