[ http://issues.apache.org/jira/browse/XERCESJ-1142?page=all ]
Peter McCracken updated XERCESJ-1142:
-------------------------------------
Attachment: XMLSchemaLoader-patch.txt
XMLSchemaValidatorComponentManager-patch.txt
XMLSchemaValidator-patch.txt
These patches fix 5 different XMLConfigurationExceptions that are thrown in a
normal call to validate() on ValidatorImpl.
XMLSchemaLoader must recognize PARSER_SETTINGS.
XMLSchemaValidator must recognize NORMALIZE_DATE, SCHEMA_AUGMENT_PSVI and
SCHEMA_ELEMENT_DEFAULT to avoid exceptions in its reset() method.
XSDHandler throws an XMLConfigurationException for DISALLOW_DOCTYPE, which is
not recognized by XMLSchemaValidatorConfigurationManager. Unfortunately,
there's no direct connection between XSDHandler and
XMLSchemaValidatorConfigurationManager, so DISALLOW_DOCTYPE should be
recognized by XMLSchemaValidator.
> XMLConfigurationExceptions silently thrown during reset()
> ---------------------------------------------------------
>
> Key: XERCESJ-1142
> URL: http://issues.apache.org/jira/browse/XERCESJ-1142
> Project: Xerces2-J
> Type: Bug
> Components: JAXP (javax.xml.validation)
> Versions: 2.7.1
> Reporter: Peter McCracken
> Priority: Minor
> Attachments: XMLSchemaLoader-patch.txt, XMLSchemaValidator-patch.txt,
> XMLSchemaValidatorComponentManager-patch.txt
>
> During calls to reset() in a default JAXP validator, several exceptions are
> thrown for unrecognized features. These exceptions are silently ignored and
> fallback values are used.
> To avoid throwing unnecessary exceptions, the features should be recognized
> by the components involved. The fix involves adding the appropriate features
> to the RECOGNIZED_FEATURES, and in some cases setting a default value.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]