Bug #301
closeduse UID as scope, chek for conflicts
0%
Description
check that morpho generates scope + accession #'s correctly and that it recovers
gracefully when an accession # is already in use.
Related issues
Updated by Matt Jones about 23 years ago
The scope is now set as part of the profile generation process. It defaults to
the username but can be overridden when creating a profile.
TODO
1) When an accession # is already in use on Metacat, a new insert fails, but
nothing happens to recover. Probably should choose a new accession number and
try the insert again until it succeeds. Note that if a package is located both
locally and on metacat, then if you delete the metacat copy, then you try to
upload the local copy to metacat again, the action fails because the id number
is already in use (in the xml_revisions table). Need some sort of "undelete"
function in metacat.
Updated by Matt Jones about 23 years ago
Reassigned to berkley. Note my previosu comments on what needs to be done with
respect to gracefully recovering from unique id errors.
Updated by Chad Berkley about 23 years ago
added a method to re-id an entire package. If the upload of a package fails due to a duplicate id, each file in the package is given a new id and all of the ids in the documents themselves are updated. The files are then saved with the new id. I also added warning panes to the delete menues so that the user will be told of the consequences of deleting a package and asked if they still want to proceed.