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

org.apache.axiom.om.util.CopyUtils throws NPE when used to copy a SOAPEnvelope containing a SOAP 1.1 SOAPFault

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.11
    • 1.2.14
    • API
    • None
    • All

    Description

      NPE when using CopyUtils.copy on a SOAPEnvelope containing a SOAP 1.1 SOAPFault.
      This is because the copySOAPFaultCode method assumes that the SOAPFaultCode has a Value child element, but that's only true for SOAP 1.2.
      In SOAP 1.1 the SOAPFault contains a text element, not a Value element.

      I have a patch available where I copy the text or Value based on the namespace of the SOAPFactory.

      Attachments

        Issue Links

          Activity

            People

              veithen Andreas Veithen
              dan_matthews Daniel James Matthews
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified