glassfish icon indicating copy to clipboard operation
glassfish copied to clipboard

HttpServletMapping returned after AsyncContext.dispatch() has incorrect values

Open glassfishrobot opened this issue 8 years ago • 3 comments

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.

glassfishrobot avatar Jul 19 '17 14:07 glassfishrobot

  • 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

glassfishrobot avatar Sep 17 '18 19:09 glassfishrobot

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.

arjantijms avatar Apr 07 '22 21:04 arjantijms