glassfish
                                
                                
                                
                                    glassfish copied to clipboard
                            
                            
                            
                        HttpServletMapping returned after AsyncContext.dispatch() has incorrect values
HttpServletRequest.getHttpServletMapping() states:
If the currently active Servlet invocation was obtained by a call to AsyncContext.dispatch(), the returned HttpServletMapping is the one corresponding to the path that caused the first Servlet in the invocation sequence to be invoked.
The current implementation violates this proviso. It currently returns the mapping corresponding to the last Servlet in the invocation sequence.
- Issue Imported From: https://github.com/javaee/glassfish/issues/22079
 - Original Issue Raised By:@edburns
 - Original Issue Assigned To: @edburns
 - Original Issue Closed By:@yaminikb
 
Turns out the initial values and behaviour were right after all, but the javadoc and therefor the TCK assertion was wrong. This was rectified in https://github.com/jakartaee/servlet/issues/377 and therefor this issue needs to be reverted for GF 7.