Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2019

Bug in getElementsByTagNameNS() method of SOAPDocumentImpl class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • beta-2
    • None
    • SAAJ
    • None

    Description

      I found a bug in getElementByTagName and getElementByTagNameNS methods of SOAPDocumentImpl class. he header and body parts call the above methods of MessageElement, but the result is never combined, we just have separate return statements for header and body parts. The result from both of them be combined and then returned. Am posting the relevant code, the patch will follow:

      if (soapPart != null) {
      SOAPEnvelope soapEnv =
      (org.apache.axis.message.SOAPEnvelope) soapPart
      .getEnvelope();
      SOAPHeader header =
      (org.apache.axis.message.SOAPHeader) soapEnv.getHeader();
      if (header != null)

      { return header.getElementsByTagName(localName); }

      SOAPBody body =
      (org.apache.axis.message.SOAPBody) soapEnv.getBody();
      if (body != null)

      { return body.getElementsByTagName(localName); }

      }
      return null;

      We should combine the result of header and body in a NodeList and then return.

      Ashutosh

      Attachments

        1. 2019.diff
          2 kB
          Ashutosh Shahi

        Activity

          People

            Unassigned Unassigned
            ashutosh Ashutosh Shahi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: