Actions
Bug #105713
openSite sets setup.typoscript not loaded on Windows 10
Status:
New
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2024-11-27
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
13
PHP Version:
8.2
Tags:
Windows, SiteSets
Complexity:
easy
Is Regression:
Sprint Focus:
Description
Currently on Windows 10 operating system, the new Site Sets setup.typoscript is not loaded with TYPO3 13.4.1 Version.
class: TYPO3\CMS\Core\TypoScript\IncludeTree\SysTemplateTreeBuilder
method: handleSetInclude
private function handleSetInclude(IncludeInterface $parentNode, string $path, string $label): void
{
echo $path; // 'D:/vhosts/xxx/test-t13.local/vendor/typo3/cms-fluid-styled-content/Configuration/Sets\FluidStyledContent/'
$path = GeneralUtility::getFileAbsFileName($path);
echo $path; // ''
Quick Hotfix:
private function handleSetInclude(IncludeInterface $parentNode, string $path, string $label): void
{
echo $path; // 'D:/vhosts/xxx/test-t13.local/vendor/typo3/cms-fluid-styled-content/Configuration/Sets\FluidStyledContent/'
// Hotfix with fixWindowsFilePath
$path = GeneralUtility::fixWindowsFilePath($path);
echo $path; // 'D:/vhosts/xxx/test-t13.local/vendor/typo3/cms-fluid-styled-content/Configuration/Sets/FluidStyledContent/'
$path = GeneralUtility::getFileAbsFileName($path);
echo $path; // 'D:/vhosts/xxx/test-t13.local/vendor/typo3/cms-fluid-styled-content/Configuration/Sets/FluidStyledContent/'
Updated by Markus Klein 10 days ago
Wanna push your change to the review system?
Updated by Garvin Hicking 10 days ago
IMO we should check where that windows backslash is inserted and try to work with forward slashes instead. Probably some DIR_SEPARATOR is in there, or some normalization is missing...
(Don't have a windows system to test this myself)
Actions