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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28739

<!ENTITY directives not processed properly in Windows.

           Summary: <!ENTITY directives not processed properly in Windows.
           Product: Commons
           Version: 1.0 Alpha
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Digester
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Try including an xml fragment using the <!ENTITY directive .  On Windows you'll
get a very uninformative exception.

The reason is:
org.apache.commons.digester.Digester.parse(File) incorrectly constructs file://
URLs.  On Windows, the file located at c:\foo.txt should be referred to as
file:///c:/foo.txt NOT file://c:/foo.txt
The best way to fix this is to change the line
input.setSystemId("file://" + file.getAbsolutePath());
to
input.setSystemId(file.toURL().toString());

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to