[
https://issues.apache.org/jira/browse/CAMEL-17723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17508705#comment-17508705
]
Jiri Ondrusek commented on CAMEL-17723:
---------------------------------------
I tested following route:
{code}
from("direct:ssh")
.pollEnrich(
ssh("localhost:" +
port).username("smx").password("smx")
.useFixedDelay(true).delay(4000)
.pollCommand("${in.header.CommandArg}"))
.to("mock:result");
{code}
Result if failure:
{code}
Expected :<test>
Actual :<${in.header.CommandArg}>
{code}
I'll dig more into it and try to find a way of defining route to be working.
> camel-ssh - Dynamic Header is not resolved in pollCommand
> ---------------------------------------------------------
>
> Key: CAMEL-17723
> URL: https://issues.apache.org/jira/browse/CAMEL-17723
> Project: Camel
> Issue Type: Bug
> Components: camel-ssh
> Affects Versions: 3.15.0
> Reporter: Guillaume N.
> Assignee: Jiri Ondrusek
> Priority: Minor
> Attachments: SshComponentProducerCommandTest.java
>
>
> Hello
> I have been trying to add a dynamic argument to SSH command through a header.
> However the pollCommand parameter does not resolve it and issue the command
> as is.
> Please see this Zulip discussion:
> [https://camel.zulipchat.com/#narrow/stream/257298-camel/topic/Dynamic.20SSH.20command]
> I also tried to create a UnitTest to replicate the issue, please see attached.
> Best regards
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)