{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1084","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1084/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1084/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1084/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/1084","id":141730020,"number":1084,"title":"Parse-server returning empty results unless using master key when ACL set.","user":{"login":"oli107","id":3482538,"avatar_url":"https://avatars.githubusercontent.com/u/3482538?v=3","gravatar_id":"","url":"https://api.github.com/users/oli107","html_url":"https://github.com/oli107","followers_url":"https://api.github.com/users/oli107/followers","following_url":"https://api.github.com/users/oli107/following{/other_user}","gists_url":"https://api.github.com/users/oli107/gists{/gist_id}","starred_url":"https://api.github.com/users/oli107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli107/subscriptions","organizations_url":"https://api.github.com/users/oli107/orgs","repos_url":"https://api.github.com/users/oli107/repos","events_url":"https://api.github.com/users/oli107/events{/privacy}","received_events_url":"https://api.github.com/users/oli107/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-17T23:09:03Z","updated_at":"2016-04-06T09:39:29Z","closed_at":null,"body":"For implementation related questions or technical support, please refer to the [stackoverflow](http://stackoverflow.com/questions/tagged/parse.com) community.\r\n\r\nMake sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!\r\n\r\n- [x] You've met the [prerequisites](https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#prerequisites).\r\n\r\n- [x] You're running the [latest version](https://github.com/ParsePlatform/parse-server/releases) of Parse Server.\r\n\r\n- [x] You've searched through [existing issues](https://github.com/ParsePlatform/parse-server/issues?utf8=%E2%9C%93&q=). Chances are that your issue has been reported or resolved before.\r\n\r\n#### Environment Setup\r\nparse-server 2.1.6 running locally and on Heroku\r\nDatabase migrated to mLab\r\n\r\n#### Steps to reproduce\r\n1. Migrated database on mLab (note, migration complete so both parse.com and parse-server using the new database)\r\n2. Existing (or new) user which has ACL set to a role with itself as the only member\r\n3. Run a test query via the API console on local parse server (or heroku) and parse.com, using the object ID of the user. parse-server returns empty array, parse.com returns the correct array\r\n\r\n#### Issue\r\nUsing the dashboard (running locally) as well as using Cloud Code and parse JS functions, queries are reporting empty unless using the master key is used in the copied database. These queries return as expected via the Parse.com API. Both are using the mLabs hosted database as migration is complete so it does not appear to be related to the database structure. All data appears correct within the database, and when using the master key to view records or the dashboard browser the ACL appears correct. It does not work when the ACL is set to a role nor when it is set to an individual user. \r\n\r\nScreenshot attached running side by side off the same parse-dashboard. Window on the left = database hosted on mLab and server on heroku, window on right = parse.com.\r\n\r\n<img width=\"1468\" alt=\"parse acl issue\" src=\"https://cloud.githubusercontent.com/assets/3482538/13863763/2a3c40c8-ec94-11e5-9e99-c730ebc152bb.png\">\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/comments/206261275","html_url":"https://github.com/ParsePlatform/parse-server/issues/1084#issuecomment-206261275","issue_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1084","id":206261275,"user":{"login":"mattgoldspink","id":415690,"avatar_url":"https://avatars.githubusercontent.com/u/415690?v=3","gravatar_id":"","url":"https://api.github.com/users/mattgoldspink","html_url":"https://github.com/mattgoldspink","followers_url":"https://api.github.com/users/mattgoldspink/followers","following_url":"https://api.github.com/users/mattgoldspink/following{/other_user}","gists_url":"https://api.github.com/users/mattgoldspink/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgoldspink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgoldspink/subscriptions","organizations_url":"https://api.github.com/users/mattgoldspink/orgs","repos_url":"https://api.github.com/users/mattgoldspink/repos","events_url":"https://api.github.com/users/mattgoldspink/events{/privacy}","received_events_url":"https://api.github.com/users/mattgoldspink/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T09:39:29Z","updated_at":"2016-04-06T09:39:29Z","body":"I take that back - it looks like for some reason when i was testing I'd got logged out from Parse so the session key I was trying was invalid - as @oli107 says perhaps this should be closed and re-opened under the parse-dashboard."}}