axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Resnicow (JIRA)" <>
Subject [jira] [Created] (AXIS2-5347) Axis returns an HTTP OK when it should return an HTTP Error response
Date Tue, 19 Jun 2012 20:16:42 GMT
Bill Resnicow created AXIS2-5347:

             Summary: Axis returns an HTTP OK when it should return an HTTP Error response
                 Key: AXIS2-5347
             Project: Axis2
          Issue Type: Bug
    Affects Versions: 1.6.0
         Environment: RHEL
            Reporter: Bill Resnicow
            Priority: Minor

A SOAP message is sent from one server to another using Axis2 1.6.0.   Rampart is engaged
on the sender but not on the receiving server.   The Soap message contains a security header
with 'Must Understand' set to TRUE.   The receiving server processes the Soap headers and
because Rampart is not engaged, it rejects it.   But the HTTP response sent back is an HTTP
200 OK, whereas it should be an HTTP Error response.

Here is a snippet of the SOAP message:
POST /messaging/services/Messaging HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8; action=""
User-Agent: Axis2
Content-Length: 5110

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="">
<soapenv:Header xmlns:wsa=""><wsse:Security xmlns:wsse=""
<wsu:Timestamp xmlns:wsu=""
HTTP/1.1 202 Accepted
Content-Length: 0
Date: Wed, 11 Apr 2012 16:54:03 GMT
Server: null

and here is the Axis log:
<WINT_Event logger="org.apache.axis2.engine.AxisEngine" timestamp="1334163243813" ddmsTimeFormat="2012-04-11T16:54:03.813Z"
level="ERROR" thread="http-">
    <WINT_Message>Must Understand check failed for header
        : Security</WINT_Message>
    <WINT_Throwable>org.apache.axis2.AxisFault: Must Understand check failed for header
        : Security at org.apache.axis2.engine.AxisEngine.checkMustUnderstand(
at org.apache.axis2.engine.AxisEngine.receive(
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
        at org.apache.axis2.transport.http.AxisServlet.doPost( at javax.servlet.http.HttpServlet.service(

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message