WSO2 ESB
  1. WSO2 ESB
  2. ESBJAVA-934

no error when an invalid key is specified for an xquery

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Normal Normal
    • Resolution: Fixed
    • Affects Version/s: 4.0.3
    • Fix Version/s: 4.5.0 M3
    • Component/s: None
    • Labels:
      None
    • 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.

        Activity

        Hide
        Madhuka Udantha
        added a comment -
        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
        Show
        Madhuka Udantha
        added a comment - 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
        Hide
        dushan abeyruwan
        added a comment -
        Hi
          This has already fixed in trunk r 122676 , Thanks Maduka for his contribution

        cheers
        Dushan
        Show
        dushan abeyruwan
        added a comment - Hi   This has already fixed in trunk r 122676 , Thanks Maduka for his contribution cheers Dushan

          People

          • Assignee:
            dushan abeyruwan
            Reporter:
            Madhuka Udantha
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: