When migrating an object, if the object already exists in the OCFL repo, throw an exception instead of migrating content on top of what's already there.
How should this be tested?
There are a couple automated tests, but to test manually, run the migration over the same content twice - it should fail the second time because the first object was already migrated.
Check for existing object before migrating
JIRA Ticket: (https://jira.lyrasis.org/browse/FCREPO-3643)
What does this Pull Request do?
When migrating an object, if the object already exists in the OCFL repo, throw an exception instead of migrating content on top of what's already there.
How should this be tested?
There are a couple automated tests, but to test manually, run the migration over the same content twice - it should fail the second time because the first object was already migrated.
Additional Notes:
Documentation will need to be checked/updated.
Interested parties
@fcrepo/committers