Camel SFTP component not working in JBoss SOA-P 5.2 or 5.3.0

Solution Verified - Updated -

Issue

There's a bug in the Camel 2.4.0 that's distributed with SOA 5.3.0. The SFTP module can't fetch files from an absolute directory.

The issue has been discussed in the Camel mailing-list.

And there classified as a bug. For us this shows up when we have a Camel fetch like this:

sftp://easiakas@10.129.20.235/data1/easiakas/heracles_finvoice/download/invoice/?password=xxxxxx&delay=5000&delete=true&include=[^T].*\.zip

(or //data1/easiakas/heracles_finvoice/download/invoice/, doesn't matter, and even non-absolute heracles_finvoice/download/invoice/ won't work):

17:45:51,688 INFO  [CamelRouteBuilder] Started message processing in camel input route. Filename: test.zip uuid: 74143f3e-68fe-4f04-a784-087af57c735c
18:02:14,701 ERROR [SftpConsumer] Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Cannot retrieve file: data1/easiakas/heracles_finvoice/download/invoice/test.zip]
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot retrieve file: data1/easiakas/heracles_finvoice/download/invoice/test.zip

So it finds the test.zip, but it can't download it, since it's in the wrong directory or tries to change directory to a wrong one.

Environment

  • JBoss Enterprise SOA Platform
    • 5.2.0
    • 5.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content