Project

General

Profile

Actions

Bug #61334

closed

metadata extractor works not with files in a storage outside the DocumentRoot

Added by Frank Nägler about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-09-03
Due date:
% Done:

0%

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

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.

Actions #1

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

Actions #2

Updated by Wouter Wolters about 10 years ago

  • Status changed from Under Review to Closed
Actions #3

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.

Actions

Also available in: Atom PDF