Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4408

NPE in DOMUtils when soap header contains null namespace element

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.9, 2.5.5, 2.6.2, 2.7
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When ReadHeaderInterceptor process the follow inbound soap message , DOMUtils throws NPE for the null namespace "Header" element:
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:foo="http://cxf.apache.org/foo"
      xmlns:bar="http://cxf.apache.org/bar">
      <soapenv:Header>
      <foo:myheader>
      <Header>
      <bar:type>mytype</head:type>
      </Header>
      </foo:myheader>
      </soapenv:Header>

      A NPE guard is needed.

        Attachments

          Activity

            People

            • Assignee:
              ema Jim Ma
              Reporter:
              ema Jim Ma
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: