useradmin restlets cannot handle urls as username -> this crashes wink(!)
-------------------------------------------------------------------------
Key: AMDATU-261
URL: http://jira.amdatu.org/jira/browse/AMDATU-261
Project: Amdatu
Issue Type: Bug
Reporter: Koos Gadellaa
Priority: Critical
A bit of a weird exception occuring, so I'll explain a bit first.
We're using OpenId for login, and to use that in Amdatu we (currently)
automaticly create users with the username equal to the openid identity. I.e.
for google my openid identity i
https://www.google.com/accounts/o8/id?id=AItOawkQnSOdRj3W7ZaQf_kW6f-hmuktTi3JRlc,
so that becomes my username (and similarly,
https://openid.luminis.net/users/koosg for the luminis openid server).
When logging in with this user everything works fine, however, when adding the
useradmin gadget a stackoverflow occurs:
java.lang.StackOverflowError
at java.util.regex.Pattern.sequence(Pattern.java:1885)
at java.util.regex.Pattern.expr(Pattern.java:1752)
at java.util.regex.Pattern.compile(Pattern.java:1460)
at java.util.regex.Pattern.<init>(Pattern.java:1133)
at java.util.regex.Pattern.compile(Pattern.java:823)
at java.lang.String.split(String.java:2292)
at
org.apache.wink.common.internal.UriBuilderImpl.path(UriBuilderImpl.java:555)
at
org.apache.wink.common.internal.UriBuilderImpl.schemeSpecificPart(UriBuilderImpl.java:886)
at
org.apache.wink.common.internal.UriBuilderImpl.path(UriBuilderImpl.java:565)
at
org.apache.wink.common.internal.UriBuilderImpl.schemeSpecificPart(UriBuilderImpl.java:886)
at
org.apache.wink.common.internal.UriBuilderImpl.path(UriBuilderImpl.java:565)
at
org.apache.wink.common.internal.UriBuilderImpl.schemeSpecificPart(UriBuilderImpl.java:886)
at
org.apache.wink.common.internal.UriBuilderImpl.path(UriBuilderImpl.java:565)
I created a wink issue for this
(https://issues.apache.org/jira/browse/WINK-331) which was promptly fixed, but
I'm not sure if this is the actual issue.
After some more testing, I found out that it actualy is related to the user:
when i add the user, the restlet crashes (even if I'm not logged in with that
specific user). When I remove that user (all by hand), the restlet works again.
It is somewhat strange that wink gives this error; i'm guessing something wrong
is fed back to wink.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira