[ESBJAVA-1127] [Aggregate Mediator] - If 'onComplete' expression xpath is incorrect, it sends a single response without throwing an error Created: 19/Jun/12  Updated: 28/Aug/12  Resolved: 05/Jul/12

Status: Closed
Project: ZZZ-WSO2 ESB
Component/s: Mediators
Affects Version/s: 4.5.0
Fix Version/s: 4.5.0 M1

Type: Bug Priority: Highest
Reporter: Evanthika Amarasiri Assignee: Ishan Jayawardena
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System : Linux 2.6.38-8-generic, amd64
Java Version : 1.7.0
Java VM : Java HotSpot(TM) 64-Bit Server VM 21.0-b17,Oracle Corporation
Packs : Beta packs wso2esb-4.0.0-SNAPSHOT - 14th June 2012
DBMS : Embedded H2
Browser : Firefox 10.0.2

Severity: Blocker
Estimated Complexity: Moderate
Test cases added: Yes


Steps to reproduce

1. You can use the sample 400 to reproduce this issue
2. Make the 'onComplete' xpath expression invalid to that it should not match with the messages being mediated through the Out sequence
3. Instead of throwing an exception, it returns a single successful response to the user. This is incorrect. How would the user know if the onComplete is incorrect?

Comment by Ishan Jayawardena [ 05/Jul/12 ]

Fixed in r131752 and 131753.

Comment by Evanthika Amarasiri [ 28/Aug/12 ]

If onComplete expression is invalid, it throws the error "Could not find matching elements to aggregate." and terminates the aggregation. The issue is fixed and will be closed

Generated at Sat Feb 29 04:54:01 PST 2020 using JIRA 7.2.2#72004-sha1:9d5132893cc8c728a3601a9034a1f8547ef5c7be.