mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 20:13:17 +00:00
DS-4078: Bitstreams should keep their formats when being versioned.
This commit is contained in:
@@ -103,6 +103,8 @@ public class BitstreamServiceImpl extends DSpaceObjectServiceImpl<Bitstream> imp
|
|||||||
clonedBitstream.setSizeBytes(bitstream.getSizeBytes());
|
clonedBitstream.setSizeBytes(bitstream.getSizeBytes());
|
||||||
clonedBitstream.setChecksum(bitstream.getChecksum());
|
clonedBitstream.setChecksum(bitstream.getChecksum());
|
||||||
clonedBitstream.setChecksumAlgorithm(bitstream.getChecksumAlgorithm());
|
clonedBitstream.setChecksumAlgorithm(bitstream.getChecksumAlgorithm());
|
||||||
|
clonedBitstream.setFormat(bitstream.getBitstreamFormat());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
//Update our bitstream but turn off the authorization system since permissions
|
//Update our bitstream but turn off the authorization system since permissions
|
||||||
//haven't been set at this point in time.
|
//haven't been set at this point in time.
|
||||||
|
Reference in New Issue
Block a user