Information
The vCenter Lookup service must enable "STRICT_SERVLET_COMPLIANCE".
GROUP ID: V-259051RULE ID: SV-259051r961863
Strict Servlet Compliance forces Tomcat to adhere to standards specifications including but not limited to RFC2109. RFC2109 sets the standard for HTTP session management. This setting affects several other settings that primarily pertain to cookie headers, cookie values, and sessions. Cookies will be parsed for strict adherence to specifications.
Note that changing a number of these default settings may break some systems, as some browsers are unable to correctly handle the cookie headers that result from a strict adherence to the specifications.
This one setting changes the default values for the following settings:
org.apache.catalina.core.ApplicationContext.GET_RESOURCE_REQUIRE_SLASHorg.apache.catalina.core.ApplicationDispatcher.WRAP_SAME_OBJECTorg.apache.catalina.core.StandardHostValve.ACCESS_SESSIONorg.apache.catalina.session.StandardSession.ACTIVITY_CHECKorg.apache.catalina.session.StandardSession.LAST_ACCESS_AT_STARTorg.apache.tomcat.util.http.ServerCookie.ALWAYS_ADD_EXPIRESorg.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATORorg.apache.tomcat.util.http.ServerCookie.PRESERVE_COOKIE_HEADERorg.apache.tomcat.util.http.ServerCookie.STRICT_NAMINGThe "resourceOnlyServlets" attribute of any Context element.The "tldValidation" attribute of any Context element.The "useRelativeRedirects" attribute of any Context element.The "xmlNamespaceAware" attribute of any Context element.The "xmlValidation" attribute of any Context element.
Solution
Navigate to and open:
/usr/lib/vmware-lookupsvc/conf/catalina.properties
Add or change the following line:
org.apache.catalina.STRICT_SERVLET_COMPLIANCE=true
Restart the service with the following command:
vmon-cli --restart lookupsvc