kitodo / kitodo-presentation

Kitodo.Presentation is a feature-rich framework for building a METS- or IIIF-based digital library. It is part of the Kitodo Digital Library Suite.
https://kitodo.org
GNU General Public License v3.0
38 stars 45 forks source link

Indexing a document generates SQL errors #342

Closed jmechnich closed 5 years ago

jmechnich commented 5 years ago

Steps to reproduce

Expected behaviour

The document is added to Solr and the Kitodo.Presentation database. It should also show up in the list module for the data folder created before.

Actual behaviour

The indexer call returns without error but the document is not added to Kitodo.Production. The system log shows the following errors:

SQL error: 'Incorrect integer value: '' for column 'owner' at row 1' (tx_dlf_documents:NEW5cd19ec80fa95) (msg#1.1.12) SQL error: 'Incorrect integer value: '' for column 'oai_base' at row 1' (tx_dlf_libraries:NEW5cd19ec811ef2) (msg#1.1.12)

Installing the devlog extension does not present any additional information.

System configuration

ghost commented 5 years ago

please try disabling mysql strict mode

jmechnich commented 5 years ago

This seems to do the trick. Thanks a lot!

sebastian-meyer commented 5 years ago

I will provide a fix which hopefully allows using MySQL in strict mode.

sebastian-meyer commented 5 years ago

@BFallert Could you please verify if #345 fixes this issue?

BFallert commented 5 years ago

I tested it again, but it failed with the same error message.

sebastian-meyer commented 5 years ago

Just to be sure: Did you clear the configuration cache before testing it again? Since the (supposed) fix only affects the TCA configuration, it's not enough to just clear the page cache.

sebastian-meyer commented 5 years ago

Pinging @BFallert: Did you clear the configuration cache before testing? I can't reproduce the issue after #345

BFallert commented 5 years ago

Had not emptied the cache. After I emptied it now it works

sebastian-meyer commented 5 years ago

Thanks for confirming!