Patch for SF bug #2016130 checksum checker can not retrieve very large bitstream

git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@3339 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Stuart Lewis
2008-12-18 20:04:31 +00:00
parent 4e59dd511c
commit 90071e2528
2 changed files with 14 additions and 0 deletions

View File

@@ -39,6 +39,7 @@
package org.dspace.sword;
import java.sql.SQLException;
import java.util.MissingResourceException;
import org.apache.log4j.Logger;
@@ -46,6 +47,7 @@ import org.dspace.content.Collection;
import org.dspace.core.ConfigurationManager;
import org.dspace.core.Constants;
import org.dspace.core.Context;
import org.dspace.core.I18nUtil;
import org.dspace.eperson.EPerson;
import org.dspace.eperson.Group;
@@ -252,6 +254,17 @@ public class SWORDService
{
scol.setTitle(title);
}
else
{
try
{
scol.setTitle(I18nUtil.getMessage("org.dspace.content.Collection.untitled"));
}
catch (MissingResourceException e)
{
scol.setTitle("Untitled");
}
}
// add the collection policy if it exists
if (collectionPolicy != null && !"".equals(collectionPolicy))

View File

@@ -19,6 +19,7 @@
- Fix for SF Bug #2343849 DSQuery invalid check for empty query string
- Fix for SF Bug #1725817 Error in authorization to submit when you add collection.
Avoids that groups can be added to themselves.
- Fix for SF Bug #1968082 SWORD Service Document fails if Collection is untitled
(Elliot Metsger)
- Patch for SF bug #2016130 checksum checker can not retrieve very large bitstream