eprintsug / EPrintsArchivematica

Digital Preservation through EPrints-Archivematica Integration - An EPrints export plugin to Archivematica
6 stars 1 forks source link

Archivematica UUID #22

Closed photomedia closed 3 years ago

photomedia commented 3 years ago

I discovered an issue with how the UUID is stored in the plugin, the Archivematica UUID is not an integer, here is an example of an Archivematica UUID:

4b7c5381-7151-4e55-8c8e-1387eff84618

It contains alphanumeric characters, including dashes, and it is not an integer.

Meanwhile, here is what we have in the code:

https://github.com/eprintsug/EPrintsArchivematica/blob/fa5d46e30beb74c8779043f03f4136b0440331b1/lib/plugins/EPrints/DataObj/Archivematica.pm

          { name => "uuid", type => "int", sql_index => 1 },
photomedia commented 3 years ago

The callback feature is fixed with this commit: https://github.com/eprintsug/EPrintsArchivematica/commit/a45796fa0aa1c9778de37079ea27352561f7284d datatype for uuid is changed to "text" and code to process callback is updated.