Project: Tomcat
Bug 50793 Invalid DispatchType in ServletRequestListener on async dispatch
Reported: 2011-02-15 22:47:30 | Status: closed fixed

If a ServletRequestListener is defined, when is invoked after a call to AsyncContext#dispatch() the DispatcherType returned from the ServletRequest is REQUEST rather than ASYNC. When the actual servlet is invoked, the type is correctly set to ASYNC. If the listener is intended to be invoked for each dispatch, then the DispatcherType should match the value returned in the filter/servlet.

Files changed in fix:
java/org/apache/catalina/connector/CoyoteAdapter.java java/org/apache/catalina/core/StandardContext.java java/org/apache/catalina/core/StandardContextValve.java test/org/apache/catalina/core/TestAsyncContextImpl.java