jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Anderson" <colin.w.ander...@gmail.com>
Subject Re: UserManager question
Date Tue, 10 Jun 2008 22:21:28 GMT
On Tue, Jun 10, 2008 at 9:43 PM, Scott Dietrich <scott@minutestopost.com> 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

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.


View raw message