[
https://issues.apache.org/jira/browse/USERGRID-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anuradha Weeraman reassigned USERGRID-49:
-----------------------------------------
Assignee: Anuradha Weeraman
> Adding admin user - username seems to default to email address
> --------------------------------------------------------------
>
> Key: USERGRID-49
> URL: https://issues.apache.org/jira/browse/USERGRID-49
> Project: Usergrid
> Issue Type: Bug
> Components: Stack
> Reporter: Rod Simpson
> Assignee: Anuradha Weeraman
> Fix For: 1.1
>
>
> "As reported by a user on the ML, the username field is being populated by
> the email. Not sure if this is just the JSON returned, or if it is like this
> in the DB:
> But I think I've found a bug there:
> Here's my request:
> curl -X POST -i -H ""Authorization: Bearer <my_token>""
> ""http://<my_usergrid>/management/organizations/<my_org>/users"" -d
> '{""username"":""beto"",""name"":""fdsafdsal"",""email"":""[email protected]"",""password"":""fdsafdsa""}'
>
> Here's my response:
> {
> ""action"" : ""create user"",
> ""status"" : ""ok"",
> ""data"" : {
> ""user"" : {
> ""applicationId"" : ""00000000-0000-0000-0000-000000000001"",
> ""username"" : ""[email protected]"",
> ""name"" : ""[email protected]"",
> ""email"" : ""[email protected]"",
> ""activated"" : false,
> ""disabled"" : false,
> ""properties"" : { },
> ""uuid"" : ""a3b888d4-b68d-11e2-bc11-b7899f6392a4"",
> ""adminUser"" : true,
> ""displayEmailAddress"" : ""[email protected] <[email protected]>"",
> ""htmldisplayEmailAddress"" : ""[email protected] <<a
> href=\""mailto:[email protected]\"">[email protected]</a>>""
> }
> },
> ""timestamp"" : 1367873022791,
> ""duration"" : 432
> }
> Take a look at the ""username"" value. It's getting my email, instead of the
> username I provided on the request.
> "
--
This message was sent by Atlassian JIRA
(v6.2#6252)