Bug #61334
closedmetadata extractor works not with files in a storage outside the DocumentRoot
0%
Description
files located inside a storage outside of the DocumentRoot can not be processed by a metadata extractor.
Inside \TYPO3\CMS\Core\Service\AbstractService::checkInputFile()
the method \TYPO3\CMS\Core\Utility\GeneralUtility::isAllowedAbsPath($absFile)
is called, which always returns false if the given path is outside of PATH_site
.
This makes it impossible to extract metadata from files in a storage outside the DocumentRoot.
I think the call of isAllowedAbsPath
is not correct and can be removed.
Updated by Gerrit Code Review about 10 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 http://review.typo3.org/32567
Updated by Wouter Wolters about 10 years ago
- Status changed from Under Review to Closed
Updated by Frank Nägler about 10 years ago
The solution for me was to set $GLOBALS['TYPO3_CONF_VARS']['BE']['lockRootPath']
to the path outside the DocumentRoot.
e.g.
/var/www/htdocs /var/www/documents
set $GLOBALS['TYPO3_CONF_VARS']['BE']['lockRootPath'] = '/var/www/'
(trailing slash is important)
The second problem was to set the path to the storage as absolute path (/var/www/documents/
) because a relative path like ../documents
are also invalid.