DS-828, When restore mode is enabled and a handle is not supplied it should be able to mint a new handle instead of failing.

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6461 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Scott Phillips
2011-07-12 16:32:47 +00:00
parent ba6ba9c5d2
commit 992cf27921

View File

@@ -1358,6 +1358,8 @@ public abstract class AbstractMETSIngester extends AbstractPackageIngester
* override this method if your METS manifest specifies the handle in
* another location.
*
* If no handle was found then null is returned.
*
* @param manifest
* METS manifest
* @returns handle as a string (or null, if not found)
@@ -1374,11 +1376,6 @@ public abstract class AbstractMETSIngester extends AbstractPackageIngester
// decode this URI (by removing the 'hdl:' prefix)
String handle = decodeHandleURN(handleURI);
if (handle == null || handle.length() == 0)
{
throw new PackageValidationException(
"The DSpace Object handle required to ingest this package could not be resolved in manifest. The <mets OBJID='hdl:xxxx'> is missing.");
}
return handle;
}