You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/02/22 00:33:22 UTC

[Bug 669] New - Malformed URI error for certain URI schemes

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=669

*** shadow/669	Wed Feb 21 15:33:22 2001
--- shadow/669.tmp.3087	Wed Feb 21 15:33:22 2001
***************
*** 0 ****
--- 1,65 ----
+ +============================================================================+
+ | Malformed URI error for certain URI schemes                                |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 669                         Product: Xerces-J                |
+ |       Status: NEW                         Version: unspecified             |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority: Medium                    Component: Schema-Datatypes        |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-j-dev@xml.apache.org                                  |
+ |  Reported By: nddelima@ca.ibm.com                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ The Xerces-J parser throws the following error in the validating mode while 
+ parsing an XML document with URI's of the "news:" or "mailto:" schemes
+ 
+ ERROR:
+ Datatype error: Value 'news:comp.infosystems.www.servers.unix' is a Malformed 
+ URI 
+ 
+ The schema and instance documents that produce this error are as below:
+ SCHEMA:
+ <schema xmlns="http://www.w3.org/2000/10/XMLSchema"
+ 	targetNamespace="http://www.schemaTest.org/IBMD3_2_9V01"
+ 	xmlns:nspace="http://www.schemaTest.org/IBMD3_2_9V01">
+ <!-- 
+ 	Test Case Type: Schema Valid test (Datatypes section 3.2.9) 
+ 	Base Type     : uriReference
+ 	Description   : Tests the simpleType uriReference and its facets
+ -->
+ 	<simpleType name="t_uriReference">
+ 		<restriction base="uriReference">
+ 			<minLength value="20"/>
+ 		</restriction>
+ 	</simpleType>
+ 	
+ 	<element name="root">
+ 		<complexType>
+ 			<simpleContent>
+ 				<extension base="string">  
+ 					<attribute name="a_uriReference" 
+ type="nspace:t_uriReference"/>
+ 				</extension>
+ 			</simpleContent>
+ 		</complexType>
+ 	</element>
+ </schema>
+ 
+ INSTANCE:
+ <?xml version="1.0" encoding="UTF-8"?>
+ <inspace:root xmlns:inspace="http://www.schemaTest.org/IBMD3_2_9V01"
+       xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
+       xsi:schemaLocation="http://www.schemaTest.org/IBMD3_2_9V01 
+                           ibmd3_2_9v01.xsd"
+      a_uriReference="news:comp.infosystems.www.servers.unix">
+       This is a uriReference test.      
+ </inspace:root>
+ 
+ REFERENCES:
+ 1. XML Schema Part 2: Datatypes
+    W3C Candidate Recommendation 24 October 2000
+    Section 3.2.9
+ 2. RFC 2396 section 1.5 (http://www.ietf.org/rfc/rfc2396.txt)