Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Exception when showing metadata of a document #1343

Closed
thomaslow opened this issue Sep 24, 2024 · 1 comment · Fixed by #1344
Closed

[BUG] Exception when showing metadata of a document #1343

thomaslow opened this issue Sep 24, 2024 · 1 comment · Fixed by #1344
Assignees
Labels
🐛 bug A non-security related bug.

Comments

@thomaslow
Copy link
Contributor

thomaslow commented Sep 24, 2024

Description

Argument 1 passed to Kitodo\Dlf\Common\MetsDocument::getLogicalStructure() must be of the type string, array given, called in /var/www/html/kitodo-presentation/Classes/Controller/MetadataController.php on line 313

Probably related to #1339 and #1317.

Reproduction

Steps to reproduce the behaviour:

  1. Select a document
  2. Open page with metadata widget
  3. Get Exception

Expected Behavior

Metadata is shown without exception.

Environment

  • OS version: Linux Docker (docker.io/php7.4-apache)
  • RDBMS version: docker.io/library/mariadb:10.11
  • Apache Solr version: 9.6
  • TYPO3 version: 11.5.39
  • PHP version: 7.4
@sebastian-meyer
Copy link
Member

This is related to #1308.

We urgently need to fix metadata handling (it should be arrays everywhere, because every field can be multi-valued) and make sure, that all semi-fixes like #1317, #1339 and #1344 are reverted.

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 a pull request may close this issue.

3 participants