Hi Scott,

Could you log a new JIRA ticket for this fix?  Seems like it shouldn't 
be tacked onto DS-828 as that ticket was fixed/resolved in 1.7.1.

https://jira.duraspace.org/browse/DS-828

Obviously, this most recent fix won't make it in until DSpace 1.8.0. 
So, it likely needs its own issue, so we don't end up confused on which 
version of DSpace this fix happened in.

- Tim

On 7/12/2011 11:32 AM, [email protected] wrote:
> Author: scottphillips
> Date: Tue Jul 12 16:32:47 2011
> New Revision: 6461
>
> Log:
> 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.
>
> Modified:
>     
> dspace/trunk/dspace-api/src/main/java/org/dspace/content/packager/AbstractMETSIngester.java
>
> Modified: 
> dspace/trunk/dspace-api/src/main/java/org/dspace/content/packager/AbstractMETSIngester.java
> ==============================================================================
> --- 
> dspace/trunk/dspace-api/src/main/java/org/dspace/content/packager/AbstractMETSIngester.java
>        (original)
> +++ 
> dspace/trunk/dspace-api/src/main/java/org/dspace/content/packager/AbstractMETSIngester.java
>        Tue Jul 12 16:32:47 2011
> @@ -1358,6 +1358,8 @@
>        * 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 @@
>           // 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;
>       }
>
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> DSpace-changelog mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-changelog

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to