HTTP Client does not Send the Expected Cookie as HttpServletResponse.addCookie() does not Trim the Extra Path Prepended by WLS Plugin (Doc ID 2222521.1)

Last updated on APRIL 24, 2017

Applies to:

Oracle WebLogic Server - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Symptoms

HttpServletResponse.addCookie() does not trim the extra path that is prepended by WLS plugin. Therefore, next time, HTTP client does not send the expected cookie within HTTP request header.

With following scenario, [path=/<prepended-path>/webapp2] within HTTP response header (WLS Server -> WLS Plugin) that needs to be trimmed as [path=/webapp2]. WLS needs to return the trimmed cookie path within its HTTP response header with PathPrepend (WL-PATH-PREPEND) taken into consideration.

 

HTTP Client sends a HTTP request to WLS Server through WLS Plugin, then receives a HTTP response likewise as follows:

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms