Bug #13381

Elasticsearch error adding [metsData] to AIP document

Added by David Juhasz 26 days ago. Updated 26 days ago.

Status:NewStart date:07/08/2020
Priority:MediumDue date:
Assignee:José Raddaoui Marín% Done:

0%

Category:Search / Browse
Target version:Release 2.6.2
Google Code Legacy ID: Tested version:2.6
Sponsored:No Requires documentation:

Description

To eliminate a PHP Notice for issue #13348, I added the missing "object_id" column to this digital object SQL query (which is later used to load related PREMIS data). After adding the object_id column, I'm getting the following Elasticsearch error:

 
Error in one or more bulk request actions:

  index: /atom_dev/QubitAip/2041840 caused mapping set to strict, dynamic introduction of [metsData]
  within [digitalObjects] is not allowed

The PREMIS object data appears to have been introduced with commit 03baa78 but I'm not clear what the expected ES mapping should be.

To reproduce

  1. Check out https://github.com/artefactual/atom/tree/dev/issue-13381-es-error-premis-object
  2. Upload a DIP to AtoM. I uploaded a hierarchical DIP, but I think any DIP should trigger the error

Related issues

Related to Access to Memory (AtoM) - Task #10250: Write METS metadata to database Verified 08/31/2016
Related to Access to Memory (AtoM) - Bug #13348: Fix PHP Warnings and Notices In progress 06/09/2020

History

#1 Updated by David Juhasz 26 days ago

  • Related to Task #10250: Write METS metadata to database added

#2 Updated by David Juhasz 26 days ago

  • Related to Bug #13348: Fix PHP Warnings and Notices added

#3 Updated by David Juhasz 26 days ago

I've created a dev branch with the original bug fix that then caused the ES warning:
https://github.com/artefactual/atom/tree/dev/issue-13381-es-error-premis-object

#4 Updated by David Juhasz 26 days ago

  • Description updated (diff)

#5 Updated by David Juhasz 26 days ago

  • Description updated (diff)

#6 Updated by David Juhasz 26 days ago

  • Description updated (diff)

#7 Updated by David Juhasz 26 days ago

  • Description updated (diff)

Also available in: Atom PDF