You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2008/11/10 21:08:05 UTC
[jira] Created: (CAMEL-1072) camel-ftp - option for upload suffix
camel-ftp - option for upload suffix
------------------------------------
Key: CAMEL-1072
URL: https://issues.apache.org/activemq/browse/CAMEL-1072
Project: Apache Camel
Issue Type: Improvement
Components: camel-ftp
Affects Versions: 1.5.0
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 2.0.0
We should support an option to set a upload suffix for the FTP/SFTP producers, so Camel can upload fixes to a temporary name and after upload is complete it can rename it to the correct name,
ServiceMix has such a feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Work started: (CAMEL-1072) camel-ftp - option for upload
suffix
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-1072 started by Claus Ibsen.
> camel-ftp - option for upload suffix
> ------------------------------------
>
> Key: CAMEL-1072
> URL: https://issues.apache.org/activemq/browse/CAMEL-1072
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-ftp
> Affects Versions: 1.5.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.0.0
>
>
> We should support an option to set a upload suffix for the FTP/SFTP producers, so Camel can upload fixes to a temporary name and after upload is complete it can rename it to the correct name,
> ServiceMix has such a feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1072) camel-ftp - option for upload suffix
Posted by "Karl Palsson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55077#action_55077 ]
Karl Palsson commented on CAMEL-1072:
-------------------------------------
This is great, but what about people who really do need a suffix? I've got an external system that needs me to write with a .tmp suffix, if I use a prefix, it still picks up my files.
Will I just have to handle the renaming myself?
> camel-ftp - option for upload suffix
> ------------------------------------
>
> Key: CAMEL-1072
> URL: https://issues.apache.org/activemq/browse/CAMEL-1072
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-ftp
> Affects Versions: 1.5.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.0-M1
>
>
> We should support an option to set a upload suffix for the FTP/SFTP producers, so Camel can upload fixes to a temporary name and after upload is complete it can rename it to the correct name,
> ServiceMix has such a feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1072) camel-ftp - option for upload suffix
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55078#action_55078 ]
Claus Ibsen commented on CAMEL-1072:
------------------------------------
The file/ftp components in Camel 2.0 is much smarter and flexible than 1.x.
So we can improve the tempPrefix to be expression based so you can type a syntax as you like, for example
{{tempFileName=$\{file:name}.tmp}}
Which then will write using .tmp and then afterwards rename it back to the real name.
> camel-ftp - option for upload suffix
> ------------------------------------
>
> Key: CAMEL-1072
> URL: https://issues.apache.org/activemq/browse/CAMEL-1072
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-ftp
> Affects Versions: 1.5.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.0-M1
>
>
> We should support an option to set a upload suffix for the FTP/SFTP producers, so Camel can upload fixes to a temporary name and after upload is complete it can rename it to the correct name,
> ServiceMix has such a feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1072) camel-ftp - option for upload suffix
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1072.
--------------------------------
Resolution: Fixed
Now has same option as the file component: *tempPrefix* for both the FTP and SFTP producer
D:\project\camel>svn commit --message "CAMEL-1072: Added tempPrefix option to FTP/SFTP producers, so you can upload using a temp filename and after upload rename it to the real name."
Sending camel-core\src\main\java\org\apache\camel\component\file\FileProducer.java
Sending components\camel-ftp\src\main\java\org\apache\camel\component\file\remote\FtpProducer.java
Sending components\camel-ftp\src\main\java\org\apache\camel\component\file\remote\RemoteFileConfiguration.java
Sending components\camel-ftp\src\main\java\org\apache\camel\component\file\remote\RemoteFileProducer.java
Sending components\camel-ftp\src\main\java\org\apache\camel\component\file\remote\SftpProducer.java
Adding components\camel-ftp\src\test\java\org\apache\camel\component\file\remote\FtpProducerTempPrefixTest.java
Transmitting file data ......
Committed revision 721662.
> camel-ftp - option for upload suffix
> ------------------------------------
>
> Key: CAMEL-1072
> URL: https://issues.apache.org/activemq/browse/CAMEL-1072
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-ftp
> Affects Versions: 1.5.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.0.0
>
>
> We should support an option to set a upload suffix for the FTP/SFTP producers, so Camel can upload fixes to a temporary name and after upload is complete it can rename it to the correct name,
> ServiceMix has such a feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.