Skip to content
Snippets Groups Projects

OZG-6223 OZG-7401 Timeout for async requests

Closed Krzysztof Witukiewicz requested to merge OZG-6223-zip-download-bug into main
2 files
+ 46
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -43,6 +43,7 @@ import de.ozgcloud.alfa.common.file.OzgFile;
import de.ozgcloud.alfa.common.file.OzgFileService;
import de.ozgcloud.alfa.common.zipdownload.ZipDownloadService;
import de.ozgcloud.alfa.vorgang.VorgangController;
import de.ozgcloud.common.errorhandling.TechnicalException;
import lombok.RequiredArgsConstructor;
@RestController
@@ -85,7 +86,7 @@ public class AttachmentByVorgangController {
try {
return Files.size(file.toPath());
} catch (IOException e) {
throw new RuntimeException(e);
throw new TechnicalException("Error getting file size", e);
}
}
}
Loading