Rod Simpson created USERGRID-38:
-----------------------------------
Summary: Failure to recognize 'username' property while creating
app user
Key: USERGRID-38
URL: https://issues.apache.org/jira/browse/USERGRID-38
Project: Usergrid
Issue Type: Bug
Components: Stack
Reporter: Rod Simpson
"When going through the demo commands here:
[https://github.com/apigee/usergrid-stack/blob/master/README.md]
On the 4th HTTP request labeled ""É And a User for the Application:"" below:
{quote}
curl -H ""Authorization: Bearer [the management token from above]"" \
-X POST ""http://localhost:8080/myfirstorg/myapp/users"" \
-d '\{ ""username"":""myuser"", ""password"":""password"",
""email"":""[email protected]"" }'
{quote}
This fails with the following error:
{quote}
\{""error"":""unrecognized_property"",""timestamp"":1373923575543,""duration"":0,""exception"":""org.codehaus.jackson.map.exc.UnrecognizedPropertyException"",""error_description"":""Unrecognized
field \""username\"" (Class com.sun.jersey.core.provider.EntityHolder), not
marked as ignorable\n at [Source:
org.usergrid.rest.filters.MeteringFilter$InputStreamAdapter@75046a60; line: 1,
column: 15] (through reference chain:
com.sun.jersey.core.provider.EntityHolder[\""username\""])""}
{quote}
This command however succeeds when issuing a PUT instead of a POST command."
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)