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

NPE in DOMUtils when soap header contains null namespace element

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.9, 2.5.5, 2.6.2, 2.7
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: