Project

General

Profile

Actions

Bug #100121

closed

Warning in TreeFormLineStreamBuilder when including TS from non existing folder

Added by Tymoteusz Motylewski over 1 year ago. Updated 5 months ago.

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

100%

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

Description

Go to pageproperties, insert TSconfig with wrong path (correct extension, but typo in the folder name).

@import 'EXT:sitepackage/Configuration/TSConfig/Mod/NonExistingFolder/*.tsconfig'

go to "PageTSConfig" module -> "Included PageTsConfig"
An error will be thrown:

Core: Error handler (BE): PHP Warning: scandir(/var/www/html/typo3conf/ext/sitepackage/Configuration/TSConfig/Mod/NonExistingFolder/): Failed to open directory: No such file or directory in /var/www/html/typo3/sysext/core/Classes/TypoScript/IncludeTree/TreeFromLineStreamBuilder.php line 315

Expected behaviour:
Warning is not thrown.
Nice to have -> some notice is shown in PageTSConfig module, or logged into TYPO3 log.

Most probably the same problem affects TypoScript.

Actions #1

Updated by Tymoteusz Motylewski over 1 year ago

  • Description updated (diff)
Actions #2

Updated by Gerrit Code Review over 1 year 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/+/78079

Actions #3

Updated by Christian Kuhn over 1 year ago

Tymoteusz Motylewski wrote:

Nice to have -> some notice is shown in PageTSConfig module, or logged into TYPO3 log.

Scanning for imports not resolving to anything is a task of a 'scan for invalid things' visitor: i started with something in a very early WIP with https://review.typo3.org/c/Packages/TYPO3.CMS/+/77364 ... hope to finish a basic feature soon.

Actions #4

Updated by Gerrit Code Review over 1 year ago

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/+/78125

Actions #5

Updated by Christian Kuhn over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF