-
Bug
-
Resolution: Done
-
Minor
-
4.0.0.Beta5
-
None
org.jboss.resteasy.test.core.basic.ContextTest.testForward
fails when running with security.manager.
@Path("/") public class ContextService { @GET @Path("/forward") public void forward(@Context HttpRequest request) { request.forward("/WEB-INF/index.html"); }
The call, "request.forward" fails.
When running with the debugger the "request.forward" succeeds.
The call "request.forward" eventually calls undertow
io.undertow.servlet.spec.RequestDispatcherImpl.forward
public void forward(final ServletRequest request, final ServletResponse response) throws ServletException, IOException { if (System.getSecurityManager() != null) { try { AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() { public Object run() throws Exception { RequestDispatcherImpl.this.forwardImplSetup(request, response); return null; } }); ....