Project

General

Profile

Actions

Bug #106173

closed

BUGFIX b1e36ce3dae (TYPO3 12.4.27) breaks entry point selection at Filemount

Added by Dirk Hoffmann about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2025-02-13
Due date:
% Done:

100%

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

Description

After updating from TYPO3 12.4.26 to TYPO3 12.4.27 we got a TypeError

TYPO3\CMS\Core\Imaging\IconFactory::getIconForResource(): Argument #1 ($resource) must be of type TYPO3\CMS\Core\Resource\ResourceInterface, null given, called in /Application/vendor/typo3/cms-core/Classes/ViewHelpers/IconForResourceViewHelper.php on line 72

It looks like the bugfix b1e36ce3dae, which was released with TYPO3 12.4.27, breaks the selection of the entry point for the filemount entry.
See: https://github.com/typo3/typo3/commit/b1e36ce3dae

This removed code in "TYPO3\CMS\Filelist\ElementBrowser\AbstractResourceBrowser->initSelectedFolder()" causes the problem:

if (!$this->selectedFolder) {
    $allStorages = $this->getBackendUser()->getFileStorages();
    $defaultStorage = $resourceFactory->getDefaultStorage();
    if ($defaultStorage && array_key_exists($defaultStorage->getUid(), $allStorages)) {
        $this->selectedFolder = $defaultStorage->getRootLevelFolder();
    } else {
        $this->selectedFolder = reset($allStorages)->getRootLevelFolder();
    }
}

Procedure for reproducing the issue:
- In Backend: Select the root page (ID 0) in list view
- Edit a filemount e.g. the default "fileadmin"
- Click on the ‘Search for folders’ button next to the ‘Entry point’ item.


Files

b1e36ce3dae.png (81.1 KB) b1e36ce3dae.png Dirk Hoffmann, 2025-02-13 16:40

Related issues 10 (0 open10 closed)

Related to TYPO3 Core - Bug #106038: Avoid exception in file element browserResolved2025-01-30

Actions
Related to TYPO3 Core - Bug #105152: 503 when editor has no access to the default storage #2Resolved2024-09-27

Actions
Related to TYPO3 Core - Bug #103897: Reproducable 503 when editor has no access to the default storageClosed2024-05-24

Actions
Related to TYPO3 Core - Bug #102611: TYPO3\CMS\Core\Imaging\IconFactory::getIconForResource(): Argument #1 ($resource) must be of type TYPO3\CMS\Core\Resource\ResourceInterface, null given, called in /var/www/html/vendor/typo3/cms-core/Classes/ViewHelpers/IconForResourceViewHelper.php on linClosed2023-12-06

Actions
Related to TYPO3 Core - Bug #106194: Updating the entry point of a filemount causes an error (missing expand attribute in user settings)Closed2025-02-18

Actions
Related to TYPO3 Core - Bug #106365: Folder browser exception: icon can't be loaded for nullResolved2025-03-12

Actions
Has duplicate TYPO3 Core - Bug #106196: Wenn trying to create file mounts within the module "Backend Users" entry points are not availableClosed2025-02-18

Actions
Has duplicate TYPO3 Core - Bug #106198: Creating File Mounts in module "Backend Users" is not possibleClosed2025-02-18

Actions
Has duplicate TYPO3 Core - Bug #106269: Filemount: error on edit or createClosed2025-02-27

Actions
Has duplicate TYPO3 Core - Bug #106379: Error in Directory sharing recordClosed2025-03-18

Actions
Actions #1

Updated by Garvin Hicking about 1 month ago

  • Is Regression set to Yes
Actions #2

Updated by Garvin Hicking about 1 month ago

  • Related to Bug #106038: Avoid exception in file element browser added
Actions #3

Updated by Garvin Hicking about 1 month ago

  • Related to Bug #105152: 503 when editor has no access to the default storage #2 added
Actions #4

Updated by Garvin Hicking about 1 month ago

  • Related to Bug #103897: Reproducable 503 when editor has no access to the default storage added
Actions #5

Updated by Gerrit Code Review about 1 month 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/+/88209

Actions #6

Updated by Garvin Hicking about 1 month ago

  • Related to Bug #102611: TYPO3\CMS\Core\Imaging\IconFactory::getIconForResource(): Argument #1 ($resource) must be of type TYPO3\CMS\Core\Resource\ResourceInterface, null given, called in /var/www/html/vendor/typo3/cms-core/Classes/ViewHelpers/IconForResourceViewHelper.php on lin added
Actions #7

Updated by Gerrit Code Review about 1 month ago

Patch set 1 for branch 13.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88225

Actions #8

Updated by Gerrit Code Review about 1 month ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88226

Actions #9

Updated by Garvin Hicking about 1 month ago

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

Updated by Gerrit Code Review about 1 month ago

  • Status changed from Resolved to Under Review

Patch set 2 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88226

Actions #11

Updated by Gerrit Code Review about 1 month ago

Patch set 3 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88226

Actions #12

Updated by Garvin Hicking about 1 month ago

  • Status changed from Under Review to Resolved
Actions #13

Updated by Garvin Hicking about 1 month ago

  • Related to Bug #106194: Updating the entry point of a filemount causes an error (missing expand attribute in user settings) added
Actions #14

Updated by Garvin Hicking about 1 month ago

  • Has duplicate Bug #106196: Wenn trying to create file mounts within the module "Backend Users" entry points are not available added
Actions #15

Updated by Garvin Hicking about 1 month ago

  • Has duplicate Bug #106198: Creating File Mounts in module "Backend Users" is not possible added
Actions #16

Updated by Chris Müller 26 days ago

  • Has duplicate Bug #106269: Filemount: error on edit or create added
Actions #17

Updated by Markus Klein 13 days ago

  • Related to Bug #106365: Folder browser exception: icon can't be loaded for null added
Actions #18

Updated by Garvin Hicking 7 days ago

  • Has duplicate Bug #106379: Error in Directory sharing record added
Actions

Also available in: Atom PDF