You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Anuradha Weeraman (JIRA)" <ji...@apache.org> on 2014/04/20 20:14:15 UTC
[jira] [Commented] (USERGRID-98) POST to /events returns entity
that does not exist
[ https://issues.apache.org/jira/browse/USERGRID-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13975208#comment-13975208 ]
Anuradha Weeraman commented on USERGRID-98:
-------------------------------------------
Appears to be due to a resource owner check that is failing in RelationManagerImpl.isCollectionMember().
> 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
> Fix For: 1.1
>
>
> 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)