tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 44517] New: web-app_2_4. xsd not up-to-date in TC6 servlet-api.jar
Date Sun, 02 Mar 2008 01:05:17 GMT

           Summary: web-app_2_4.xsd not up-to-date in TC6 servlet-api.jar
           Product: Tomcat 6
           Version: 6.0.14
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API

Maybe 18 months or more ago the web-app_2_4.xsd published by Sun was updated to
correct the regex used to validate MIME types.  

When a validating XML parser is used and the old regex is used then errors
result for trying to validate "text/xhtml+xml" due to the plus "+" character
not being allowed by the old regex.


I would also motion that the Sun copyright notice should be retained in the
file (and question if the Apache Foundation notice should appear at all, since
claiming copyright on someone elses body of work doesn't seem legal ??? IANAL).
 There is also an original Sun version number shown near the top of the
original XSD and would like to see this echo'ed in the Tomcat shipped version
to help manage future updates to XSDs.

In short the fix I am requesting is the following change:

--- javax/servlet/resources/web-app_2_4.xsd     2008-03-02 00:49:56.000000000
+++ ../web-app_2_4.xsd  2007-12-18 09:05:06.000000000 +0000
@@ -805,7 +798,7 @@

       <xsd:restriction base="j2ee:string">
-       <xsd:pattern value="[\p{L}\-\p{Nd}]+/[\p{L}\-\p{Nd}\.]+"/>
+       <xsd:pattern value="[^\p{Cc}^\s]+/[^\p{Cc}^\s]+"/>

I have checked Tomcat 5.5.x and that has already been updated (I believe I was
involved in raising a bugzilla entry for it at the time, 18 months or so ago).

I have checked Tomcat 6.0.x with regards to web-app_2_5.xsd and I can see that
the one shipped with 6.0.14 is based on Sun's original XSD version 1.62 but now
1.68 is out.  Maybe while you are at it the XSD for 2.5 could be brought

-            @(#)web-app_2_5.xsds1.62 05/08/06
+      @(#)web-app_2_5.xsds     1.68 07/03/09

The originals are available here:

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message