mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
DS-3877 Trim bitstream name during filter-media comparison (prevent duplicate bitstream generation)
This commit is contained in:
@@ -322,7 +322,7 @@ public class MediaFilterServiceImpl implements MediaFilterService, InitializingB
|
|||||||
List<Bitstream> bitstreams = bundle.getBitstreams();
|
List<Bitstream> bitstreams = bundle.getBitstreams();
|
||||||
|
|
||||||
for (Bitstream bitstream : bitstreams) {
|
for (Bitstream bitstream : bitstreams) {
|
||||||
if (bitstream.getName().equals(newName)) {
|
if (bitstream.getName().trim().equals(newName.trim())) {
|
||||||
targetBundle = bundle;
|
targetBundle = bundle;
|
||||||
existingBitstream = bitstream;
|
existingBitstream = bitstream;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user