Missing Account Data when repeatedly Removing and Adding User
The application fails to download account (user and box owner) information when creating a new account on certain circumstances. Steps to reproduce:
- Start the application.
- Add an account.
- This will create a new session and download account information. A new session is created in order to download the data.
- Delete account from step 2.
- This will remove account data and delete account information. But the associated session remains alive.
- Add the same account as created in step 2 and deleted in step 3.
- This will fail to create a new session because the old is still existing. No account data are downloaded because no new session is needed.
Solution:
Make sessions of deleted account inaccessible for future use.