From e025b5071e86f54159f96188e20dfc4167550b1a Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Tue, 7 Jul 2026 09:01:08 +0200 Subject: [PATCH 1/2] [BUGFIX] Sanitize settings in `CollectionController` for repository usage --- Classes/Controller/CollectionController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Classes/Controller/CollectionController.php b/Classes/Controller/CollectionController.php index bbce009c3..c0b3f9cee 100644 --- a/Classes/Controller/CollectionController.php +++ b/Classes/Controller/CollectionController.php @@ -83,6 +83,8 @@ public function listAction(): ResponseInterface return $this->htmlResponse(); } + $this->sanitizeSettings(); + $this->collectionRepository->useStoragePid($this->settings['storagePid']); $this->metadataRepository->useStoragePid($this->settings['storagePid']); From 78e8406954671eedabd29bc40bd2d40139f9b5b2 Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Tue, 7 Jul 2026 14:33:37 +0200 Subject: [PATCH 2/2] [BUGFIX] Ensure storage PID is an integer in SolrSearch The `documentRepository->useStoragePid()` method expects an integer. Explicitly casting the value from settings prevents potential type-related issues and ensures correct repository behavior. --- Classes/Common/Solr/SolrSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Common/Solr/SolrSearch.php b/Classes/Common/Solr/SolrSearch.php index 648b28f72..9fb8f08c3 100644 --- a/Classes/Common/Solr/SolrSearch.php +++ b/Classes/Common/Solr/SolrSearch.php @@ -124,7 +124,7 @@ public function __construct( $this->indexedMetadata = $indexedMetadata; $this->logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(static::class); - $this->documentRepository->useStoragePid($this->settings['storagePid']); + $this->documentRepository->useStoragePid((int) $this->settings['storagePid']); } /**