[BUGFIX] Handle access restrictions on recycler search 52/57052/9
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:12:18 +0000 (20:12 +0200)
commita52ca0e92a99f7b7c5b152b11d78ad0fb2017c53
tree0807bb92e900ac8d19e0617a235a25f054aac02f
parent0367dbda85deb5009671ea8bf0484458a920a7a2
[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/57052
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/core/Classes/Resource/ResourceStorage.php