[
https://issues.apache.org/jira/browse/USERGRID-1230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeffrey updated USERGRID-1230:
-------------------------------
Description:
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/amuramoto/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/amuramoto/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"}
> POST to /events returns entity that does not exist
> --------------------------------------------------
>
> Key: USERGRID-1230
> URL: https://issues.apache.org/jira/browse/USERGRID-1230
> Project: Usergrid
> Issue Type: Story
> Reporter: Jeffrey
>
> 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/amuramoto/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/amuramoto/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.3.4#6332)