Skip to content

[BUGFIX] Sanitize settings in CollectionController and SolrSearch for repository usage#2044

Merged
sebastian-meyer merged 3 commits into
kitodo:mainfrom
beatrycze-volk:fix-storagepid
Jul 13, 2026
Merged

[BUGFIX] Sanitize settings in CollectionController and SolrSearch for repository usage#2044
sebastian-meyer merged 3 commits into
kitodo:mainfrom
beatrycze-volk:fix-storagepid

Conversation

@beatrycze-volk

Copy link
Copy Markdown
Collaborator

Fix for error:

Kitodo\Dlf\Domain\Repository\AbstractRepository::useStoragePid(): Argument #1 ($storagePid) must be of type int, string given, called in /var/www/webroot/releases/53/vendor/kitodo/presentation/Classes/Controller/CollectionController.php on line 86

@beatrycze-volk beatrycze-volk self-assigned this Jul 7, 2026
@beatrycze-volk beatrycze-volk added ☇ bug A non-security related bug. php Pull requests that update PHP code. labels Jul 7, 2026
The `documentRepository->useStoragePid()` method expects an integer. Explicitly casting the value from settings prevents potential type-related issues and ensures correct repository behavior.
@beatrycze-volk beatrycze-volk changed the title [BUGFIX] Sanitize settings in CollectionController for repository usage [BUGFIX] Sanitize settings in CollectionController and SolrSearch for repository usage Jul 7, 2026
@sebastian-meyer
sebastian-meyer merged commit 98658f0 into kitodo:main Jul 13, 2026
10 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

☇ bug A non-security related bug. php Pull requests that update PHP code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants