synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Otto Frost (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SYNAPSE-502) improve the vfs transport to use temporary file
Date Mon, 19 Aug 2013 11:17:49 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13743725#comment-13743725
] 

Otto Frost edited comment on SYNAPSE-502 at 8/19/13 11:16 AM:
--------------------------------------------------------------

Hello,

The patch adds the use of a temprary file but it doesn't solve the problem.

The receiver typically fetches everything available on the directory "*" and will therefore
fetch the temp file as well.

It must be possible to specify the tempfile name to have a suffix or prefix like "filename.tmp"
assuming the receiver supports avaoiding reading files with a certain prefix or suffix.

Alternatively it should be possible to place the tempfile in a working directory like 
"destinationDirectory/workdir/filename.tmp"
or (if receiver doesn't want subdirectory in dest dir) 
"destinationDirectoryWorkdir/filename.tmp


The current solutionmay work if the receiver support fetching *.suffix but not fetch the uuid
named files


                
      was (Author: otto):
    Hello,

The patch adds the use of a temprary file but it doesn't solve the problem.

The receiver typically fetches everything available on the directory "*" and will therefore
fetch the temp file as well.

It must be possible to specify the tempfile name to have a suffix or prefix like "filename.tmp"
assuming the receiver supports avaoiding reading files with a certain prefix or suffix.

Alternatively it should be possible to place the tempfile in a working directory like 
"destinationDirectory/workdir/filename.tmp"
or (if receiver doesn't want subdirectory in dest dir) 
"destinationDirectoryWorkdir/filename.tmp



                  
> improve the vfs transport to use temporary file
> -----------------------------------------------
>
>                 Key: SYNAPSE-502
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-502
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Transports
>         Environment: All
>            Reporter: Otto Frost
>            Assignee: Rajika Kumarasiri
>             Fix For: 3.0
>
>         Attachments: SYNAPSE-502.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Enhance the vfs transport to use a temporary file at upload.
> The reason is to prevent the receiving application to start reading the uploaded-file
(put) before it is completely written.
> Of course the temp file has to be on the same physical filesystem.
> This feature should work for ftp/sftp/local file/...
> It should be similar in funcitonality as what SAP XI has at the ftp/file adapter.
> See http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/content.htm
> See the receiver file adapter (the system xi communicates with receives data).
> See the option TargetTempFileName
> If there is already this functionality, it would be good idea to include how to solve
the problem in the examples. Of course the best solution is to use MOM, but sometimes that
isn't an option.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message