Camel
  1. Camel
  2. CAMEL-4510

Camel flatpack component drops all headers from the original message

    Details

    • Estimated Complexity:
      Unknown

      Description

      In the simple example:

      from("file:/foo.csv")
         .setHeader("MyHeader", constant("Hello"))
         .to("flatpack:foo");
      
      from("flatpack:foo")
         .to("bean:importer");
      

      Header "MyHeader" is not being passed to the bean in the second route.

      Looking at Camel Flatpack code I see that in FixedLengthEndpoint.processDataSet it creates an exchange object from scratch and, thus, looses any incoming headers.

        Activity

        Hide
        Christian Müller added a comment -

        Hello Dragisa!
        Thanks for reporting. Do you consider to provide a patch for it?
        Best,
        Christian

        Show
        Christian Müller added a comment - Hello Dragisa! Thanks for reporting. Do you consider to provide a patch for it? Best, Christian
        Hide
        Dragisa Krsmanovic added a comment -

        If I get some time, I'll try to submit a patch. Currently I have a workaround for this.

        Show
        Dragisa Krsmanovic added a comment - If I get some time, I'll try to submit a patch. Currently I have a workaround for this.
        Hide
        Christian Müller added a comment -

        Committed to trunk with revision r1187582

        Show
        Christian Müller added a comment - Committed to trunk with revision r1187582
        Hide
        Christian Müller added a comment -

        Committed to branch 2.8.x with revision r1187857

        Show
        Christian Müller added a comment - Committed to branch 2.8.x with revision r1187857
        Hide
        Christian Müller added a comment -

        Committed to branch 2.7.x with revision r1187859

        Show
        Christian Müller added a comment - Committed to branch 2.7.x with revision r1187859
        Hide
        Christian Müller added a comment -

        Hello Dragisa!
        It would be great if you could test whether this patch fix your issue.
        Best,
        Christian

        Show
        Christian Müller added a comment - Hello Dragisa! It would be great if you could test whether this patch fix your issue. Best, Christian

          People

          • Assignee:
            Christian Müller
            Reporter:
            Dragisa Krsmanovic
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development