Issue Bug Closed

#100121Warning in TreeFormLineStreamBuilder when including TS from non existing folder

Tymoteusz Motylewski 03/08/23, 12:03 updated 07/09/24, 12:46

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.

Reviews 3

History 46

  1. Tymoteusz Motylewski changed description 03/08/23, 12:04

  2. Gerrit Code Review pushed patch set 1 for main to change 78079 status New Under Review 03/09/23, 08:17

  3. Christian Kuhn commented 03/14/23, 15:12

    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.

  4. Gerrit Code Review pushed patch set 1 for main to change 78125 03/14/23, 16:03

  5. Christian Kuhn commented and changed status Under Review Resolved done 0 % 100 % 03/14/23, 16:20

    Applied in changeset commit:e48ba9640f62671d0fd1600eab6cb82134cdb6c8.

  6. Benni Mack changed status Resolved Closed 07/09/24, 12:46