PR #12208 - changes from review
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
This commit is contained in:
parent
96a0468436
commit
4164ab782b
|
@ -62,7 +62,6 @@ import jakarta.servlet.descriptor.JspPropertyGroupDescriptor;
|
||||||
import jakarta.servlet.descriptor.TaglibDescriptor;
|
import jakarta.servlet.descriptor.TaglibDescriptor;
|
||||||
import jakarta.servlet.http.HttpServlet;
|
import jakarta.servlet.http.HttpServlet;
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
|
||||||
import jakarta.servlet.http.HttpSessionActivationListener;
|
import jakarta.servlet.http.HttpSessionActivationListener;
|
||||||
import jakarta.servlet.http.HttpSessionAttributeListener;
|
import jakarta.servlet.http.HttpSessionAttributeListener;
|
||||||
import jakarta.servlet.http.HttpSessionBindingListener;
|
import jakarta.servlet.http.HttpSessionBindingListener;
|
||||||
|
@ -1191,13 +1190,9 @@ public class ServletContextHandler extends ContextHandler
|
||||||
protected boolean handleByContextHandler(String pathInContext, ContextRequest request, Response response, Callback callback)
|
protected boolean handleByContextHandler(String pathInContext, ContextRequest request, Response response, Callback callback)
|
||||||
{
|
{
|
||||||
boolean initialDispatch = request instanceof ServletContextRequest;
|
boolean initialDispatch = request instanceof ServletContextRequest;
|
||||||
if (initialDispatch && isProtectedTarget(pathInContext))
|
if (!initialDispatch)
|
||||||
{
|
return false;
|
||||||
Response.writeError(request, response, callback, HttpServletResponse.SC_NOT_FOUND, null);
|
return super.handleByContextHandler(pathInContext, request, response, callback);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue