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 2002/10/17 19:11:39 UTC

DO NOT REPLY [Bug 13679] - White Space in path kill SYSTEM tag

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13679>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

White Space in path kill SYSTEM tag

sandygao@ca.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|DTD                         |Antidote
            Product|Xerces2-J                   |Ant
            Version|2.2.0                       |1.6Alpha (nightly)



------- Additional Comments From sandygao@ca.ibm.com  2002-10-17 17:11 -------
It's more an Ant's bug than Xerces'. Transferring it to Ant.

When Ant calls the parser to parse build.xml, it stores a FileInputStream in 
the InputSource. It also sets a system ID for absolutizing relative URI's 
appearing in build.xml. But in the parse() method of the class 
org.apache.tools.ant.helper.ProjectHelperImpl, the file path is not fully 
converted to a URI. The result is, if the folder has a space ' ' in it, an 
invalid URI is passed to the parser, and the parser can't use it to abosolutize 
the references to project.dtd or paths.xml.

Xerces recently fixed a similar bug in the JAXP code. You can refer to the 
class javax.xml.parsers.ConvertToURI for further detail.

An alternative is to look at the getUserDir() method of class 
org.apache.xerces.xni.parser.XMLInputSource.XMLEntityManager.

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