-
Notifications
You must be signed in to change notification settings - Fork 2.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
Disable ext storage provider app must keep mount point #26538
Comments
@owncloud/filesystem |
Looks like the storage config even disappears from the UI, not good. This is tricky, because the code expects a Some ideas:
|
To give a second thought, if I disable and remove the app on purpose, the files that are in the desktop client will stay even though they shouldn't be available (probably) and it's possible to keep trying to upload files there. There will be leftovers everywhere (files in the desktop client, unused data in the filecache, unused data in mobiles...) If we're talking about upgrades, the server should return a proper error if anyone tries to access the file, something like "ownCloudUpgradingException", so clients know the server is being upgraded and can respond accordingly. There is the additional topic of what to do if the app is incompatible with the new version... The problem of using the "StorageNotAvailableException" is that the clients won't know what is the real reason of the error: is there a temporal network failure between ownCloud and the backend? did the connector disappear? is ownCloud being updated? If there is a temporal network failure, clients can try another folder, but if ownCloud is being updated is pointless to keep syncing. |
Maybe using the |
If that's what the admin decided, then the admin can also manually delete the matching storages from the config.
Not directly. This is mostly for the case where for example the FTP app was available in OC < 9.2 with respective storages but then when upgrading to 9.2 it has been moved to the market, so the admin might need to manually reinstall it. (unless we can do this automatically, somehow)
Yeah, I guess in general (and separately) we could add more subclasses of |
Estimate: 0.5-2 md as I need some time to dive into this again. Shortest estimate is if we keep the current approach and if it still works after rebase. |
moving to triage to reconsider later... |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps
Expected result
Mount point exists but returns "storage not available" when accessing or syncing.
Actual result
Mount point disappears completely. This would cause sync clients to delete the local files for every user in the event that an app got disabled by mistake. This can happen also at update time where third party apps get disabled.
To avoid this kind of needless data loss through syncing, the mount point must stay visible but any access to it must throw
StorageNotAvailableException
.Versions
Tested on 9.2 prealpha / git master.
Since we want to move many storage backends from files_external to separate apps, the probability that one of the separate app is not enabled on time gets higher and people might see their mount points disappear. Fixing this issue would help ease the migration in case the admin has not enabled the separate apps yet.
medium because there is a workaround: set OC to maintenance mode after an update and make sure to enable the missing storage apps before exiting maintenance mode.
@owncloud/qa @DeepDiver1975 @butonic
The text was updated successfully, but these errors were encountered: