Commit 15ebe37
committed
fix(share): Avoid crash when share owner is not found
IShare::getNode is documented to throw only NotFoundException, so catch
UserNotFoundException from the level below and wrap it. This avoids
crashes from share api controller when listing shares and one of them
is broken because its owner has vanished from the backend.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>1 parent c94ec91 commit 15ebe37
1 file changed
Lines changed: 18 additions & 13 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
149 | 156 | | |
150 | | - | |
151 | | - | |
152 | 157 | | |
153 | 158 | | |
154 | 159 | | |
| |||
0 commit comments