Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Information Provided
-
3.18.0
-
None
-
Unknown
Description
Camel 3.18.0 (and 3.14.4)
When calling an SFTP-endpoint I get the following exception:
org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: sftp://localhost:10022/forsendelser/?fileName=myfile&knownHosts=%23sftpKnownHosts&privateKey=xxxxxx&serverHostKeys=ssh-rsa%2Crsa-sha2-512%2Crsa-sha2-256%2Cecdsa-sha2-nistp256%2Cecdsa-sha2-nistp384%2Cecdsa-sha2-nistp521&useUserKnownHostsFile=xxxxxx&username=xxxxxx due to: Failed to resolve endpoint: sftp://localhost:10022/forsendelser/?fileName=myfile&knownHosts=%23sftpKnownHosts&privateKey=xxxxxx&serverHostKeys=ssh-rsa%2Crsa-sha2-512%2Crsa-sha2-256%2Cecdsa-sha2-nistp256%2Cecdsa-sha2-nistp384%2Cecdsa-sha2-nistp521&useUserKnownHostsFile=xxxxxx&username=xxxxxx due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[\{serverHostKeys=ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521}]
According to the documentation "serverHostKeys" should be supported
https://camel.apache.org/components/3.18.x/sftp-component.html