Skip to content

Commit

Permalink
Merge pull request #999 from boris-unckel/UNDERTOW-1815_PathResourceM…
Browse files Browse the repository at this point in the history
…anager_SecEx_Fix_2_2_x

UNDERTOW-1813 Make PathResourceManager.getResource rethrow a Security…
  • Loading branch information
fl4via authored Dec 7, 2020
2 parents c508baf + 71646b0 commit 7e470cc
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,15 @@ public Resource getResource(final String p) {
log.tracef("Failed to get path resource %s from path resource manager with base %s, as the path did not exist", p, base);
return null;
}
} catch (Exception e) {
} catch (IOException e) {
UndertowLogger.REQUEST_LOGGER.debugf(e, "Invalid path %s", p);
return null;
} catch (SecurityException e) {
UndertowLogger.REQUEST_LOGGER.errorf(e, "Missing JSM permissions for path %s", p);
throw e;
} catch (Exception e) {
UndertowLogger.REQUEST_LOGGER.debugf(e, "Other issue for path %s", p);
return null;
}
}

Expand Down

0 comments on commit 7e470cc

Please sign in to comment.