Project

General

Profile

Actions

Bug #81944

closed

Invalid asset prefix when installed in a subdirectory

Added by Xavier Perseguers almost 7 years ago. Updated over 6 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 #1

Updated by Xavier Perseguers almost 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
Actions #2

Updated by Xavier Perseguers almost 7 years ago

  • Description updated (diff)
  • Due date deleted (2017-06-07)
  • Start date changed from 2017-06-07 to 2017-07-24
Actions #3

Updated by Susanne Moog over 6 years ago

  • Category set to Extbase
Actions #4

Updated by Helmut Hummel over 6 years ago

  • Category changed from Extbase to File Abstraction Layer (FAL)
  • Status changed from New to Closed
Actions

Also available in: Atom PDF