Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-361

OMNodeImpl detach, when done on the document element of a document, fails to record the state change on the OMDocumentImpl.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.11
    • 1.2.13
    • LLOM
    • None

    Description

      When doing full document decryption in https://code.google.com/a/apache-extras.org/p/santuario-genxdm/, it is necessary to replace the document element of a document with its decrypted counterpart.

      However, OMNodeImpl.detach doesn't inform the document that the element has been removed, and the OMDocumentImpl.documentElement still points at the one being detached. When subsequently attempting to add in the newly decrypted form of the element, it fails, asserting that the document already has an element.

      The work-around here is to specifically check in the case of doing a detach on the element of a document, to set the document element of a document to null. Unfortunately, but do-able without resorting to implementation details.

      Attachments

        Activity

          People

            veithen Andreas Veithen
            eric@tibco.com Eric Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: