[
http://jira.amdatu.org/jira/browse/AMDATU-286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dion Meijer updated AMDATU-286:
-------------------------------
Affects Version/s: 0.1.0
Description:
In 0.0.6, the json string for a user contained a property "properties", which
is missing in the trunk:
{\"name\":\"Administrator\",\"properties\":{\"domains\":\"666ce149-c592-44a9-8630-32a286b0ef43,e5d1347a-c675-4014-b1da-e38ddb230fe9\",\"primaryDomain\":\"666ce149-c592-44a9-8630-32a286b0ef43\",\"username\":\"Administrator\"},\"groups\":[\"Administrators\"]}
was:
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.
Priority: Major (was: Critical)
Assignee: Ivo Ladage - van Doorn (was: Marcel Offermans)
Fix Version/s: (was: 0.1.0)
Component/s: Amdatu Auth
> 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
> Components: Amdatu Auth
> Affects Versions: 0.1.0
> Reporter: Dion Meijer
> Assignee: Ivo Ladage - van Doorn
>
> In 0.0.6, the json string for a user contained a property "properties", which
> is missing in the trunk:
> {\"name\":\"Administrator\",\"properties\":{\"domains\":\"666ce149-c592-44a9-8630-32a286b0ef43,e5d1347a-c675-4014-b1da-e38ddb230fe9\",\"primaryDomain\":\"666ce149-c592-44a9-8630-32a286b0ef43\",\"username\":\"Administrator\"},\"groups\":[\"Administrators\"]}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira