Skip to content

Commit

Permalink
[Security] Raise exception on IOException on StreamRepositoryService
Browse files Browse the repository at this point in the history
The old code can be a security issue because the JasperReport will try
to get the recourse by other way when we return null.
  • Loading branch information
sbrunner committed Jan 25, 2024
1 parent e472ed6 commit 44b4d4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public InputStream getInputStream(final String uriString) {
this.httpRequestFactory.createRequest(uri, HttpMethod.GET).execute();
return new ResponseClosingStream(response);
} catch (IOException e) {
return null;
throw new RuntimeException(String.format("Error on getting resource %s", uriString), e);
}
}

Expand Down

0 comments on commit 44b4d4c

Please sign in to comment.