[BUGFIX] Exception if directories are not readable 05/26905/6
authorSteffen Ritter <info@rs-websystems.de>
Tue, 21 Jan 2014 09:49:23 +0000 (10:49 +0100)
committerSteffen Ritter <info@rs-websystems.de>
Thu, 30 Jan 2014 18:36:30 +0000 (19:36 +0100)
commit017242ff31178adb38812179637923ce94518043
tree9c03a524b06f67e96870a9a295fe6c94ff19f955
parent0a00643f7549cc3aeb4518e9a7065fb10187d402
[BUGFIX] Exception if directories are not readable

If a user has listing rights on a folder which contains
folders he does not have access to the user currently
will end up with Exceptions in folder trees, file lists
as well as element browsers.

Before FAL these folders just have been shown "locked".

This change introduces an "InaccessibleFolder" object
which will be created by the storage if a Folder is
requested which exists but there is no read access while
the user is allowed to list the contents of the parent
folder.

In addition the components have been adapted to use this
new information for a graceful behaviour.

WIP: Did not adapt the tests yet, since I need to do some
urgent customer work. Feel free to go on with that.

Resolves: #51512, #53854
Releases: 6.2
Change-Id: If5c234fe66d1930e4cc0cb16279d2f77874d82db
Reviewed-on: https://review.typo3.org/26905
Tested-by: Ingo Schmitt
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Ingo Schmitt
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/backend/Classes/Tree/View/FolderTreeView.php
typo3/sysext/core/Classes/Resource/InaccessibleFolder.php [new file with mode: 0644]
typo3/sysext/core/Classes/Resource/ResourceStorage.php
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php