JBoss EAP 7 responds with an incorrect JSESSIONID Cookie when "HttpServletRequest#getRequestedSessionId()" is called in the application

Solution Unverified - Updated -

Issue

When a client sends a request with a non-existent session id to a web application calling the Servlet API HttpServletRequest#getRequestedSessionId() (or HttpServletRequest#isRequestedSessionIdValid()), JBoss EAP 7 responds with an incorrect JSESSIONID response cookie as it reuses the requested non-existent session id instead of issuing a new JSESSIONID.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content