Repository navigation
Do not abort when meeting unfixable legacy storages - #13513
Conversation
|
As discussed I´m not completely sure. @DeepDiver1975 What do you think? |
|
@PVince81 let me have a look at this tomorrow - THX - please ping me |
|
you self asked onced: #7539 (comment) for
time to make a point ;) P.S: I now fixed it (locally) by: now I'm going to fix the references ... |
|
pr is against master -> milestone 8.1 |
|
all by itself this looks good to me 👍 |
|
@DeepDiver1975 was there a decision to move this forward ? |
|
After discussing with @DeepDiver1975 we decided to move forward with this. A warning will still be shown, so people who bother still get a chance to know that something might be wrong. |
a0a6753 to
e6abe96
Compare
|
This makes repair errors and warnings visible for the user when upgrading on the command line or in the web UI.
|
To test:
This will display a warning that the legacy storage could not be automatically repaired. Please note that normally a flag is set in appconfig to avoid redoing the repair every time. Please review @DeepDiver1975 @MorrisJobke @icewind1991 |
|
In the future, if @MorrisJobke's wonderfully magic script is available publicly, we could post a link to documentation on how to manually fix storages using that script. |
|
Refer to this link for build results (access rights to CI server needed): |
|
The inspection completed: 2 updated code elements |
|
Ok should work now, please review |
|
Works, storages are repaired, once there is a conflict it is not repaired, code looks good 👍 |
Do not abort when meeting unfixable legacy storages
|
@karlitschek please confirm backport for 8.0.3: #13513 (comment) Will prepare a PR |
|
stable8: #14928 |
I had a long thought about the repair step that tries and automatically fix legacy storages.
There are cases where automatic repair isn't possible.
So far, the code would bail out and refuse the upgrade.
I think it is not a good idea to prevent upgrading in such cases. It is best to show error messages and let the admin decide what to do. Some setups might run fine, especially if the broken users are old/unused ones.
This PR will change the behavior to only show an error for every storage that could not be fixed automatically.
We can then provide a documentation about the possibilities there are for manual fixing, because this heavily depends on the usage scenario and the time where the data folder was renamed.
@DeepDiver1975 @karlitschek