-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[BUG] "Clear data" button malfunctioning #4309
Comments
In the following text I will explain in detail the research I have done on this issue. Once put in context about what clears the clear data, for some as yet undiscovered reason this option leaves the app in an inconsistent state. First of all the network call to the capabilities is not working. We get the following error: The capabilities request has been reviewed and both when we receive an ok and when we receive an error, the request is the same: Behaviour when logging in for the first time: Regarding this inconsistency, when we click on clear data, a Shares folder appears that we have not created. We receive this folder when we make the To sum up, I have failed to see what is causing this inconsistency. At this point I propose to delete the account when we do the clear data so that it does a base login. |
After the above investigation, it has been decided to clear the application's accounts when the user clicks on Clear data button. In order for the application to internally know that the Clear data button has been pressed, a In the same way, the change of version of the application has been controlled in the Clear data condition, as it could be the case that if a user upgrades to a new version, in this new version, the Clear data preference will still not exist in this flow and therefore the accounts will be deleted. This is why the version change has been managed. |
EPIC:
Actual behaviour
When going to the device Settings > Apps > ownCloud > Storage > Manage storage/Clear data, a screen of our own is opened with a button that says "Clear data". Pressing it lets the app and its database in a weird and inconsistent state (a new folder /Shares is created, spaces ID are removed from the files...), which leads to unexpected behaviours.
Expected behaviour
The usual behaviour here is removing all the data from the app, letting the OS take care of it. The key here is, if we currently remove
ManageSpaceActivity.java
and theandroid:manageSpaceActivity="com.owncloud.android.ui.activity.ManageSpaceActivity"
property from the Android Manifest, the OS takes care of clearing the data but the strange status continues happening. So, there is something in the logic of our app that makes it put itself into this inconsistent status, that's what we have to research here.Steps to reproduce
Can this problem be reproduced with the official owncloud server?
(url: https://demo.owncloud.org, user: test, password: test)
Yes, this seems to be a problem related to the app itself so the server shouldn't affect.
Environment data
Android version: 9
Device model: Samsung Galaxy S9
Stock or customized system: Stock
ownCloud app version: 4.1.1
ownCloud server version: doesn't mind here
The text was updated successfully, but these errors were encountered: