useradmin user restlet doesn't return properties in GET request
---------------------------------------------------------------

                 Key: AMDATU-286
                 URL: http://jira.amdatu.org/jira/browse/AMDATU-286
             Project: Amdatu
          Issue Type: Bug
            Reporter: Dion Meijer
            Assignee: Marcel Offermans
            Priority: Critical
             Fix For: 0.1.0


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 is 
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 and trying to use it 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)

This comes straight from the restlet (i.e. calling the restservice with the 
proper values) this error occurs. Hence, the problem lies with the 
rest-services.

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

        

Reply via email to