Skip to content

[BUGFIX] Validate page number before accessing physical structure - #2185

Merged
sebastian-meyer merged 2 commits into
kitodo:mainfrom
beatrycze-volk:toolbox
Oct 5, 2026
Merged

sebastian-meyer merged 2 commits into
kitodo:mainfrom
beatrycze-volk:toolbox

Conversation

@beatrycze-volk

Copy link
Copy Markdown
Collaborator

Add a check to prevent array access errors when a requested page number does not exist in the document's physical structure. Also enhances warning messages with document location for improved debugging.

Bugfix for:
Core: Error handler (FE): PHP Warning: Undefined array key 511 in /var/www/webroot/releases/27/vendor/kitodo/presentation/Classes/Controller/ToolboxController.php line 384

Add a check to prevent array access errors when a requested page number does not exist in the document's physical structure. Also enhances warning messages with document location for improved debugging.
@beatrycze-volk beatrycze-volk self-assigned this Oct 1, 2026
@beatrycze-volk beatrycze-volk added the ☇ bug A non-security related bug. label Oct 1, 2026
@sebastian-meyer
sebastian-meyer merged commit 46138a1 into kitodo:main Oct 5, 2026
@beatrycze-volk
beatrycze-volk deleted the toolbox branch October 5, 2026 11:11
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants