Revert #22079. The initial behaviour was correct after all.
Signed-off-by: Arjan Tijms <arjan.tijms@gmail.com>
diff --git a/appserver/web/web-core/src/main/java/org/apache/catalina/core/ApplicationDispatcher.java b/appserver/web/web-core/src/main/java/org/apache/catalina/core/ApplicationDispatcher.java
index 2ab36a7..cff441a 100644
--- a/appserver/web/web-core/src/main/java/org/apache/catalina/core/ApplicationDispatcher.java
+++ b/appserver/web/web-core/src/main/java/org/apache/catalina/core/ApplicationDispatcher.java
@@ -1036,12 +1036,6 @@
}
//END OF github/javaee/glassfish/issues/21846
- //START OF github/javaee/glassfish/issues/22079
- if (DispatcherType.ASYNC.equals(state.dispatcherType)) {
- this.mappingForDispatch = hcurrent.getHttpServletMapping();
- }
- //END OF github/javaee/glassfish/issues/22079
-
wrapper = new ApplicationHttpRequest
(hcurrent, context, crossContext, mappingForDispatch, state.dispatcherType);
} else {