This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6284 - No tests performed when the XML encoding is set to an unknown value
Summary: No tests performed when the XML encoding is set to an unknown value
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-06 22:13 UTC by fd
Modified: 2009-04-21 07:43 UTC (History)
0 users

See Also:


Attachments

Description fd 2008-12-06 22:13:47 UTC
When the extracted encoding from the XML declaration does not match a well-known encoding, no tests are run and no errors are returned.

Ex:
 <?xml version="1.0" encoding="unknown"?>

The error occurs because in that case "body" is set to null in that case in HTTPTextResource.java.
Comment 1 fd 2009-04-21 07:43:22 UTC
Bug 5921, bug 6284, bug 6718 and bug 6818 are similar because they all relate to primary documents that cannot be decoded nor parsed. The Checker should return an error in such cases, and not raise an exception that makes it look as if something is wrong within the Checker.

See comments in Bug 5921 for more details.

There is one more problem raised by this bug: when the stated encoding is defined in the XML, we have no way to represent it in the moki if the text content cannot be decoded in the end. In the moki, the XML encoding is defined in the xmlDecl element, serialized by the XhtmlContent class. But the code requires the body to have been decoded. I'll raise another bug on this.