[BUGFIX] Prevent infinite loop in FAL access check 43/39243/2
authorNicole Cordes <typo3@cordes.co>
Thu, 30 Apr 2015 16:32:20 +0000 (18:32 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sun, 3 May 2015 15:00:51 +0000 (17:00 +0200)
commitf0a98e86415fde17f2c9339b6f1bc09be53b6f71
tree526fe5022366e9d767f2eaec8caea39fb9bdeec6
parenta2fe59ff60876dee89f5b6b980da3442c8546bf0
[BUGFIX] Prevent infinite loop in FAL access check

If you have a storage which defines the processed folder in another
storage an infinite loop occurs when accessing the file list as
non-admin user. This is because the function getProcessingFolders
is called within the access check and starts access check for the
processed folder as well. This patch creates folder objects without
any access check (because processed folders should be readable and
writeable for everyone). Furthermore the processed folders for a storage
are cached after first fetch.

Releases: master, 6.2
Resolves: #66695
Change-Id: I9dade448466160f8c66f6118622d074f52bff702
Reviewed-on: http://review.typo3.org/39243
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Classes/Resource/ResourceStorage.php