Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1057

XQuery creates an empty out message that makes it impossible to chain more processors behind it

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.5.0
    • Fix Version/s: 1.6.0, 2.0-M1
    • Component/s: camel-saxon
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      When using XQuery the getOut() function is called on the message so if it is not used at a place where the out is filled an empty out message will be created. With this xquery cannot be used for example in setBody, setHeader... and anywhere where the out is not filled.
      An example where this causes real trouble:

      <choice>
      <when>
      <xquery>...</xquery>
      <to uri="direct:follow" />
      </when>
      </choice>

      ...
      <from uri="direct:follow">
      <to ...>
      <to ...>

      In the patch the out property in the xquery context is filled only if it is not null. With it all of my pipelines seem to work well for me.

        Activity

        Hide
        davsclaus Claus Ibsen added a comment -

        Balazs could you re attach the patch with the ASF license granted. We can not accept patches without this license.

        The general rule with JIRA is not to attach files while creating the ticket. Only attach files afterwards since then there is a checkbox where you can grant the ASF license.

        Show
        davsclaus Claus Ibsen added a comment - Balazs could you re attach the patch with the ASF license granted. We can not accept patches without this license. The general rule with JIRA is not to attach files while creating the ticket. Only attach files afterwards since then there is a checkbox where you can grant the ASF license.
        Hide
        balazs.zsoldos Balazs Zsoldos added a comment -

        Hi, here is the file with the license.

        Show
        balazs.zsoldos Balazs Zsoldos added a comment - Hi, here is the file with the license.
        Hide
        davsclaus Claus Ibsen added a comment -

        Applied patch with thanks to Balazs

        Show
        davsclaus Claus Ibsen added a comment - Applied patch with thanks to Balazs
        Hide
        davsclaus Claus Ibsen added a comment -

        Closing 2.0m1 tickets

        Show
        davsclaus Claus Ibsen added a comment - Closing 2.0m1 tickets

          People

          • Assignee:
            davsclaus Claus Ibsen
            Reporter:
            balazs.zsoldos Balazs Zsoldos
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development