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/03/13 12:31:42 UTC
[jira] [Created] (USERGRID-98) POST to /events returns entity that
does not exist
Rod Simpson created USERGRID-98:
-----------------------------------
Summary: POST to /events returns entity that does not exist
Key: USERGRID-98
URL: https://issues.apache.org/jira/browse/USERGRID-98
Project: Usergrid
Issue Type: Bug
Components: Stack
Reporter: Rod Simpson
When I create a new event entity, the API returns an entity with uuid, but when I do a GET on the entity, the API returns a service resource not found error. GET on the /events endpoint also shows that the entity was not saved.
So this POST:
curl -X POST "https://api.usergrid.com/fdsafdsa/test/events" -d '{"timestamp":201111211437, "category":"testcat"}'
Returns this response:
{
"action" : "post",
"application" : "4a1edb70-d7a8-11e2-9ce3-f315e5aa568a",
"params" : { },
"path" : "/events",
"uri" : "http://api.usergrid.com/fdsafdsa/test/events",
"entities" : [ {
"uuid" : "c8a283c6-e79b-1038-8735-1d2142858146",
"type" : "event",
"created" : 1372888238225,
"modified" : 1372888238225,
"timestamp" : 201111211437,
"category" : "testcat",
"message" : null,
"metadata" : {
"path" : "/events/c8a283c6-e79b-1038-8735-1d2142858146"
}
} ],
But a GET on /events/c8a283c6-e79b-1038-8735-1d2142858146 returns this error:
{"error":"service_resource_not_found","timestamp":1372888258143,"duration":0,"exception":"org.usergrid.services.exceptions.ServiceResourceNotFoundException","error_description":"Service resource not found"}
--
This message was sent by Atlassian JIRA
(v6.2#6252)