Actions
Bug #81944
closedInvalid asset prefix when installed in a subdirectory
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);
Updated by Xavier Perseguers over 7 years ago
- Due date set to 2017-06-07
- Start date changed from 2017-07-24 to 2017-06-07
- Follows Bug #81486: eID=dumpFile does not take config.absRefPrefix into account added
Updated by Xavier Perseguers over 7 years ago
- Description updated (diff)
- Due date deleted (
2017-06-07) - Start date changed from 2017-06-07 to 2017-07-24
Updated by Helmut Hummel almost 7 years ago
- Category changed from Extbase to File Abstraction Layer (FAL)
- Status changed from New to Closed
Fixed with https://review.typo3.org/#/c/53789/
Actions