Bug #106173
closedBUGFIX b1e36ce3dae (TYPO3 12.4.27) breaks entry point selection at Filemount
100%
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
Updated by Garvin Hicking about 1 month ago
- Related to Bug #106038: Avoid exception in file element browser added
Updated by Garvin Hicking about 1 month ago
- Related to Bug #105152: 503 when editor has no access to the default storage #2 added
Updated by Garvin Hicking about 1 month ago
- Related to Bug #103897: Reproducable 503 when editor has no access to the default storage added
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
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
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
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
Updated by Garvin Hicking about 1 month ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d445cbfc43cacbdb62d16e0defd7348cbe4ba1b6.
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
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
Updated by Garvin Hicking about 1 month ago
- Status changed from Under Review to Resolved
Applied in changeset c9b53f08f35d6be34e8dd4223563cbd25e42ac6e.
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
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
Updated by Garvin Hicking about 1 month ago
- Has duplicate Bug #106198: Creating File Mounts in module "Backend Users" is not possible added
Updated by Chris Müller 26 days ago
- Has duplicate Bug #106269: Filemount: error on edit or create added
Updated by Markus Klein 13 days ago
- Related to Bug #106365: Folder browser exception: icon can't be loaded for null added
Updated by Garvin Hicking 7 days ago
- Has duplicate Bug #106379: Error in Directory sharing record added