riverscuomo / public-bug-hunt

A place to file bug reports for all of my apps
GNU General Public License v3.0
7 stars 0 forks source link

Previous user’s data shown to Lurker after user logs out - bundles and search results #82

Closed slobulike closed 11 months ago

slobulike commented 1 year ago

Describe the bug A bundle purchased by the previous user is shown on the lurker profile screen after logging out from the previous user's account.

To Reproduce Steps to reproduce the behavior:

  1. Create a new user.
  2. Purchase a bundle.
  3. Log out.
  4. Click "Maybe later" on the login screen
  5. Browse to the profile screen
  6. The bundle is shown against the lurker profile

Expected behavior No data from the previous user should be shown.

Screenshots Screenshot_20231027-211348

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

SlightlyCompletely commented 1 year ago

Also occurs on iPad.

Additionally, if a song from the purchased playlist is playing when user logs out of their account, the song will keep playing even if entering back into Weezify as a lurker without having the bundle purchased. The lurker cannot restart the unowned track after stopping it though.

A lurker visiting the search page will also see the previous user’s last search results, if search was used.

Device: iPad Air 5th gen OS: iPadOS 17.0.3 Weezify 1.12.0 (186)

slobulike commented 11 months ago

In Android version 1.13.1 (189) this has extended further so that until the app is closed a newly created user is able to play all tracks purchased by the previous logged in user.

Essentially the "Your library" page users the previous users data. Maybe the player bloc refactor means that cache isn't clearing?

When I attempted to clear the cache using the new button, I discovered that whilst in this state of having two users data loaded (profile shows correct logged in user data, Your Library shows previous users data) the profile page does not load correctly and the logout, delete, and clear cache buttons don't show e.g.

Screenshot_20231213-123253

Mel01000001 commented 11 months ago

This has been fixed in build 191, but I was unable to log out (button had disappeared). Rectified by closing then reopening the app.

KCreek1 commented 11 months ago

Seems to be functioning normally on iPhone and ipad in v192 (13.1.1)