From a5973784b7caaadcb54cfb625a41c4b236a8d67b Mon Sep 17 00:00:00 2001 From: arybakov Date: Tue, 28 Nov 2023 13:46:31 -0700 Subject: [PATCH] More debugging added --- .../educ/api/gradbusiness/service/GradBusinessService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradbusiness/service/GradBusinessService.java b/api/src/main/java/ca/bc/gov/educ/api/gradbusiness/service/GradBusinessService.java index f985fba..3e71b16 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradbusiness/service/GradBusinessService.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradbusiness/service/GradBusinessService.java @@ -42,7 +42,7 @@ public class GradBusinessService { private static final String APPLICATION_JSON = "application/json"; private static final String APPLICATION_PDF = "application/pdf"; private static final String ACCEPT = "*/*"; - private static final String TMP = File.pathSeparator + "tmp"; + private static final String TMP = File.separator + "tmp"; /** * The Web client. */ @@ -364,7 +364,7 @@ private ResponseEntity handleBinaryResponse(byte[] resultBinary, String private void saveBinaryResponseToFile(byte[] resultBinary, String reportFile) throws IOException { if(resultBinary.length > 0) { - String pathToFile = TMP + File.pathSeparator + reportFile; + String pathToFile = TMP + File.separator + reportFile; logger.debug("Save generated PDF {} on the file system", reportFile); File fileToSave = new File(pathToFile); if(fileToSave.exists()) {