You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org> on 2016/05/26 23:15:13 UTC

[jira] [Resolved] (SYNAPSE-1011) Fault sequence is not get triggered when an exception comes to AbstractListMediator

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

Hiranya Jayathilaka resolved SYNAPSE-1011.
------------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0

Patch applied. Thanks Buddhima for the fix.

> Fault sequence is not get triggered when an exception comes to AbstractListMediator
> -----------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-1011
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-1011
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Buddhima Wijeweera
>            Assignee: Hiranya Jayathilaka
>              Labels: patch
>             Fix For: 3.0
>
>         Attachments: exception_handling_in_AbstractListMediator.diff
>
>
> Sample scenario:
> API:
> {noformat}
> <api xmlns="http://ws.apache.org/ns/synapse" name="API_3" context="/payments">
>     <resource uri-template="/edit" methods="PUT POST">
>         <inSequence>
>              <log level="full"/>
>              <drop/>
>         </inSequence>
>         <faultSequence>
>             <log level="custom">
>                 <property name="state" value="inside fault"/>
>             </log>
>             <drop/>
>         </faultSequence>
>     </resource>
> </api>
> {noformat}
> Sending POST request to: http://localhost:8280/payments/edit
> With payload:
> {noformat}
> <a>a&aa</a>
> {noformat}
> Expected behavior is, fault sequence of API should be triggered as payload contains invalid characters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org