SUPPORT-8706: fixes

This commit is contained in:
adel.ka 2025-02-03 14:37:17 +03:00
parent b5591f1198
commit 5e74d97549

View file

@ -61,7 +61,7 @@ public class ExtractController {
String ervuId = userIdsPair.getErvuId();
String fileName = null;
ByteString file;
int size = 0 ;
int size = 0;
try {
if (ervuId != null) {
@ -95,6 +95,7 @@ public class ExtractController {
file = extractRegistry.getFile();
}
size = file.size();
String encodedFilename = URLEncoder.encode(fileName, StandardCharsets.UTF_8);
InputStreamResource resource = new InputStreamResource(file.newInput());
auditService.processDownloadEvent(servletRequest, size, fileName, formatRegistry,