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 ji...@apache.org on 2004/04/23 19:42:57 UTC
[jira] Closed: (XERCESJ-909) XInclude processor treats malformed bytes sequences as resource errors.
Message:
The following issue has been closed.
Resolver: Michael Glavassevich
Date: Fri, 23 Apr 2004 10:42 AM
Closed.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESJ-909
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESJ-909
Summary: XInclude processor treats malformed bytes sequences as resource errors.
Type: Bug
Status: Closed
Priority: Blocker
Resolution: FIXED
Project: Xerces2-J
Components:
XInclude 1.0
Versions:
2.6.2
Assignee: Michael Glavassevich
Reporter: Michael Glavassevich
Created: Wed, 3 Mar 2004 11:20 PM
Updated: Fri, 23 Apr 2004 10:42 AM
Environment: Operating System: All
Platform: All
Description:
While parsing a resource at an include location (both parse=xml and
parse=text), the XInclude processor is unable to detect whether the resource it
was parsing contained malformed byte sequences [1]. This is because the
IOException thrown by the Reader does not provide enough information to
determine the cause of the exception. It may very well have been something else
such as not being able to open an input stream. Instead of reporting a fatal
error, the processor treats it as a resource error and then looks for a
fallback. If a fallback exists the resulting stream will be malformed.
See Bug #27083, it's somewhat related to this problem. Although we cannot
change the behaviour of Java's readers, we should at least catch malformed byte
sequences with our own UTF8Reader and ASCIIReader and report them as with other
well-formedness violations.
[1] http://www.w3.org/TR/2004/REC-xml-20040204/#charencoding
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org