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/05/11 08:35:14 UTC

[jira] [Commented] (USERGRID-28) Connecting users to activities results in an error

    [ https://issues.apache.org/jira/browse/USERGRID-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13994446#comment-13994446 ] 

Anuradha Weeraman commented on USERGRID-28:
-------------------------------------------

I was not able to recreate this in the latest code. Here's the request response I received when connecting a user to an activity:

{code}
POST /users/johndoe/likes/activities/c393da4a-d8d4-11e3-b214-857589f418c4
 
{
  "action": "post",
  "application": "a327d2c0-c803-11e3-9d97-3523121bb319",
  "params": {
    "access_token": [
      "YWMtcztQUNjUEeOAZ51woQquGQAAAUYN_cNWGRFkORm2b5PZ0N2BIN0drSgGZVI"
    ]
  },
  "path": "/users/d861fa5a-c877-11e3-9d8d-8df03e34cb5e/likes",
  "uri": "http://localhost:8080/test-organization/test-app/users/d861fa5a-c877-11e3-9d8d-8df03e34cb5e/likes",
  "entities": [
    {
      "uuid": "c393da4a-d8d4-11e3-b214-857589f418c4",
      "type": "activity",
      "created": 1399789407716,
      "modified": 1399789407716,
      "actor": {
        "displayName": "John Doe",
        "uuid": "d861fa5a-c877-11e3-9d8d-8df03e34cb5e",
        "email": "johndoe@email.com",
        "username": "johndoe"
      },
      "content": "Hello World!",
      "verb": "post",
      "published": 1399789407716,
      "metadata": {
        "connecting": {
          "likes": "/users/d861fa5a-c877-11e3-9d8d-8df03e34cb5e/likes/c393da4a-d8d4-11e3-b214-857589f418c4/connecting/likes"
        },
        "path": "/users/d861fa5a-c877-11e3-9d8d-8df03e34cb5e/likes/c393da4a-d8d4-11e3-b214-857589f418c4"
      }
    }
  ],
  "timestamp": 1399789650700,
  "duration": 85,
  "organization": "test-organization",
  "applicationName": "test-app"
}
{code}

> Connecting users to activities results in an error
> --------------------------------------------------
>
>                 Key: USERGRID-28
>                 URL: https://issues.apache.org/jira/browse/USERGRID-28
>             Project: Usergrid
>          Issue Type: Bug
>          Components: Stack
>            Reporter: Rod Simpson
>             Fix For: 1.1
>
>
> "When I try connecting from a user to any arbitrary collection it works fine, but when you try connecting to an activity you get an error 
> curl -X POST https://api.usergrid.com/fdsafdas/testapp/users/Don/likes/activities/f3a2150a-4723-11e3-987c-858655651a2a 
> gives error: 
> {""error"":""service_resource_not_found"",""timestamp"":1383770726785,""duration"":0,""exception"":""org.usergrid.services.exceptions.ServiceResourceNotFoundException"",""error_description"":""Service resource not found""} 
> The following API call does work, however: 
> curl -X POST https://api.usergrid.com/fdsafdsa/testapp/users/Don/likes/dogs/Dachsund 
> "



--
This message was sent by Atlassian JIRA
(v6.2#6252)