Tomcat parameter after slash is truncated and fail to federation work

Document ID : KB000099970
Last Modified Date : 04/06/2018
Show Technical Document Details
In Tomcat 6, STRICT_SERVLET_COMPLIANCE should be set "true" in system properties file as below knowledge.

In Tomcat environment, SMSESSION cookie is not decode by WebAgent   

But, when using Tomcat 8 as Federation Web Service, federation work is failed because of the parameter after slash (/) is truncated by setting STRICT_SERVLET_COMPLIANCE=true.
On the other hand, when STRICT_SERVLET_COMPLIANCE=false, federation can work successfully, and it does NOT truncate after slash value.
In Tomcat 8 environment, STRICT_SERVLET_COMPLIANCE should be set 'true' ?

12.52 WebAgent OptionPack (with Tomcat 8)
As response cookie value in Fiddler trace, Cookie Version=1 and Path attribute is double-quoted (Path="/").
As Tomcat 8 document, if STRICT_SERVLET_COMPLIANCE=true, the default value of FWD_SLASH_IS_SEPARATOR is also true. By this reason, slash (/) is treated as delimiter and truncated after slash (/).
By this raeson, FWD_SLASH_IS_SEPARATOR should be 'false' in system property and overwrite default value.

Apache Tomcat 8 Configuration Reference

If this is true Tomcat will treat the forward slash character ('/') as an HTTP separator when processing cookie headers. If org.apache.catalina.STRICT_SERVLET_COMPLIANCE is set to true, the default of this setting will be true, else the default value will be false. This default may be overridden by setting the org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR system property.