Actions
Bug #98111
closedOpen Basedir restriction in effect! GeneralUtility.php line 2309
Start date:
2022-08-10
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hi,
try to update from 11.5.13 to 11.5.14 but i get an open basedir error:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Warning:
file_exists(): open_basedir restriction in effect. File(/typo3temp/assets/js/c01c8eb1024cdb1dffde568b4b33e7bd.js)
is not within the allowed path(s): (/home/users/epxnmc02/www:/home/users/epxnmc02/files:/home/users/epxnmc02/tmp)
in /home/users/epxnmc02/www/html/t3/typo3_files/typo3_src-11.5.14/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 2309
| TYPO3\CMS\Core\Error\Exception thrown in file
/home/users/epxnmc02/www/html/t3/typo3_files/typo3_src-11.5.14/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 137.
So i take al look at the GeneralUtility Classes:
Method: createVersionNumberedFilename
with a debug on $path i can see the paths are different:
Extbase Variable Dump
'typo3conf/ext/myext/Resources/Public/Css/main.css' (55 chars)
'typo3conf/ext/myext/Resources/Public/Js/Vendors/Bootstrap/bootstrap.js' (76 chars)
'typo3conf/ext/myext/Resources/Public/Js/main.js' (53 chars)
'/typo3temp/assets/js/c01c8eb1024cdb1dffde568b4b33e7bd.js' (56 chars)
'typo3/sysext/core/Resources/Public/JavaScript/JavaScriptHandler.js' (66 chars)
The typo3temp path is absolute?
There is another function inside the method createVersionNumberedFilename:
if (!PathUtility::isAbsolutePath($path)) {...}
Ok make a debug on the return value also:
Extbase Variable Dump
debug(!PathUtility::isAbsolutePath($path));
'typo3conf/ext/epx_academy/Resources/Public/Css/main.css' (55 chars)
FALSE
'typo3conf/ext/epx_academy/Resources/Public/Js/Vendors/Bootstrap/bootstrap.js' (76 chars)
FALSE
'typo3conf/ext/epx_academy/Resources/Public/Js/main.js' (53 chars)
FALSE
'/typo3temp/assets/js/c01c8eb1024cdb1dffde568b4b33e7bd.js' (56 chars)
FALSE
'typo3/sysext/core/Resources/Public/JavaScript/JavaScriptHandler.js' (66 chars)
FALSE
My expection was that the return value of the typo3temp path must be different?
Can somebody confirm this behaviour?
Actions