@@ -170,15 +170,18 @@ private function init() {
170
170
} catch (NotFoundException $ e ) {
171
171
// original file not accessible or deleted, set FailedStorage
172
172
$ this ->storage = new FailedStorage (['exception ' => $ e ]);
173
+ $ this ->nonMaskedStorage = $ this ->storage ;
173
174
$ this ->cache = new FailedCache ();
174
175
$ this ->rootPath = '' ;
175
176
} catch (NoUserException $ e ) {
176
177
// sharer user deleted, set FailedStorage
177
178
$ this ->storage = new FailedStorage (['exception ' => $ e ]);
179
+ $ this ->nonMaskedStorage = $ this ->storage ;
178
180
$ this ->cache = new FailedCache ();
179
181
$ this ->rootPath = '' ;
180
182
} catch (\Exception $ e ) {
181
183
$ this ->storage = new FailedStorage (['exception ' => $ e ]);
184
+ $ this ->nonMaskedStorage = $ this ->storage ;
182
185
$ this ->cache = new FailedCache ();
183
186
$ this ->rootPath = '' ;
184
187
$ this ->logger ->logException ($ e );
@@ -553,6 +556,7 @@ public function getWrapperStorage() {
553
556
if (!$ this ->storage instanceof IStorage) {
554
557
$ e = new \Exception ('Share source storage is null after initializing for share: ' . $ this ->getShare ()->getId ());
555
558
$ this ->storage = new FailedStorage (['exception ' => $ e ]);
559
+ $ this ->nonMaskedStorage = $ this ->storage ;
556
560
$ this ->cache = new FailedCache ();
557
561
$ this ->rootPath = '' ;
558
562
$ this ->logger ->logException ($ e );
0 commit comments