Merge pull request #4627 from eclipse/jetty-10.0.x-4577-InetAccessHandler_getPathInfo

Issue #4577 - request getPathInfo() could be null in InetAccessHandler
This commit is contained in:
Lachlan 2020-03-10 16:02:08 +11:00 committed by GitHub
commit d938fca513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -245,7 +245,8 @@ public class InetAccessHandler extends HandlerWrapper
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