After the TYPO3 security update 11.5.35 and using a newer version of extractor (specifically branch bugfix/77-infinite-aperture, but problem is reproducible with master as well).
Reproduce
Use latest TYPO3 (11.5 branch)
Use latest extractor (master branch),
configure extractor to extract with pdfinfo and exiftool
configure fileadmin with automatic metadata extraction
Create a file mount which is not on a top level (e.g. fileadmin/test/images)
Create a user and give this user access to the file mount
Switch to the user and upload a file in the file list
Error message is displayed (but file is successfully uploaded)
possible reason
in exception message, we see that "You are not allowed to access the given folder: "test",. We are not uploading to test (fileadmin/test/images), we are uploading to fileadmin/test/images/more_images
so the problem is, that the parent folder is accessed and the user does not have permissions to this
You are not allowed to access the given folder: "test"- InsufficientFolderAccessPermissionsException: You are not allowed to access the given folder: "test",
Fri, 16 Feb 2024 10:33:30 +0000 [CRITICAL] request="cfaa2069ef6d7" component="TYPO3.CMS.Core.Error.DebugExceptionHandler": Core: Exception handler (WEB: BE):
TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException, code #1375955684,
file /var/www/t3coredev11/typo3/sysext/core/Classes/Resource/ResourceStorage.php, line 879:
You are not allowed to access the given folder: "test"- InsufficientFolderAccessPermissionsException: You are not allowed to access the given folder: "test",
in file /var/www/t3coredev11/typo3/sysext/core/Classes/Resource/ResourceStorage.php:879 - {"mode":"WEB","application_mode":"BE","exception_class":"TYPO3\\CMS\\Core\\Resource\\Exception\\InsufficientFolderAccessPermissionsException","exception_code":1375955684,"file":"/var/www/t3coredev11/typo3/sysext/core/Classes/Resource/ResourceStorage.php","line":879,"message":"You are not allowed to access the given folder: \"test\"","request_url":"http://t3coredev11/typo3/ajax/file/process?token=--AnonymizedToken--","exception":"TYPO3\\CMS\\Core\\Resource\\Exception\\InsufficientFolderAccessPermissionsException: You are not allowed to access the given folder: \"test\" in /var/www/t3coredev11/typo3/sysext/core/Classes/Resource/ResourceStorage.php:879
Stack trace:
#0 /var/www/t3coredev11/typo3/sysext/core/Classes/Resource/ResourceStorage.php(2600): TYPO3\\CMS\\Core\\Resource\\ResourceStorage->assureFolderReadPermission()
#1 /var/www/t3coredev11/typo3/sysext/core/Classes/Resource/Folder.php(556): TYPO3\\CMS\\Core\\Resource\\ResourceStorage->getFolder()
#2 /var/www/t3coredev11/typo3conf/ext/extractor/Classes/Service/Extraction/AbstractExtractionService.php(161): TYPO3\\CMS\\Core\\Resource\\Folder->getParentFolder()
#3 /var/www/t3coredev11/typo3/sysext/core/Classes/Resource/Service/ExtractorService.php(46): Causal\\Extractor\\Service\\Extraction\\AbstractExtractionService->canProcess()
#4 /var/www/t3coredev11/typo3/sysext/core/Classes/Resource/Index/Indexer.php(114): TYPO3\\CMS\\Core\\Resource\\Service\\ExtractorService->extractMetaData()
#5 /var/www/t3coredev11/typo3/sysext/core/Classes/Resource/ResourceStorage.php(2158): TYPO3\\CMS\\Core\\Resource\\Index\\Indexer->updateIndexEntry()
#6 /var/www/t3coredev11/typo3/sysext/core/Classes/Resource/ResourceStorage.php(2190): TYPO3\\CMS\\Core\\Resource\\ResourceStorage->replaceFile()
#7 /var/www/t3coredev11/typo3/sysext/core/Classes/Resource/Folder.php(325): TYPO3\\CMS\\Core\\Resource\\ResourceStorage->addUploadedFile()
After the TYPO3 security update 11.5.35 and using a newer version of extractor (specifically branch bugfix/77-infinite-aperture, but problem is reproducible with master as well).
Reproduce
fileadmin/test/images
)Error message is displayed (but file is successfully uploaded)
possible reason
AbstractExtractionService.php, Line 155:
$parentFolder = $file->getParentFolder();
This is relatively new, see
error log / Exception
You are not allowed to access the given folder: "test"- InsufficientFolderAccessPermissionsException: You are not allowed to access the given folder: "test",