Issue 11047

registry-sync: BioCASE metadata update deletes all resources

11047
Reporter: kbraak
Assignee: fmendez
Type: Bug
Summary: registry-sync: BioCASE metadata update deletes all resources
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-04-30 16:43:16.563
Updated: 2013-12-16 17:50:18.489
Resolved: 2012-05-29 16:26:46.446
TimeEstimate: 0
TimeSpent: 14400
        
Description: I performed a metadata update for the Botanic Garden and Museum Berlin's (uuid = 57254bd0-8256-11d8-b7ed-b8a03c50a862) technical installation (uuid = 56ee7bc6-894d-11e1-a453-a4093f22ed41)

The update was unsuccessful, created duplicate resources, then deleted all resources. Please see the attached screenshot.

Then endpoint basically never fails. Just a quick look at the logs, reveals the templates aren't always being populated correctly. For example,


16:34:06.456 o.g.registry.sync.util.TemplateUtils Template has been successfully loaded from: org/gbif/harvest/biocase/biocase_1_3/template/search.vm
16:34:06.458 o.g.registry.sync.util.TemplateUtils Template and parameters merge to: 

0.98 Apr 30, 2012 4:34:06 PM 130.226.238.148 http://ww3.bgbm.org/biocase/pywrapper.cgi?dsa=CorvidsLiteratureDatabase search
http://www.tdwg.org/schemas/abcd/2.06 http://www.tdwg.org/schemas/abcd/2.06 NO_TITLE true
We should never populate a Dataset title with a placeholder like this]]>

Attachment Screen Shot 2012-04-30 at 4.40.25 PM.png


Attachment Screen Shot 2012-05-25 at 5.12.58 PM.png



Author: fmendez@gbif.org
Comment: There was a bug in the metadata synchronization for endpoints that doesn't support search by title
Created: 2012-05-08 12:30:38.482
Updated: 2012-05-08 12:30:38.482


Author: kbraak@gbif.org
Created: 2012-05-25 17:14:55.977
Updated: 2012-05-25 17:14:55.977
        
Noticed this problem, this time for a BioCASE technical installation that has multiple datasets behind a single URL

http://staging.gbif.org:8080/registry-ws/technical_installation/5025c52a-990a-11e1-aa26-344ee9a6839c

I will attach a screenshot of the logs following the last synchronization.
    


Author: kbraak@gbif.org
Comment: screenshot showing how resources are being deleted again
Created: 2012-05-25 17:15:21.948
Updated: 2012-05-25 17:15:21.948


Author: fmendez@gbif.org
Comment: Reset sync_keys before each test
Created: 2012-05-29 16:26:46.479
Updated: 2012-05-29 16:26:46.479