{"action":"created","issue":{"url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/514","repository_url":"https://api.github.com/repos/deepstreamIO/deepstream.io","labels_url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/514/labels{/name}","comments_url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/514/comments","events_url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/514/events","html_url":"https://github.com/deepstreamIO/deepstream.io/issues/514","id":197727919,"number":514,"title":"ACK_TIMEOUT with Valve permissions, cross references, subscript operator","user":{"login":"ChristophConrads-deepstreamHub","id":24474019,"avatar_url":"https://avatars.githubusercontent.com/u/24474019?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristophConrads-deepstreamHub","html_url":"https://github.com/ChristophConrads-deepstreamHub","followers_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/followers","following_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/following{/other_user}","gists_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/subscriptions","organizations_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/orgs","repos_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/repos","events_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/events{/privacy}","received_events_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/received_events","type":"User","site_admin":false},"labels":[{"id":146066560,"url":"https://api.github.com/repos/deepstreamIO/deepstream.io/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-27T16:41:29Z","updated_at":"2016-12-27T16:52:42Z","closed_at":null,"body":"[Zipped demo code](https://github.com/deepstreamIO/deepstream.io/files/674387/subscript-operator.zip)\r\n\r\nConsider the following snippet from a Valve file:\r\n```yaml\r\nrecord:\r\n  \"d/$uid\":\r\n    create: _('perm/' + user.id)[$uid]\r\n    read:   _('perm/' + user.id)[$uid]\r\n  \"*\":\r\n    create: true\r\n    write: true\r\n    read: true\r\n    delete: true\r\n    listen: true\r\n```\r\n\r\nIf the client attempts to get a non-existent record `d/$uid` with, e.g., `client.record.getRecord(\"d/u101\")`, then the server seems to hang, triggering the client's error handler:\r\n```\r\nhandleError d/u101 ACK_TIMEOUT R\r\n```\r\nThe error can be avoided by removing either line 3 or line 4 from the Valve code above."},"comment":{"url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/comments/269351562","html_url":"https://github.com/deepstreamIO/deepstream.io/issues/514#issuecomment-269351562","issue_url":"https://api.github.com/repos/deepstreamIO/deepstream.io/issues/514","id":269351562,"user":{"login":"ChristophConrads-deepstreamHub","id":24474019,"avatar_url":"https://avatars.githubusercontent.com/u/24474019?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristophConrads-deepstreamHub","html_url":"https://github.com/ChristophConrads-deepstreamHub","followers_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/followers","following_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/following{/other_user}","gists_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/subscriptions","organizations_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/orgs","repos_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/repos","events_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/events{/privacy}","received_events_url":"https://api.github.com/users/ChristophConrads-deepstreamHub/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T16:52:42Z","updated_at":"2016-12-27T16:52:42Z","body":"Simplified demo: [subscript-operator.zip](https://github.com/deepstreamIO/deepstream.io/files/674403/subscript-operator.zip)\r\n\r\n`permissions.yml`:\r\n```yml\r\nrecord:\r\n  \"d/*\":\r\n    create: _('perm/JohnDoe').boolean\r\n    read:   _('perm/JohnDoe').boolean\r\n  \"*\":\r\n    create: true\r\n    write: true\r\n    read: true\r\n    delete: true\r\n    listen: true\r\n```"}}
{"actor":{"display_login":"ChristophConrads-deepstreamHub"}}