[ESBJAVA-934] no error when an invalid key is specified for an xquery Created: 14/Mar/12  Updated: 23/Jul/12  Resolved: 23/Jul/12

Status: Resolved
Project: WSO2 ESB
Component/s: None
Affects Version/s: 4.0.3
Fix Version/s: 4.5.0 M3

Type: Bug Priority: Normal
Reporter: Madhuka Udantha Assignee: dushan abeyruwan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

 Description   

when an invalid key is specified for an xquery, no error is displayed in the console nor the fault sequence is called.



 Comments   
Comment by Madhuka Udantha [ 14/Mar/12 ]

According to the analysis on XQueryMediator getEntry(generatedQueryKey) method will give null object
and it is just return need to make throw SynapseException with valid message. Now when No object found for against key
It give SynapseException with message of a "No object found for the key '<key>'"

Patch is available at https://issues.apache.org/jira/browse/SYNAPSE-852

Comment by dushan abeyruwan [ 23/Jul/12 ]

Hi
This has already fixed in trunk r 122676 , Thanks Maduka for his contribution

cheers
Dushan

Generated at Tue Jul 17 05:45:56 IST 2018 using JIRA 7.2.2#72004-sha1:9d5132893cc8c728a3601a9034a1f8547ef5c7be.