Skip to content
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

Anonymous user's experiences being deleted. #1

Open
wwpreston opened this issue Jul 3, 2015 · 0 comments
Open

Anonymous user's experiences being deleted. #1

wwpreston opened this issue Jul 3, 2015 · 0 comments
Assignees
Labels

Comments

@wwpreston
Copy link

There is a bug, effecting users that are not logged in, causing their experiences to be deleted from the device at the command of the server. This effects both on both Android and iOS clients.

This happens on the second update with the server after creating an experience.
When the experience is created on the device it's "op" field is set to "create".
On the first update with the server this field is set to nil or null.
On the second update the server adds experiences with a null "op" to the list of experiences to remove.

To reproduce on the client: log out, create an experience, go back to the main screen, and force close/open the client a few times.

Possible fix: in file src/main/java/uk/ac/horizon/aestheticodes/server/ExperiencesEndpoint.java change line 179 from "if (existing == null)" to "if (existing == null && user!=null)".

Posting this as an issue as I do't have the environment to test this or permission to edit files.

@ktg ktg self-assigned this Jul 6, 2015
@ktg ktg added the bug label Jul 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants