Uploaded image for project: 'ZZZ-WSO2 ESB'
  1. ZZZ-WSO2 ESB
  2. ESBJAVA-1116

FAULTS_AS_HTTP_200 property does not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 4.5.0
    • Fix Version/s: 4.5.0 M1
    • Component/s: Mediators
    • Labels:
      None
    • Severity:
      Critical
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      Steps to reproduce:
      ================
      1. Use the following proxy service
      <proxy xmlns="http://ws.apache.org/ns/synapse" name="CustomProxy" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
      <target>
      <inSequence>
      <send>
      <endpoint>
      <address uri="http://10.200.3.200:9764/services/CustomFaultService" />
      </endpoint>
      </send>
      </inSequence>
      <outSequence>
      <property name="FAULTS_AS_HTTP_200" value="true" scope="axis2" />
      <send />
      </outSequence>
      </target>
      <description></description>
      </proxy>

      2. Send a message to proxy service.

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:axis="http://axis2.ws.apache.org">
      <soapenv:Header/>
      <soapenv:Body>
      <axis:throwFaultMethod>
      <!-Optional:->
      <axis:s>fault</axis:s>
      </axis:throwFaultMethod>
      </soapenv:Body>
      </soapenv:Envelope

      3. You will get HTTP 500 error

      According to the properties_guide.html, if you set FAULTS_AS_HTTP_200 property, when ESB receives a soap fault as a HTTP 500 message ESB will forward this fault to client with status code 200. But still you will get HTTP 500.

      Use the attached backend web service which returns custom fault message when sending the above request message

        Attachments

          Activity

            People

            • Assignee:
              udayanga@wso2.com Udayanga Wickramasinghe
              Reporter:
              charitha@wso2.com Charitha Kankanamge
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: