Project

General

Profile

Actions

Bug #57457

closed

Epic #83669: Improve file list / file browser

Not readable file makes Filelist unuseable with error "failed to open stream: Permission denied"

Added by Alexander Opitz over 10 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2014-03-31
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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
Actions #1

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.

Actions #2

Updated by Alexander Opitz about 9 years ago

  • Assignee set to Alexander Opitz
Actions #3

Updated by Riccardo De Contardi almost 7 years ago

  • Parent task set to #83669
Actions #4

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.

Actions #5

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

Actions #6

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

Actions #7

Updated by Susanne Moog over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF