-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
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 the android: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
- Go to device Settings > ownCloud > Storage > Manage storage/Clear data
- Press the button "Clear data" from our screen
- Notice the strange status when the app is opened again (a /Shares folder appears in root in Personal space, deep links are not working...)
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