[jira] [Commented] (XERCESC-2244) DOMDocument::normalizeDocument() fails
[ https://issues.apache.org/jira/browse/XERCESC-2244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17793875#comment-17793875 ] Scott Cantor commented on XERCESC-2244: --- You seemed to be suggesting there's a second place it was already removing the same hash key, but I didn't spot it, so I thought maybe you might know where that was. I don't think that would be enough to get me confident enough to change it, but one never knows. > DOMDocument::normalizeDocument() fails > -- > > Key: XERCESC-2244 > URL: https://issues.apache.org/jira/browse/XERCESC-2244 > Project: Xerces-C++ > Issue Type: Bug > Components: DOM, Miscellaneous, Utilities >Affects Versions: 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4 >Reporter: Markus Friedrich >Priority: Major > > The following XML file > > {code:java} > > http://a; xmlns:pre="http://a;> > http://b; xmlns:pre="http://a"/> > > {code} > fails when DOMDocument::normailzeDocument() gets called on its DOM. > In DOMNormalizer.cpp:437 the "oldUri" gets removed from "fUriHash" twice, > which throws the second time since the key no longer exists in "fUriHash". -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org
[jira] [Commented] (XERCESC-2244) DOMDocument::normalizeDocument() fails
[ https://issues.apache.org/jira/browse/XERCESC-2244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17793874#comment-17793874 ] Markus Friedrich commented on XERCESC-2244: --- I also don't know this code and cannot provide a patch, sorry. I worked around this bug in my code by disabling namespace processing before calling normalizeDocument() doc->getDOMConfig()->setParameter(XMLUni::fgDOMNamespaces, false); and re-enable it after normalizeDocument(). This is fine for in code since a don't need namespace processing during normalizeDocument(). > DOMDocument::normalizeDocument() fails > -- > > Key: XERCESC-2244 > URL: https://issues.apache.org/jira/browse/XERCESC-2244 > Project: Xerces-C++ > Issue Type: Bug > Components: DOM, Miscellaneous, Utilities >Affects Versions: 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4 >Reporter: Markus Friedrich >Priority: Major > > The following XML file > > {code:java} > > http://a; xmlns:pre="http://a;> > http://b; xmlns:pre="http://a"/> > > {code} > fails when DOMDocument::normailzeDocument() gets called on its DOM. > In DOMNormalizer.cpp:437 the "oldUri" gets removed from "fUriHash" twice, > which throws the second time since the key no longer exists in "fUriHash". -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org
[jira] [Commented] (XERCESC-2244) DOMDocument::normalizeDocument() fails
[ https://issues.apache.org/jira/browse/XERCESC-2244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17793798#comment-17793798 ] Scott Cantor commented on XERCESC-2244: --- Unless you can propose a specific patch, I definitely don't know this code well enough to consider changing it. > DOMDocument::normalizeDocument() fails > -- > > Key: XERCESC-2244 > URL: https://issues.apache.org/jira/browse/XERCESC-2244 > Project: Xerces-C++ > Issue Type: Bug > Components: DOM, Miscellaneous, Utilities >Affects Versions: 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4 >Reporter: Markus Friedrich >Priority: Major > > The following XML file > > {code:java} > > http://a; xmlns:pre="http://a;> > http://b; xmlns:pre="http://a"/> > > {code} > fails when DOMDocument::normailzeDocument() gets called on its DOM. > In DOMNormalizer.cpp:437 the "oldUri" gets removed from "fUriHash" twice, > which throws the second time since the key no longer exists in "fUriHash". -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org