From 02f166d0298aec150639f62fadcfce787dab8c46 Mon Sep 17 00:00:00 2001 From: Ryan Amari Date: Wed, 14 Aug 2024 09:26:47 -0400 Subject: [PATCH] ALS-6511: Attempt to fix encoding issue --- .../hms/dbmi/avillach/hpds/processing/ResultStoreStream.java | 2 +- .../harvard/hms/dbmi/avillach/hpds/service/PicSureService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/ResultStoreStream.java b/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/ResultStoreStream.java index d0ffc2f7..af8eb65b 100644 --- a/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/ResultStoreStream.java +++ b/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/ResultStoreStream.java @@ -84,7 +84,7 @@ public void close() { public void open() { try { - in = new BufferedInputStream(new FileInputStream(writer.getFile().getAbsolutePath()), 1024 * 1024 * 8); + in = new FileInputStream(writer.getFile().getAbsolutePath()); streamIsClosed = false; } catch (FileNotFoundException e) { throw new RuntimeException("temp file for result not found : " + writer.getFile().getAbsolutePath()); diff --git a/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/PicSureService.java b/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/PicSureService.java index ae4cca7c..b88c97f7 100644 --- a/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/PicSureService.java +++ b/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/PicSureService.java @@ -209,7 +209,7 @@ private QueryStatus convertToQueryStatus(AsyncResult entity) { return status; } - @PostMapping(value = "/query/{resourceQueryId}/result", produces = MediaType.TEXT_PLAIN_VALUE) + @PostMapping(value = "/query/{resourceQueryId}/result") public ResponseEntity queryResult(@PathVariable("resourceQueryId") UUID queryId, @RequestBody QueryRequest resultRequest) throws IOException { AsyncResult result = queryService.getResultFor(queryId.toString()); if (result == null) {