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

POST request to ESB server fails with pox security

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.6.0
    • Component/s: None
    • Labels:
      None
    • Severity:
      Major
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      How to reproduce
      ==============

      1. Deploy the attached Student Service on App server or Axis2 server.
      2. Deploy the attached proxy configuration.
      3. Apply UT policy in to proxy service.

      Now send a post request to proxy.

      curl -v -H "Content-Type: application/xml" -X POST --data @addstudent.xml https://10.100.3.55:8243/services/StudentServiceProxy/students -H "Authorization: Basic YWRtaW46YWRtaW4=" -k

      you will get the following exception on ESB logs.

      [2012-12-06 15:43:23,733] ERROR - AxisEngine Missing wsse:Security header in request
      org.apache.axis2.AxisFault: Missing wsse:Security header in request
      at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
      at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:99)
      at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
      at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
      at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
      at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:349)
      at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:209)
      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: org.apache.rampart.RampartException: Missing wsse:Security header in request
      at org.apache.rampart.RampartEngine.process(RampartEngine.java:141)
      at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
      ... 10 more
      [2012-12-06 15:43:23,735] ERROR - ServerWorker Error processing POST request for : /services/StudentServiceProxy/students
      org.apache.axis2.AxisFault: Missing wsse:Security header in request
      at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
      at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:99)
      at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
      at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
      at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
      at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:349)
      at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:209)
      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: org.apache.rampart.RampartException: Missing wsse:Security header in request
      at org.apache.rampart.RampartEngine.process(RampartEngine.java:141)
      at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
      ... 10 more

        Attachments

        1. addstudent.xml
          0.5 kB
        2. proxy.xml
          0.7 kB
        3. StudentService.aar
          6 kB

          Activity

            People

            • Assignee:
              kasun@wso2.com Kasun Indrasiri
              Reporter:
              krishantha@wso2.com krishantha Samaraweera
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: