Project

General

Profile

Actions

Bug #98111

closed

Open Basedir restriction in effect! GeneralUtility.php line 2309

Added by Michael Kasten over 1 year ago. Updated over 1 year ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
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?


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #98106: fix for 97939 creates open_basedir restriction for "relative" absolute urlsClosed2022-08-09

Actions
Actions #1

Updated by Uwe Jakobs over 1 year ago

  • PHP Version changed from 8.0 to 7.4
I can confirm the behaviour as described on the following Environemnt:
  • TYPO3 11.5.13 to 11.5.14, Classic Installation
  • PHP 7.4.30
  • OS: Unix (Ubuntu 18.04.5 LTS)
  • Plesk Obsidian Version 18.0.45 Update #2
  • Apache 2.4.29
Actions #2

Updated by Michael Kasten over 1 year ago

  • PHP Version changed from 7.4 to 8.0

Guess the PHP Version was changed by the last comment to 7.4 :)

switch back to php 8.0 but the problem exists at php 8.0 and php 7.4 also

Actions #3

Updated by Michael Kasten over 1 year ago

seems like a duplicate of #98106

Actions #4

Updated by Georg Ringer over 1 year ago

  • Related to Bug #98106: fix for 97939 creates open_basedir restriction for "relative" absolute urls added
Actions #5

Updated by Georg Ringer over 1 year ago

  • Status changed from New to Rejected

duplicate of #98106

Actions

Also available in: Atom PDF