You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2008/10/10 20:35:44 UTC

[jira] Resolved: (CXF-1849) PolicyVerificationOutInterceptor writes faults at wrong phase when processing response

     [ https://issues.apache.org/jira/browse/CXF-1849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-1849.
------------------------------

    Resolution: Fixed

> PolicyVerificationOutInterceptor writes faults at wrong phase when processing response
> --------------------------------------------------------------------------------------
>
>                 Key: CXF-1849
>                 URL: https://issues.apache.org/jira/browse/CXF-1849
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 2.1.2
>            Reporter: Fred Dushin
>            Assignee: Daniel Kulp
>             Fix For: 2.1.3, 2.2
>
>         Attachments: CXF-1849-trunk-r703513.patch
>
>
> When a CXF response is processed on an endpoint that contains policy assertions (via spring, WSDL, etc), and the policy assertions are not marked as asserted, the PolicyVerificationOutInterceptor properly raises a SOAP fault.  However, this interceptor is inserted into the "post-stream" phase, and it seems as though the fault gets written to the SOAP body after the business logic has been written.
> So a response in this scenario will come out as follows:
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
>   <soap:Body>
>      <sayHiResponse xmlns="...">
>        <responseType>Bonjou</responseType>
>      </sayHiResponse>
>      <soap:Fault>
>        <faultcode>soap:Server</faultcode>
>        <faultstring>These policy alternatives can not be satisfied: [snip]</faultstring >
>     </soap:Fault>
>   </soap:Body>
> </soap:Envelope>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.