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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to