I am interacting with a SFTP server that deletes files once they are downloaded. To prevent data loss, I need to read the file, land it on persistent storage and then close the connection to indicate I have received it. What's not obvious to me is what happens if I can't safely store the file. Is there a way to close the connection in a way that semantically indicates 'I'm closing the connection and it failed'? All I am finding in the RFC is a SSH_FXP_CLOSE message, which seems to only signal successful transfer. All the other error message types appear to only be used when a server returns a response to a client, not the other way around.
Can I negatively close a SFTP file transfer from the client side?
1.2k Views Asked by JSacksteder At
1
There are 1 best solutions below
Related Questions in SFTP
- Can I negatively close a SFTP file transfer from the client side?
- Does JSch allow to understand that I provided wrong credentials?
- Transfer File to Unix Server from Windows Shared Path using PuTTY
- How to use SFTP with PhpStorm to access server /var/www folder
- Transfer folder from one SFTP server to another every day
- Check if file exists using Apache Commons VFS2
- JSch Algorithm negotiation fail
- Apache SSHD: Where do I find the org/bouncycastle/crypto/prng/VMPCRandomGenerator class?
- Setting up a sftp server in node.js using ssh2 module
- Upload multiple photos to SFTP in Async
- Is this safe to share private key in JCraft JSch
- SFTP Processbuilder
- How to stop spring sftp inbound channel adapter polling when files are downloaded
- SFTP PHP 5.6 using phpseclib hangs
- Cannot create bean when start the application
Related Questions in IBM-STERLING
- Can I negatively close a SFTP file transfer from the client side?
- Location of Java installer for Windows Perimeter Server
- How to retrive the transfer order details, with the sales order number in Sterling OMS?
- scheduleOrder API fails in Sterling Order Management
- How to grab values between xml in SQl statement
- SFTP Client LIST service parameter "ModificationTime"
- IBM Sterling map editor: is there a way to sort OID in 204 EDI
- How to pick a specific type of file (XML , txt) via GPM using a Business Process in Sterling Integrator
- Connect Direct (NDM)
- How to setup Organization's Calendar in Sterling Commerce?
- IBM sterling integration jboss error
- SQL query to display IBM Sterling B2B Integrator BPs configuration with the meaning of each PERSISTENCE_LEVEL
- Create a script to collect files from yesterday
- Integration server is going down throwing java.lang.OutOfMemoryError: GC overhead limit exceeded
- java.lang.ClassCastException: org.jboss.ws.core.soap.TextImpl cannot be cast to javax.xml.soap.SOAPElement
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You cannot signal an error to the SFTP server, that's not what SFTP is intended for.
For your particular case, simply closing an SFTP connection without closing the file explicitly (not sending the
SSH_FXP_CLOSE) could indicate to the server that something went wrong.Though it really depends on your server implementation, what it considers an error. The documentation of the SFTP server should describe what it is that triggers the delete.
In SFTP there's nothing like a "download" operation (contrary to FTP
RETRcommand). There are only trivial file operations, like opening file (for reading or writing), reading piece of a file, closing a file. So it is not as simple as "server deletes the file after it is downloaded". The rule can say for example "server deletes the file after it is closed after being previously opened for reading" or something like that.