Skip to content

Commit

Permalink
ALS-6511: Attempt to fix encoding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Aug 14, 2024
1 parent 1be9246 commit 02f166d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 02f166d

Please sign in to comment.