Project

General

Profile

Actions

Bug #101911

open

TYPO3 composer mode does not properly respect installations in a subdirectory

Added by Garvin Hicking 8 months ago. Updated 3 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
composer
Target version:
Start date:
2023-09-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.2
Tags:
Complexity:
medium
Is Regression:
Yes
Sprint Focus:

Description

This is a grouping ticket.

Several bugs can occur because TYPO3v12 introduced asset-collecting and at some places does not properly reference the directory, where those assets are retrieved, when in composer-mode.

This can lead to doubling parts of the actual path.

Example:

Composer project path: /var/www/html/typo3_v12/
TYPO3 public root: /var/www/html/typo3_v12/public/
DocumentRoot: /var/www/html
TYPO3 Backend URI: https://example.com/typo3_v12/public/typo3/index.php

When assets are retrieved, the workflows may use combinations Environment::getPublicPath and Environment::getAbsoluteWebPath to i.e. first resolve a EXT:bootstrap_packages/Resources/Public/Css/bootstrap5-rte.min.css file, and then later AGAIN prepend paths.

This would resolve the above to:

/var/www/html/typo3_v12/public/
->
/var/www/html/typo3_v12/public/typo3_v12/public/_assets/9b80d86a98af3ecc38aabe297d2c3695/Css/bootstrap5-rte.min.css

I am trying to set-up an installation to easily reproduce this.

External references:

Related issues 5 (5 open0 closed)

Related to TYPO3 Core - Bug #100661: Wrong resource links to symlinked _assets unsing base with appending path segmentNew2023-04-19

Actions
Related to TYPO3 Core - Bug #100660: Wrong resources links when using env variable path_rootNew2023-04-19

Actions
Related to TYPO3 Core - Task #96887: Allow only Resources/Public in PathUtility->getPublicResourceWebPathUnder Review2022-02-14

Actions
Related to TYPO3 Core - Bug #101701: PathUtility::getAbsoluteWebPath() create wrong asset path in composer with TYPO3 12New2023-08-16

Actions
Related to TYPO3 Core - Bug #103157: Image referenced by `EXT:` does not work in TYPO3 subfolder installationUnder Review2024-02-20

Actions
Actions #1

Updated by Garvin Hicking 8 months ago

  • Related to Bug #100661: Wrong resource links to symlinked _assets unsing base with appending path segment added
Actions #2

Updated by Garvin Hicking 8 months ago

  • Related to Bug #100660: Wrong resources links when using env variable path_root added
Actions #3

Updated by Gerrit Code Review 8 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81014

Actions #4

Updated by Gerrit Code Review 8 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81014

Actions #5

Updated by Gerrit Code Review 8 months ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81014

Actions #6

Updated by Garvin Hicking 8 months ago

  • Related to Task #96887: Allow only Resources/Public in PathUtility->getPublicResourceWebPath added
Actions #7

Updated by Garvin Hicking 8 months ago

  • Related to Bug #101701: PathUtility::getAbsoluteWebPath() create wrong asset path in composer with TYPO3 12 added
Actions #8

Updated by Garvin Hicking 8 months ago

While not completely related, the following issues also stem from problematic file path resolving:

https://forge.typo3.org/issues/98545
https://forge.typo3.org/issues/100021
https://forge.typo3.org/issues/101350
https://forge.typo3.org/issues/101921

Actions #9

Updated by Benni Mack 3 months ago

  • Target version changed from 13.0 to 13.1
Actions #10

Updated by Garvin Hicking about 2 months ago

  • Related to Bug #103157: Image referenced by `EXT:` does not work in TYPO3 subfolder installation added
Actions #11

Updated by Benni Mack 3 days ago

  • Target version changed from 13.1 to 13.2
Actions

Also available in: Atom PDF