You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Rod Simpson (JIRA)" <ji...@apache.org> on 2014/02/04 21:32:08 UTC
[jira] [Created] (USERGRID-75) deactivate user failed with eof
Rod Simpson created USERGRID-75:
-----------------------------------
Summary: deactivate user failed with eof
Key: USERGRID-75
URL: https://issues.apache.org/jira/browse/USERGRID-75
Project: Usergrid
Issue Type: Story
Components: Stack
Reporter: Rod Simpson
"while trying to test usergrid-482 , it kept failing me:
$ curl -X GET -i -H ""Authorization: Bearer YWMtDO-CfyIFEeKQqgLoGtzz0AAAATqzTlT-_uHgO-V4yLCnn5qmf3u3LsfgEa8"" ""https://api.usergrid.com/actionj/testapp/users/3afe1d6b-2201-11e2-9dd7-02e81ac5a17b""
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Mon, 29 Oct 2012 22:26:38 GMT
Server: Apache-Coyote/1.1
Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Sun, 28-Oct-2012 22:26:38 GMT
Content-Length: 1569
Connection: keep-alive
{
""action"" : ""get"",
""application"" : ""dbf36c2c-cada-11e1-95bc-12313d1c4491"",
""params"" : { },
""path"" : ""/users"",
""uri"" : ""http://internal-usergrid-int-1722898842.us-east-1.elb.amazonaws.com/actionj/testapp/users"",
""entities"" : [ {
""uuid"" : ""3afe1d6b-2201-11e2-9dd7-02e81ac5a17b"",
""type"" : ""user"",
""name"" : ""jackson test"",
""created"" : 1351539945458,
""modified"" : 1351539945458,
""activated"" : true,
""email"" : ""jackson+test@apigee.com"",
""metadata"" : {
""path"" : ""/users/3afe1d6b-2201-11e2-9dd7-02e81ac5a17b"",
""sets"" : {
""rolenames"" : ""/users/3afe1d6b-2201-11e2-9dd7-02e81ac5a17b/rolenames"",
""permissions"" : ""/users/3afe1d6b-2201-11e2-9dd7-02e81ac5a17b/permissions""
},
""collections"" : {
""activities"" : ""/users/3afe1d6b-2201-11e2-9dd7-02e81ac5a17b/activities"",
""devices"" : ""/users/3afe1d6b-2201-11e2-9dd7-02e81ac5a17b/devices"",
""feed"" : ""/users/3afe1d6b-2201-11e2-9dd7-02e81ac5a17b/feed"",
""groups"" : ""/users/3afe1d6b-2201-11e2-9dd7-02e81ac5a17b/groups"",
""roles"" : ""/users/3afe1d6b-2201-11e2-9dd7-02e81ac5a17b/roles"",
""following"" : ""/users/3afe1d6b-2201-11e2-9dd7-02e81ac5a17b/following"",
""followers"" : ""/users/3afe1d6b-2201-11e2-9dd7-02e81ac5a17b/followers""
}
},
""name"" : ""jackson test"",
""picture"" : ""http://www.gravatar.com/avatar/1dabca4d018bcdd71e9f6a93f49e38df"",
""username"" : ""jackson-test""
} ],
""timestamp"" : 1351549598902,
""duration"" : 15,
""organization"" : ""actionj"",
""applicationName"" : ""testapp""
}
$ curl -X POST -i -H ""Authorization: Bearer YWMtDO-CfyIFEeKQqgLoGtzz0AAAATqzTlT-_uHgO-V4yLCnn5qmf3u3LsfgEa8"" ""https://api.usergrid.com/actionj/testapp/users/3afe1d6b-2201-11e2-9dd7-02e81ac5a17b/deactivate""
HTTP/1.1 400 Bad Request
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Mon, 29 Oct 2012 22:27:05 GMT
Server: Apache-Coyote/1.1
Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Sun, 28-Oct-2012 22:27:05 GMT
Content-Length: 159
Connection: keep-alive
{""error"":""eof"",""timestamp"":1351549625750,""duration"":0,""exception"":""java.io.EOFException"",""error_description"":""No content to map to Object due to end of input""}
The token was generated via:
curl -X GET -i ""https://api.usergrid.com/management/token?grant_type=password&username=<account name>&password=<account password>"""
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)