Repository navigation
Conversation
To avoid unwanted side effects with a wrongly setup FS, if the user was not found by the user manager, an exception will be thrown.
|
I tested this with the broken LDAP upgrade path from #12801 (make sure to have shares). The exception is correctly thrown during the OC6->OC7 upgrade. No bogus storage is created. Applying the patch from #13865 after seeing the error solves it. I also regression tested this (with encryption enabled):
|
|
And update script does not need to be touched, or will just report the error? |
|
This will just report the error, basically blocking the update instead of destroying everything. |
|
Consider this like a fuse in an electronic circuit. It's only there as a safety. |
|
The inspection completed: 1 updated code elements |
|
@blizzz to clarify: when testing this, do not apply the other patch. Goal is to recreate the original situation we had where the bogus "local::" storages got created. The difference is that with this PR here it will block the update and no bogus storages will be created. |
|
No, I agree. My point is that this will require other fixes to behave nicer to users. So we need to be prepared that it might throw exception on other places, too. Either we figure them out before (but to be dealt with in seperate PRs), or wait for testing to find them. |
|
OTOH we are not aware of other cases that result in such problems… ok. was just thinking writingly. |
|
👍 |
|
|
|
@icewind1991 can you explain why this was expected: Why do we have this logic that still creates a "local::" based storage for non-existing users ? And why not create a "home::" based one if we really do want an entry ? |
|
Quick question: would this exception throw be better suited in the user manager itself? I'm not too familiar with that code, but it seems to me that |
|
@Xenopathic it might make sense from a design point of view but who knows what other things will break if we make that change... |
No clue, and you added it 😄 34c92f6 |
|
Hmmm... back then I was still confused by it so I preferred to keep it. |
|
rescheduling this for 8.2 - we are entering freeze for 8.1 tomorrow |
|
Lets address this in #15332 |
To avoid unwanted side effects with a wrongly setup FS, if the user was
not found by the user manager, an exception will be thrown.
Should increase robustness a bit and avoid fatal side effects like #12801 (comment)
@icewind1991 @Xenopathic @blizzz @schiesbn @DeepDiver1975