synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Buddhima Wijeweera (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SYNAPSE-1011) Fault sequence is not get triggered when an exception comes to AbstractListMediator
Date Sun, 22 May 2016 20:13:12 GMT
Buddhima Wijeweera created SYNAPSE-1011:
-------------------------------------------

             Summary: 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
         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


Mime
View raw message