You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: