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

DOMDocument::normalizeDocument() fails

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            fm12 Markus Friedrich

            Dates

              Created:
              Updated:

              Slack

                Issue deployment