{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla-services/kinto/issues/115","labels_url":"https://api.github.com/repos/mozilla-services/kinto/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/mozilla-services/kinto/issues/115/comments","events_url":"https://api.github.com/repos/mozilla-services/kinto/issues/115/events","html_url":"https://github.com/mozilla-services/kinto/issues/115","id":93109951,"number":115,"title":"Sharing a record (adding read permission) doesn't work","user":{"login":"magopian","id":167767,"avatar_url":"https://avatars.githubusercontent.com/u/167767?v=3","gravatar_id":"","url":"https://api.github.com/users/magopian","html_url":"https://github.com/magopian","followers_url":"https://api.github.com/users/magopian/followers","following_url":"https://api.github.com/users/magopian/following{/other_user}","gists_url":"https://api.github.com/users/magopian/gists{/gist_id}","starred_url":"https://api.github.com/users/magopian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magopian/subscriptions","organizations_url":"https://api.github.com/users/magopian/orgs","repos_url":"https://api.github.com/users/magopian/repos","events_url":"https://api.github.com/users/magopian/events{/privacy}","received_events_url":"https://api.github.com/users/magopian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-05T13:04:44Z","updated_at":"2015-07-05T13:04:44Z","closed_at":null,"body":"Still following the tutorial, I made Alice add the `read` permission to Bob on a newly created record. The server answered with a `200 OK`, but still the permission wasn't added:\r\n```\r\necho '{\r\n    \"permissions\": {\r\n        \"read\": [\"basicauth:a103c2e714a04615783de8a03fef1c7fee221214387dd07993bb9aed1f2f2148\"]\r\n    }\r\n}' | http PATCH http://0.0.0.0:8888/v1/buckets/todo/collections/tasks/records/55793ad7-9387-43c0-a275-7023ba100d2a     -v --auth 'alice:alicepassword'\r\nPATCH /v1/buckets/todo/collections/tasks/records/55793ad7-9387-43c0-a275-7023ba100d2a HTTP/1.1\r\nAccept: application/json\r\nAccept-Encoding: gzip, deflate\r\nAuthorization: Basic YWxpY2U6YWxpY2VwYXNzd29yZA==\r\nContent-Length: 126\r\nContent-Type: application/json; charset=utf-8\r\nHost: 0.0.0.0:8888\r\nUser-Agent: HTTPie/0.8.0\r\n\r\n{\r\n    \"permissions\": {\r\n        \"read\": [\r\n            \"basicauth:a103c2e714a04615783de8a03fef1c7fee221214387dd07993bb9aed1f2f2148\"\r\n        ]\r\n    }\r\n}\r\n\r\nHTTP/1.1 200 OK\r\nAccess-Control-Expose-Headers: Backoff, Retry-After, Alert\r\nContent-Length: 230\r\nContent-Type: application/json; charset=UTF-8\r\nDate: Sun, 05 Jul 2015 12:56:55 GMT\r\nServer: waitress\r\n\r\n{\r\n    \"data\": {\r\n        \"description\": \"Alice task\",\r\n        \"id\": \"55793ad7-9387-43c0-a275-7023ba100d2a\",\r\n        \"last_modified\": 1436100739056,\r\n        \"status\": \"todo\"\r\n    },\r\n    \"permissions\": {\r\n        \"write\": [\r\n            \"basicauth:9be2b51de8544fbed4539382d0885f8643c0185c90fb23201d7bbe86d70b4a44\"\r\n        ]\r\n    }\r\n}\r\n```\r\n\r\nHere's a `GET` on the record:\r\n```\r\nhttp GET http://0.0.0.0:8888/v1/buckets/todo/collections/tasks/records/55793ad7-9387-43c0-a275-7023ba100d2a     -v --auth 'alice:alicepassword'\r\nGET /v1/buckets/todo/collections/tasks/records/55793ad7-9387-43c0-a275-7023ba100d2a HTTP/1.1\r\nAccept: */*\r\nAccept-Encoding: gzip, deflate\r\nAuthorization: Basic YWxpY2U6YWxpY2VwYXNzd29yZA==\r\nHost: 0.0.0.0:8888\r\nUser-Agent: HTTPie/0.8.0\r\n\r\n\r\n\r\nHTTP/1.1 200 OK\r\nAccess-Control-Expose-Headers: Backoff, Retry-After, Alert, Last-Modified, ETag\r\nContent-Length: 230\r\nContent-Type: application/json; charset=UTF-8\r\nDate: Sun, 05 Jul 2015 13:02:03 GMT\r\nEtag: \"1436100903483\"\r\nLast-Modified: Sun, 05 Jul 2015 12:55:03 GMT\r\nServer: waitress\r\n\r\n{\r\n    \"data\": {\r\n        \"description\": \"Alice task\",\r\n        \"id\": \"55793ad7-9387-43c0-a275-7023ba100d2a\",\r\n        \"last_modified\": 1436100739056,\r\n        \"status\": \"todo\"\r\n    },\r\n    \"permissions\": {\r\n        \"write\": [\r\n            \"basicauth:9be2b51de8544fbed4539382d0885f8643c0185c90fb23201d7bbe86d70b4a44\"\r\n        ]\r\n    }\r\n}\r\n```"}}