Issue Bug Closed

#106368Exception in filelist module with "List" view

Julian Mair 03/13/25, 13:17 updated 12/02/25, 14:22

Description

First, make sure that you:

  • are in Debug Mode (Settings > Configuration Presets > Debug = “Debug”, Reason: Warnings should be thrown as exceptions)
  • have a storage with filemount inside your site_package (e.g. to the Resources folder)
  • you are a non-admin with that filemount granted

Procedure

Go, as a non-admin, to the FileList, select “List” view (with “Tiles” the exception doesn’t occur) and then select a folder with images in it, here it was “site_package/Resources/Public/Icons” with the “Extension.svg” in it .
In all my Typo3 v13 Webs, the exception from the screenshot occur.

I xdebug’d this and in what I understand, deep in \TYPO3\CMS\Core\Resource\Driver\LocalDriver::getAbsolutePath the variable $this->absoluteBasePath has the wrong base path aka the wrong file storage. I have no idea why…

protected function getAbsolutePath(string $fileIdentifier): string
{
   $relativeFilePath = ltrim($this->canonicalizeAndCheckFileIdentifier($fileIdentifier), '/');
   return $this->absoluteBasePath . $relativeFilePath;
}

Reviews 2