Skip to content

Commit

Permalink
Merge pull request #3170 from mapfish/error-get-stream
Browse files Browse the repository at this point in the history
[Security] Raise exception on IOException on StreamRepositoryService
  • Loading branch information
sbrunner authored Jan 26, 2024
2 parents e472ed6 + 59b902b commit d6eaf78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions BREAKING-CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## Version 3.31

- `HumanAlphaSerie` is moved from package `org.mapfish.print` to `org.mapfish.print.jasperreports`.
- Rather than returning `null` when we fail to get a Resource from the JasperReport, we now throw
the exception (wrapped in a `RuntimeException`).

## Version 3.30

Expand Down
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 d6eaf78

Please sign in to comment.