You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Dragisa Krsmanovic (Created) (JIRA)" <ji...@apache.org> on 2011/10/04 01:32:33 UTC

[jira] [Created] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Camel flatpack component drops all headers from the original message
--------------------------------------------------------------------

                 Key: CAMEL-4510
                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
             Project: Camel
          Issue Type: Bug
          Components: camel-ejb
    Affects Versions: 2.8.1
            Reporter: Dragisa Krsmanovic


In the simple example:

{code}
from("file:/foo.csv")
   .setHeader("MyHeader", constant("Hello"))
   .to("flatpack:foo);

from("flatpack:foo")
   .to("bean:importer");
{code}

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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Work started] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Christian Müller (Work started JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-4510 started by Christian Müller.

> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>            Assignee: Christian Müller
>              Labels: flatpack
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo");
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Christian Müller (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119918#comment-13119918 ] 

Christian Müller commented on CAMEL-4510:
-----------------------------------------

Hello Dragisa!
Thanks for reporting. Do you consider to provide a patch for it?
Best,
Christian
                
> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>            Assignee: Christian Müller
>              Labels: flatpack
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo");
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Closed] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Christian Müller (Closed JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller closed CAMEL-4510.
-----------------------------------

    
> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>            Assignee: Christian Müller
>              Labels: flatpack
>             Fix For: 2.7.5, 2.8.3, 2.9.0
>
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo");
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Dragisa Krsmanovic (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120278#comment-13120278 ] 

Dragisa Krsmanovic commented on CAMEL-4510:
-------------------------------------------

If I get some time, I'll try to submit a patch. Currently I have a workaround for this.
                
> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>            Assignee: Christian Müller
>              Labels: flatpack
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo");
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Christian Müller (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133608#comment-13133608 ] 

Christian Müller commented on CAMEL-4510:
-----------------------------------------

Hello Dragisa!
It would be great if you could test whether this patch fix your issue.
Best,
Christian
                
> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>            Assignee: Christian Müller
>              Labels: flatpack
>             Fix For: 2.7.5, 2.8.3, 2.9.0
>
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo");
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Christian Müller (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133606#comment-13133606 ] 

Christian Müller commented on CAMEL-4510:
-----------------------------------------

Committed to branch 2.8.x with revision r1187857
                
> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>            Assignee: Christian Müller
>              Labels: flatpack
>             Fix For: 2.7.5, 2.8.3, 2.9.0
>
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo");
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Dragisa Krsmanovic (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dragisa Krsmanovic updated CAMEL-4510:
--------------------------------------

    Description: 
In the simple example:

{code}
from("file:/foo.csv")
   .setHeader("MyHeader", constant("Hello"))
   .to("flatpack:foo");

from("flatpack:foo")
   .to("bean:importer");
{code}

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.

  was:
In the simple example:

{code}
from("file:/foo.csv")
   .setHeader("MyHeader", constant("Hello"))
   .to("flatpack:foo);

from("flatpack:foo")
   .to("bean:importer");
{code}

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.

    
> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>              Labels: flatpack
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo");
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Christian Müller (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133144#comment-13133144 ] 

Christian Müller commented on CAMEL-4510:
-----------------------------------------

Committed to trunk with revision r1187582
                
> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>            Assignee: Christian Müller
>              Labels: flatpack
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo");
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Assigned] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Christian Müller (Assigned JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller reassigned CAMEL-4510:
---------------------------------------

    Assignee: Christian Müller
    
> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>            Assignee: Christian Müller
>              Labels: flatpack
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo");
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Dragisa Krsmanovic (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dragisa Krsmanovic updated CAMEL-4510:
--------------------------------------

    Component/s:     (was: camel-ejb)
                 camel-flatpack
    
> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>              Labels: flatpack
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo);
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Christian Müller (Resolved JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller resolved CAMEL-4510.
-------------------------------------

    Resolution: Fixed
    
> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>            Assignee: Christian Müller
>              Labels: flatpack
>             Fix For: 2.7.5, 2.8.3, 2.9.0
>
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo");
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Christian Müller (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Müller updated CAMEL-4510:
------------------------------------

    Fix Version/s: 2.9.0
                   2.8.3
                   2.7.5
    
> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>            Assignee: Christian Müller
>              Labels: flatpack
>             Fix For: 2.7.5, 2.8.3, 2.9.0
>
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo");
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (CAMEL-4510) Camel flatpack component drops all headers from the original message

Posted by "Christian Müller (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133607#comment-13133607 ] 

Christian Müller commented on CAMEL-4510:
-----------------------------------------

Committed to branch 2.7.x with revision r1187859
                
> Camel flatpack component drops all headers from the original message
> --------------------------------------------------------------------
>
>                 Key: CAMEL-4510
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4510
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-flatpack
>    Affects Versions: 2.8.1
>            Reporter: Dragisa Krsmanovic
>            Assignee: Christian Müller
>              Labels: flatpack
>             Fix For: 2.7.5, 2.8.3, 2.9.0
>
>
> In the simple example:
> {code}
> from("file:/foo.csv")
>    .setHeader("MyHeader", constant("Hello"))
>    .to("flatpack:foo");
> from("flatpack:foo")
>    .to("bean:importer");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira