You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/03/24 15:39:15 UTC

DO NOT REPLY [Bug 46903] New: STRICT_SERVLET_COMPLIANCE="false" doesn't turn off all checks

https://issues.apache.org/bugzilla/show_bug.cgi?id=46903

           Summary: STRICT_SERVLET_COMPLIANCE="false" doesn't turn off all
                    checks
           Product: Tomcat 5
           Version: 5.5.27
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: zhihong@gmail.com


When we switched from 5.5.25 to 5.5.27, we found 2 issues resulted from
stricter compliance check,

1. Cookie values can't contain special chars like "=", "&".
2. JSP can't have nested quotes, like 
       title="<fmt:message key="regpage.hdr.homepage"/>"

We tried to disable the compliance checks by setting the
STRICT_SERVLET_COMPLIANCE="false" but these 2 checks are still enforced.

This switch should disable these checks so the backward compatibility is
achieved.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 46903] STRICT_SERVLET_COMPLIANCE="false" doesn't turn off all checks

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46903


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




--- Comment #1 from Mark Thomas <ma...@apache.org>  2009-04-09 04:27:21 PST ---
There are two separate issues here.

For cookies, we have to prevent invalid characters to prevent security issues
(see CVE-2007-3385 & CVE-2007-5333). It took a couple of iterations to get an
implementation that was a) secure and b) backwards compatible. Bug 46597 is
tracking the back-porting of the remaining changes to 5.5.x and will hopefully
be included in 5.5.28 onwards. Once this has been applied, the default
behaviour will be to switch invalid v0 cookies to v1 and to quote where
necessary.

The jsp quoting rules may be relaxed by setting
org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING="false"

STRICT_SERVLET_COMPLIANCE is not intended to be a catch-all for all of the
settings for servlet, jsp and el spec compatibility. The expected behaviour
(for 5.5.27) is documented at
http://tomcat.apache.org/tomcat-5.5-doc/confiG/systemprops.html which will be
updated as required with each new 5.5.x release.

The cookie element is a duplicate and the quoting element a won't fix so I am
marking this as won't fix.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org