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

           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
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.

<mime-mapping>
        <extension>xhtml</extension>
        <mime-type>application/xhtml+xml</mime-type>
</mime-mapping>


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
+0000
+++ ../web-app_2_4.xsd  2007-12-18 09:05:06.000000000 +0000
@@ -805,7 +798,7 @@

     <xsd:simpleContent>
       <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]+"/>
       </xsd:restriction>
     </xsd:simpleContent>
   </xsd:complexType>




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
up-to-date:

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



The originals are available here:

http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd

http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd


-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to