On Tue, Jun 10, 2008 at 9:43 PM, Scott Dietrich <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've been trying out the UserManager class and noticed that createUser
> throws an exception (javax.jcr.query.InvalidQueryException) if the user name
> contains a '@' character.
>
> The full stack trace is listed below. Is this the expected behavior or
> should I file a bug?
>
> Thanks,
> Scott
>
<snip>

Hi Scott,

Someone with more experience will probably be along to tell you
exactly why, but I think it's expected behaviour in terms of XPath.
You ought to escape the '@' sign so that XPath sees it as part of your
username string.

HTH,
Colin.

Reply via email to