Uploaded image for project: 'ZZZ-WSO2 Data Services Server'
  1. ZZZ-WSO2 Data Services Server
  2. DS-1182

Dataservice returns HTTP Status 500 instead of 'SOAPFault' when calling a secured service

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.1-Beta, 3.5.1
    • Component/s: None
    • Labels:
      None
    • Severity:
      Major
    • Estimated Complexity:
      Moderate

      Description

      We are trying to persuade our customer to use DataServiceServer 3.5.0 by showing some platform capabilities.

      Our dataservice is a simple test case that makes an insert in an Oracle Database table. When execution fails, lets say caused by duplicate key exception, and security is not applied to the dataservice, response is a "SOAPFault" message, as expected.

      Then we apply a "UTOverTransport" security policy on the service and we make the same call. Instead of SOAPFault, we are getting HTTP Status 500 error. This was not happening in previous version (we tried DSS 3.2.2)

      Logs show this error

      java.lang.ClassCastException: org.apache.axiom.om.impl.dom.ElementImpl cannot be cast to org.apache.axiom.soap.SOAPHeaderBlock

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anupama@wso2.com Anupama Pathirage
                Reporter:
                mlorono@gfi.es Miguel Lorono
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: