[
https://issues.apache.org/jira/browse/SYNAPSE-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15303226#comment-15303226
]
Hudson commented on SYNAPSE-1011:
---------------------------------
SUCCESS: Integrated in Synapse - Trunk #5239 (See
[https://builds.apache.org/job/Synapse%20-%20Trunk/5239/])
Improved error handling in the AbstractListMediator; Triggering the fault
sequence for all non-SynapseExceptions. Applying the patch provided by Buddhima
at SYNAPSE-1011 (hiranya: rev 1745677)
*
java/modules/core/src/main/java/org/apache/synapse/mediators/AbstractListMediator.java
> 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: [email protected]
For additional commands, e-mail: [email protected]