Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2244

DOMDocument::normalizeDocument() fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4
    • None
    • DOM, Miscellaneous, Utilities
    • None

    Description

      The following XML file

       

      <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
      <root xmlns="http://a" xmlns:pre="http://a">
        <child xmlns="http://b" xmlns:pre="http://a"/>
      </root> 
      

      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".

      Attachments

        Activity

          People

            Unassigned Unassigned
            fm12 Markus Friedrich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: