mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-16 06:23:10 +00:00
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@3332 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -141,7 +141,7 @@ public final class BitstreamInfo
|
|||||||
* @param procStartDate
|
* @param procStartDate
|
||||||
* When the last bitstream check started.
|
* When the last bitstream check started.
|
||||||
*/
|
*/
|
||||||
public BitstreamInfo(boolean del, int storeNo, int sz, String bitstrmFmt,
|
public BitstreamInfo(boolean del, int storeNo, long sz, String bitstrmFmt,
|
||||||
int bitstrmId, String usrFmtDesc, String intrnlId, String src,
|
int bitstrmId, String usrFmtDesc, String intrnlId, String src,
|
||||||
String chksumAlgorthm, String chksum, String nm, Date procEndDate,
|
String chksumAlgorthm, String chksum, String nm, Date procEndDate,
|
||||||
boolean toBeProc, Date procStartDate)
|
boolean toBeProc, Date procStartDate)
|
||||||
@@ -204,7 +204,7 @@ public final class BitstreamInfo
|
|||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public int getSize()
|
public long getSize()
|
||||||
{
|
{
|
||||||
return dspaceBitstream.getSize();
|
return dspaceBitstream.getSize();
|
||||||
}
|
}
|
||||||
|
@@ -274,7 +274,7 @@ public final class BitstreamInfoDAO extends DAOSupport
|
|||||||
if (rs.next())
|
if (rs.next())
|
||||||
{
|
{
|
||||||
info = new BitstreamInfo(rs.getBoolean("deleted"), rs
|
info = new BitstreamInfo(rs.getBoolean("deleted"), rs
|
||||||
.getInt("store_number"), rs.getInt("size_bytes"), rs
|
.getInt("store_number"), rs.getLong("size_bytes"), rs
|
||||||
.getString("short_description"), rs
|
.getString("short_description"), rs
|
||||||
.getInt("bitstream_id"), rs
|
.getInt("bitstream_id"), rs
|
||||||
.getString("user_format_description"), rs
|
.getString("user_format_description"), rs
|
||||||
@@ -546,7 +546,7 @@ public final class BitstreamInfoDAO extends DAOSupport
|
|||||||
/**
|
/**
|
||||||
* Get the bitstream ids for a given collection
|
* Get the bitstream ids for a given collection
|
||||||
*
|
*
|
||||||
* @param itemId
|
* @param collectionId The id of the collection
|
||||||
* @return the list of bitstream ids for this item
|
* @return the list of bitstream ids for this item
|
||||||
*/
|
*/
|
||||||
public List getCollectionBitstreams(int collectionId)
|
public List getCollectionBitstreams(int collectionId)
|
||||||
@@ -589,7 +589,7 @@ public final class BitstreamInfoDAO extends DAOSupport
|
|||||||
/**
|
/**
|
||||||
* Get the bitstream ids for a given community
|
* Get the bitstream ids for a given community
|
||||||
*
|
*
|
||||||
* @param itemId
|
* @param communityId the community id
|
||||||
* @return the list of bitstream ids for this item
|
* @return the list of bitstream ids for this item
|
||||||
*/
|
*/
|
||||||
public List getCommunityBitstreams(int communityId)
|
public List getCommunityBitstreams(int communityId)
|
||||||
|
@@ -54,7 +54,7 @@ public final class DSpaceBitstreamInfo
|
|||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
/** Stored size of the bitstream. */
|
/** Stored size of the bitstream. */
|
||||||
private int size;
|
private long size;
|
||||||
|
|
||||||
/** the check sum value stored in the database. */
|
/** the check sum value stored in the database. */
|
||||||
private String storedChecksum;
|
private String storedChecksum;
|
||||||
@@ -134,7 +134,7 @@ public final class DSpaceBitstreamInfo
|
|||||||
* @param desc
|
* @param desc
|
||||||
* Bitstream description
|
* Bitstream description
|
||||||
*/
|
*/
|
||||||
public DSpaceBitstreamInfo(boolean del, int storeNo, int sz,
|
public DSpaceBitstreamInfo(boolean del, int storeNo, long sz,
|
||||||
String bitstrmFmt, int bitstrmId, String usrFmtDesc,
|
String bitstrmFmt, int bitstrmId, String usrFmtDesc,
|
||||||
String intrnlId, String src, String chksumAlgorthm, String chksum,
|
String intrnlId, String src, String chksumAlgorthm, String chksum,
|
||||||
String nm, String desc)
|
String nm, String desc)
|
||||||
@@ -199,7 +199,7 @@ public final class DSpaceBitstreamInfo
|
|||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public int getSize()
|
public long getSize()
|
||||||
{
|
{
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
@@ -210,7 +210,7 @@ public final class DSpaceBitstreamInfo
|
|||||||
* @param size
|
* @param size
|
||||||
* the bitstream size
|
* the bitstream size
|
||||||
*/
|
*/
|
||||||
public void setSize(int size)
|
public void setSize(long size)
|
||||||
{
|
{
|
||||||
this.size = size;
|
this.size = size;
|
||||||
}
|
}
|
||||||
|
@@ -15,6 +15,8 @@
|
|||||||
- [2041754] Feature Request #1896717 Registration notification missing information about instance
|
- [2041754] Feature Request #1896717 Registration notification missing information about instance
|
||||||
- Patch for SF bugs 1775059 and 2352146 2 Authentications with LoginPage cause connection exhaust
|
- Patch for SF bugs 1775059 and 2352146 2 Authentications with LoginPage cause connection exhaust
|
||||||
|
|
||||||
|
(Elliot Metsger)
|
||||||
|
- Patch for SF bug #2016130 checksum checker can not retrieve very large bitstream
|
||||||
|
|
||||||
1.5.1 final
|
1.5.1 final
|
||||||
===========
|
===========
|
||||||
|
Reference in New Issue
Block a user