[BUGFIX] Handle access restrictions on recycler search 05/57105/2
authorNicole Cordes <typo3@cordes.co>
Fri, 25 May 2018 12:05:16 +0000 (14:05 +0200)
committerFrans Saris <franssaris@gmail.com>
Thu, 31 May 2018 18:14:50 +0000 (20:14 +0200)
commit68c78a75e65d717d971c69b5235472fbb5974a89
treeb40cc67942af6699baf200c38feb0ca2118c127e
parent4e6e6cf964099a76ee77a9530c91ef579895d96f
[BUGFIX] Handle access restrictions on recycler search

Fetching a parent folder may throws an error if the user hasn't
access to the parent. This exception needs to be caught and the
search for an existing recycler folder needs to be stopped
immediately.

Furthermore the patch removes the comparison with the root level
folder but checks the parent folder doesn't equal the folder itself.

Another loop is fixed by calling moveFile on the correct
ResourceStorge and not the current one.

Resolves: #85079
Related: #81836
Releases: master, 8.7
Change-Id: I51f5e20d7fa7da9b350ac0ca60cab05866a4d337
Reviewed-on: https://review.typo3.org/57105
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/core/Classes/Resource/ResourceStorage.php