DS-4078: Bitstreams should keep their formats when being versioned.

This commit is contained in:
Tim Donohue
2018-11-15 16:28:14 +00:00
parent 5eeb40e530
commit f3245e7c88

View File

@@ -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.