Commit 2149378
committed
fix(files_sharing): don't crash CleanupShareTarget when mount info is missing
The repair step "Cleanup share names with false conflicts" fatals with
"Call to a member function getRootId() on null" when a problem share's
old target has no entry in the recipient's cached mounts (e.g. the
recipient has not logged in since the share was created).
Guard the lookup the same way the generateUniqueTarget callback already
does and skip the mount cache refresh in that case - the share row is
already updated by moveShare() and the cache is rebuilt on the user's
next login.
Fixes #63494
Signed-off-by: Baki Burak Öğün <63836730+bakiburakogun@users.noreply.github.com>1 parent d7c20b7 commit 2149378
1 file changed
Lines changed: 12 additions & 10 deletions
File tree
- apps/files_sharing/lib/Repair
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
0 commit comments