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

SOAPFaultException has empty message in case of response containing CDATA in fault:faultstring (SOAP 1.1)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.7
    • Fix Version/s: 2.6.12, 2.7.9, 3.0.0-milestone2
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If the called web service (SOAP 1.1) returns a fault with a faultstring containing a <![CDATA[...]]> element

      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soapenv:Header/>
        <soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
          <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring><![CDATA[some text containing a xml tag <xml-tag>]]></faultstring>
          </soap:Fault>
        </soap:Body>
      </soap:Envelope>
      

      then the message in the resulting SOAPFaultException is empty. If the faultstring contains only "simple characters" everything is fine.

      I think this issue was introduced with the fixing of bug https://issues.apache.org/jira/browse/CXF-4181.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              dont_know Dont Know
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: