davsclaus opened a new pull request, #3273:
URL: https://github.com/apache/camel-kamelets/pull/3273

   `ssh-source` put `pollCommand` into the endpoint address as it is, so Camel 
read it as part of the address:
   - A `+` became a space: `echo "1+1"` ran as `echo "1 1"`.
   - A `&` ended the option. `echo "a & b"` failed at startup, because the rest 
became an unknown option.
   
   The Kamelet now passes `pollCommand` in `RAW()`, as #3243 did for the 
passwords. Its description already says to give the command "as you would type 
it in a shell on the server". A `)` inside the command, as in `$(date)`, is 
fine: Camel ends a `RAW()` value only at a `)` followed by `&` or by the end of 
the address.
   
   Found by the Citrus tests of #3271, which use a command without these 
characters for now.
   
   ### Tests
   - **Against OpenSSH** (`linuxserver/openssh-server`), with `pollCommand: 
'echo "sum 1+1 & a=b $(echo sub)"'`:
     - With this change the body is `sum 1+1 & a=b sub`.
     - Before it, the integration did not start: `Failure creating route from 
template: ssh-source`.
   - **Build:** `./mvnw clean install` from the root passes, run twice.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to