Project

General

Profile

Actions

Bug #81944

closed

Invalid asset prefix when installed in a subdirectory

Added by Xavier Perseguers over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2017-07-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Since #81486 we have a regression in typo3/sysext/extbase/Classes/Service/ImageService.php for method getImageUrl()

That is broken, when TYPO3 is inside a sub directory and absRefPrefix is configured to be that sub directory.

localhost/master/
absRefPrefix = /master/

then the resulting URI will be /master/master/index.php.

In addition, Helmut suggests that we should wrap this in GeneralUtility::locationHeaderUrl() to make sure the final URI contains a scheme and host name. Only then we can be sure that all other code (including TS image URI code) will treat this as final UR within /typo3/sysext/core/Classes/Resource/ResourceStorage.php, 1237, that is the line:

$publicUrl = PathUtility::getAbsoluteWebPath('index.php') . '?' . http_build_query($queryParameterArray, '', '&', PHP_QUERY_RFC3986);

Related issues 1 (0 open1 closed)

Follows TYPO3 Core - Bug #81486: eID=dumpFile does not take config.absRefPrefix into accountClosed2017-06-06

Actions
Actions

Also available in: Atom PDF