Skip to content

Under certain conditions, a query that should return some results returns empty list. #26

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

Closed
noughts opened this issue Aug 17, 2015 · 3 comments
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@noughts
Copy link

noughts commented Aug 17, 2015

Frequency: 100%

Environment:
Android 4.1.1
Parse SDK 1.10.0

When setting query's include() to a certain condition, ParseObject.saveAll() fails, and the query doesn't function properly after restarting the app.

Below is the repro code with Parse Starter Project.
https://dl.dropboxusercontent.com/u/309225/androidIssue14.zip

I commented out the lines causing the problem, so when running it straight, a Feed object is created to Parse, then a query fetches it with 1 result, flag it as "read" and save to Parse. Then the same should happen when running it again. This is the expected behavior.

Then, when uncommenting the line 94 in MainActivity.java and running, an error "object not found for update" occurs upon saving the "read" flag to Parse.
Then, when running it again, very weirdly, the query's results becomes 0.
This doesn't change after re-running repeatedly, but when deleting the app and running it again, the same error code happens with 1 result.

The server side is clean, haven't set up CloudCode nor any Class Level Permissions.

I've reported before a problem with pin ( https://developers.facebook.com/bugs/901559459903544/ ), and I thought I could go forward now that it's finally fixed, but now stopped by this error.

Thanks in advance for your advice.

@noughts noughts changed the title Under certain conditions, a query that should return some results returns 0. Under certain conditions, a query that should return some results returns empty list. Aug 17, 2015
@wangmengyan95 wangmengyan95 self-assigned this Aug 19, 2015
@wangmengyan95 wangmengyan95 added the type:bug Impaired feature or lacking behavior that is likely assumed label Aug 19, 2015
@grantland grantland assigned grantland and unassigned wangmengyan95 Aug 19, 2015
@grantland
Copy link
Contributor

This was actually fixed by #3 and released in 1.10.1.

Verified working with supplied project.

@noughts
Copy link
Author

noughts commented Aug 20, 2015

It works in with 1.10.1!
Thanks!

@grantland
Copy link
Contributor

Great to hear 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

3 participants