Bug #57457
closedEpic #83669: Improve file list / file browser
Not readable file makes Filelist unuseable with error "failed to open stream: Permission denied"
100%
Description
16 TYPO3\CMS\Core\Error\ErrorHandler::handleError(2, "finfo::file([...]/typo3-master/fileadmi…bla.txt): failed to open stream: Permission denied", "[...]/typo3-master/typo3-src/typo3/…ysext/core/Classes/Resource/Driver/LocalDriver.php", 614, array) 15 finfo::file("[...]/typo3-master/fileadmin/bla.txt", 16) 14 TYPO3\CMS\Core\Resource\Driver\LocalDriver::getMimeTypeOfFile("[...]/typo3-master/fileadmin/bla.txt") 13 TYPO3\CMS\Core\Resource\Driver\LocalDriver::getSpecificFileInformation("[...]/typo3-master/fileadmin/bla.txt", "/", "mimetype") 12 TYPO3\CMS\Core\Resource\Driver\LocalDriver::extractFileInformation("[...]/typo3-master/fileadmin/bla.txt", "/", array) 11 TYPO3\CMS\Core\Resource\Driver\LocalDriver::getFileInfoByIdentifier("/bla.txt", array) 10 TYPO3\CMS\Core\Resource\ResourceStorage::getFileInfoByIdentifier("/bla.txt") 9 TYPO3\CMS\Core\Resource\Index\Indexer::gatherFileInformationArray("/bla.txt") 8 TYPO3\CMS\Core\Resource\Index\Indexer::createIndexEntry("/bla.txt") 7 TYPO3\CMS\Core\Resource\ResourceFactory::getFileObjectByStorageAndIdentifier(1, "/bla.txt") 6 TYPO3\CMS\Core\Resource\ResourceStorage::getFilesInFolder(TYPO3\CMS\Core\Resource\Folder, 0, 0, boolean, boolean) 5 TYPO3\CMS\Core\Resource\Folder::getFiles() 4 TYPO3\CMS\Filelist\FileList::getTable("fileext,tstamp,size,rw,_REF_") 3 TYPO3\CMS\Filelist\FileList::generateList() 2 TYPO3\CMS\Filelist\Controller\FileListController::main() 1 require("[...]/typo3-master/typo3-src/typo3/sysext/filelist/mod1/index.php")
$ ls -l -rw------- 1 root root 0 Jul 22 2013 bla.txt
Updated by Sebastian Fischer over 10 years ago
I'm getting php warnings:
PHP Warning
PHP Warning: finfo::file(/home/www/dev/dev62/htdocs/fileadmin/test.txt): failed to open stream: Permission denied in /home/www/sources/typo3_src/TYPO3_6-2/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php line 614
PHP Warning
PHP Warning: sha1_file(/home/www/dev/dev62/htdocs/fileadmin/test.txt): failed to open stream: Permission denied in /home/www/sources/typo3_src/TYPO3_6-2/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php line 636
PHP Warning
PHP Warning: finfo::file(/home/www/dev/dev62/htdocs/fileadmin/test.txt): failed to open stream: Permission denied in /home/www/sources/typo3_src/TYPO3_6-2/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php line 614
but no fatal error so the list is still usable.
Updated by Alexander Opitz over 6 years ago
Getting now only a warning (git-master) but IMHO this warning is to much.
On the other side, you shouldn't have such files inside your fileadmin.
Updated by Gerrit Code Review over 4 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63807
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63781
Updated by Susanne Moog over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 56b22573a6b27b399330f5e93e6fe31da809fd69.