Skip to content

Commit

Permalink
Issue #4577 - request getPathInfo() could be null in InetAccessHandler
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <[email protected]>
  • Loading branch information
lachlan-roberts committed Mar 2, 2020
1 parent af18fb3 commit 2897377
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ public void handle(String target, Request baseRequest, HttpServletRequest reques
protected boolean isAllowed(InetAddress addr, Request baseRequest, HttpServletRequest request)
{
String connectorName = baseRequest.getHttpChannel().getConnector().getName();
return _set.test(new AccessTuple(connectorName, addr, baseRequest.getPathInfo()));
String path = baseRequest.getMetaData().getURI().getDecodedPath();
return _set.test(new AccessTuple(connectorName, addr, path));
}

@Override
Expand Down

0 comments on commit 2897377

Please sign in to comment.