You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by simpleuser <ce...@gmail.com> on 2017/03/29 12:11:10 UTC
Apache Camel - ftp component - need to use absolute path
Hi,
I am trying to upgrade a product that uses an older camel version (2.15.1) .
I am trying to upgrade the camel version to 2.17.5
In the code base, camel ftp component is used with absolute paths...
After upgrade we saw that, files could not be consumed due to the following
error:
SftpComponent doesn't support absolute paths, "xxx" will be converted to
"yyy". After Camel 2.16, absolute paths will be invalid.
I can see that absolute paths are not supported starting with 2.16:
http://camel.apache.org/ftp.html <http://camel.apache.org/ftp.html>
For our case, it will be very costly to change the existing code base.
My question : Is there any possibility to force camel ftp 2.17.5 to support
absolute paths as before in 2.15.1 (via config or other setting)?
--
View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-ftp-component-need-to-use-absolute-path-tp5796693.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Apache Camel - ftp component - need to use absolute path
Posted by paul529 <pa...@icloud.com>.
Hi Zoran,
I have been unable to find any detailed description of why absolute paths
cannot be supported in the ftp component.
I am trying to use the ftp component to retrieve files from a remote host.
I use an idempotent repository with the noop=true setting for the consumer.
In this way the remote host is only accessed in a read-only manner.
Does the issue with absolute paths have to do with renaming files after
processing on the remote host? Is so, my use case would not require this
and would be able to support absolute paths.
Would it be possible to support absolute paths using a property of the the
component URI? Possibly if noop=true is set?
Thanks,
Paul
--
View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-ftp-component-need-to-use-absolute-path-tp5796693p5797644.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Apache Camel - ftp component - need to use absolute path
Posted by Zoran Regvart <zo...@regvart.com>.
Hi Ceyhan,
On Thu, Apr 13, 2017 at 6:00 PM, paul529 <pa...@icloud.com> wrote:
> I have been unable to find any detailed description of why absolute paths
> cannot be supported in the ftp component.
did you see the issues I've linked to?
https://issues.apache.org/jira/browse/CAMEL-8828
https://issues.apache.org/jira/browse/CAMEL-8844
I agree they are not detailed, but they illustrate some of the issues
users were facing with absolute paths
> I am trying to use the ftp component to retrieve files from a remote host.
> I use an idempotent repository with the noop=true setting for the consumer.
> In this way the remote host is only accessed in a read-only manner.
>
> Does the issue with absolute paths have to do with renaming files after
> processing on the remote host? Is so, my use case would not require this
> and would be able to support absolute paths.
that was one of the issues
> Would it be possible to support absolute paths using a property of the the
> component URI? Possibly if noop=true is set?
I think that ship has sailed with 2.16, I was not around for the
discussion on it, perhaps one of the committers from that period could
shade more light.
But I believe that the stance not to support absolute paths will
remain in the future, from what I gather these were just one of many
issues that in the end resulted in not supporting absolute paths.
zoran
--
Zoran Regvart
Re: Apache Camel - ftp component - need to use absolute path
Posted by paul529 <pa...@icloud.com>.
Hi Zoran,
I have been unable to find any detailed description of why absolute paths
cannot be supported in the ftp component.
I am trying to use the ftp component to retrieve files from a remote host.
I use an idempotent repository with the noop=true setting for the consumer.
In this way the remote host is only accessed in a read-only manner.
Does the issue with absolute paths have to do with renaming files after
processing on the remote host? Is so, my use case would not require this
and would be able to support absolute paths.
Would it be possible to support absolute paths using a property of the the
component URI? Possibly if noop=true is set?
Thanks,
Paul
--
View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-ftp-component-need-to-use-absolute-path-tp5796693p5797646.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Apache Camel - ftp component - need to use absolute path
Posted by paul529 <pa...@icloud.com>.
Hi Zoran,
I have been unable to find any detailed description of why absolute paths
cannot be supported in the ftp component.
I am trying to use the ftp component to retrieve files from a remote host.
I use an idempotent repository with the noop=true setting for the consumer.
In this way the remote host is only accessed in a read-only manner.
Does the issue with absolute paths have to do with renaming files after
processing on the remote host? Is so, my use case would not require this
and would be able to support absolute paths.
Would it be possible to support absolute paths using a property of the the
component URI? Possibly if noop=true is set?
Thanks,
Paul
--
View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-ftp-component-need-to-use-absolute-path-tp5796693p5797645.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Apache Camel - ftp component - need to use absolute path
Posted by Zoran Regvart <zo...@regvart.com>.
Hi Ceyhan,
around version 2.16 support for absolute paths was dropped, see the
discussion in CAMEL-8828[1] and the linked issue CAMEL-8844[2].
I understand this is a problem for you, but as you can see in those
issues relative paths are better in the long run. Perhaps you can make
a quick fix on the SFTP server by being creative with symlinks?
zoran
[1] https://issues.apache.org/jira/browse/CAMEL-8828
[2] https://issues.apache.org/jira/browse/CAMEL-8844
On Wed, Mar 29, 2017 at 2:11 PM, simpleuser <ce...@gmail.com> wrote:
> Hi,
>
> I am trying to upgrade a product that uses an older camel version (2.15.1) .
>
> I am trying to upgrade the camel version to 2.17.5
>
> In the code base, camel ftp component is used with absolute paths...
>
> After upgrade we saw that, files could not be consumed due to the following
> error:
>
> SftpComponent doesn't support absolute paths, "xxx" will be converted to
> "yyy". After Camel 2.16, absolute paths will be invalid.
>
> I can see that absolute paths are not supported starting with 2.16:
>
> http://camel.apache.org/ftp.html <http://camel.apache.org/ftp.html>
>
> For our case, it will be very costly to change the existing code base.
>
> My question : Is there any possibility to force camel ftp 2.17.5 to support
> absolute paths as before in 2.15.1 (via config or other setting)?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-ftp-component-need-to-use-absolute-path-tp5796693.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Zoran Regvart