Project

General

Profile

Actions

Bug #101590

closed

Composer package vendors for TYPO3 extensions ending with "ext" don't get symlinked into public/_assets

Added by Georg Ringer over 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
composer
Target version:
-
Start date:
2023-08-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

this has been reported at stackoverflow at https://stackoverflow.com/questions/76829256/composer-package-vendors-for-typo3-extensions-ending-with-ext-dont-get-symlin

When the composer package vendor of a TYPO3 extension ends with "ext", the "Resources/Public" directory of the extension does not get symlinked into public/_assets.

Example: typo3_ext/my_extension

This is because of this line:

vendor/typo3/cms-core/Classes/Composer/PackageArtifactBuilder.php:264

if (str_contains($path, 'ext/' . $extensionKey) || !file_exists($fileSystemResourcesPath)) {
    continue;
}

When it is changed to this, it works for me:

if (str_contains($path, '/ext/' . $extensionKey) || !file_exists($fileSystemResourcesPath)) {
    continue;
}

Since $path contains the full path, I guess that change should be OK?

TYPO3 12.4.4

Actions

Also available in: Atom PDF