diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/metadata/service/FileManagerService.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/metadata/service/FileManagerService.java index a299dfba51..f49eaa78f1 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/metadata/service/FileManagerService.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/metadata/service/FileManagerService.java @@ -98,7 +98,7 @@ public class FileManagerService { public List downloadFileBatch(List requestList) { List list = new ArrayList<>(); if (CollectionUtils.isNotEmpty(requestList)) { - Map> requestByStorage = requestList.stream().collect(Collectors.groupingBy(FileRequest::getStorage)); + Map> requestByStorage = requestList.stream().filter((e) -> StringUtils.isNotBlank(e.getStorage()) && !StringUtils.equalsIgnoreCase(e.getStorage(), StorageConstants.LOCAL.name())).collect(Collectors.groupingBy(FileRequest::getStorage)); for (Map.Entry> requestByStorageEntry : requestByStorage.entrySet()) { try { list.addAll(FileCenter.getRepository(requestByStorageEntry.getKey()).getFileBatch(requestByStorageEntry.getValue()));