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 "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2007/08/25 18:13:31 UTC
[jira] Updated: (XERCESJ-1230) DOM Normalizer throws an NPE during
namepsace fixup if an Attr node is non-namespace aware
[ https://issues.apache.org/jira/browse/XERCESJ-1230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich updated XERCESJ-1230:
------------------------------------------
Fix Version/s: 2.9.1
> DOM Normalizer throws an NPE during namepsace fixup if an Attr node is non-namespace aware
> ------------------------------------------------------------------------------------------
>
> Key: XERCESJ-1230
> URL: https://issues.apache.org/jira/browse/XERCESJ-1230
> Project: Xerces2-J
> Issue Type: Bug
> Components: DOM (Level 3 Core)
> Affects Versions: 2.9.0
> Reporter: Michael Glavassevich
> Assignee: Michael Glavassevich
> Priority: Minor
> Fix For: 2.9.1
>
>
> If normalizeDocument() is called on a Document containing non-namespace aware Attr nodes an NPE will be thrown from the normalizer during namespace fixup. This bug is causing two test cases (infoset07 and wellformed03) in the W3C DOM Level 3 Core test suite to fail:
> 1) http://www.w3.org/2001/DOM-Test-Suite/level3/core/infoset07(org.w3c.domts.JUnitTestCaseAdapter)
> java.lang.NullPointerException
> at org.apache.xerces.util.XMLChar.isValidNCName(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.checkQName(Unknown Source)
> at org.apache.xerces.dom.DOMNormalizer.namespaceFixUp(Unknown Source)
> at org.apache.xerces.dom.DOMNormalizer.normalizeNode(Unknown Source)
> at org.apache.xerces.dom.DOMNormalizer.normalizeDocument(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.normalizeDocument(Unknown Source)
> at org.w3c.domts.level3.core.infoset07.runTest(infoset07.java:108)
> at org.w3c.domts.JUnitTestCaseAdapter.runTest(JUnitTestCaseAdapter.java:41)
> 2) http://www.w3.org/2001/DOM-Test-Suite/level3/core/wellformed03(org.w3c.domts.JUnitTestCaseAdapter)
> java.lang.NullPointerException
> at org.apache.xerces.util.XMLChar.isValidNCName(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.checkQName(Unknown Source)
> at org.apache.xerces.dom.DOMNormalizer.namespaceFixUp(Unknown Source)
> at org.apache.xerces.dom.DOMNormalizer.normalizeNode(Unknown Source)
> at org.apache.xerces.dom.DOMNormalizer.normalizeDocument(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.normalizeDocument(Unknown Source)
> at org.w3c.domts.level3.core.wellformed03.runTest(wellformed03.java:108)
> at org.w3c.domts.JUnitTestCaseAdapter.runTest(JUnitTestCaseAdapter.java:41)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org