Forward or Redirect response sent to client before filter and request execution completes on EAP 7

Solution Unverified - Updated -

Issue

  • We see a behavior change moving from EAP 6 to EAP 7. We call a filter and servlet and the servlet forwards the request or calls response.sendRedirect. With EAP 6, the resulting was response was sent to the client after the filter and any other request execution completed. But with EAP 7, the client sees the resulting forward/redirect response immediately, before the filter or all other request execution completes. This causes an issue because our filter does important operations in a finally block after the chain.doFilter call, which the subsequent requests depend on.

Environment

  • JBoss Enterprise Application Platform (EAP) 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In