-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Parse Query results (AWS + MongoLab + Android) #414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did anybody have issues with ACL when doing a ParseQuery? |
This is a possible bug, and a test-case could be written to test if a null pointer causes failing results. Are you still having this issue on 2.1.3? |
Thanks Fosco, So, I was on 2.0, now with 2.1.3 there seems to be no problem querying null pointer. But... now I can't login with any email/password user account, exception was facebook user account which let me confirm the null pointer issue was gone. And the problem 2 I've mentioned above, related to ACL still persists on android, I can't see records that have ACL read or write to current user, I only see records that have ACL public read/write access. Just so you know, after updating to 2.1.3, on android I have only changed the server url and reinstalled the app. I'm also testing this migration app on iOS, with same configuration keys, mongo, server, everything... and there was no problem related to user accessing, or any ACL issue so far. Cloud code seems to be working fine too. |
If you can set the environment variable VERBOSE=1 and capture the queries from iOS/Android and spot any difference, that would help... Just added a PR to fix some android specific functionality earlier, and I'm sure there's more to be done. |
There you go. I don't see any significant difference. Android
iOS
|
Glad the null pointer issue is fixed... The ACL issue seems well covered in tests, so you'd need to provide some more details or do some troubleshooting / test writing your self. If you are still having issues, please open a new issue. Thanks. |
I have migrated to AWS, MonboLab(data migrated according to parse guide) and am currently testing on android. I have the latest parse-server and latest android SDK version running. So here are 2 problems found after the migration, when android return results from the ParseQuery:
when there are 4 pointers, using query.include("pointer"), the data returned from the pointers are null, which shouldn't since checking mongo 3 pointers have data, and only 1 is null. When I remove this pointer that returns null, the others 3 pointers return data normally. So, is there a include limit issue? how that null pointer is messing all other pointers?
data that have Read or Write permission ACL to the current user are not being returned, unless the data has public permission. Is there any ACL migration setup I'm missing here? I've checked mongo and all classes seemed to have been migrated normally.
Here is the query definition:
Appreciate any help. Thanks!
The text was updated successfully, but these errors were encountered: