SFTP rename failed to overwrite stock file, causing overselling at a marketplace partner
A company that uploads nightly stock levels to a marketplace partner over SFTP switched to writing a temporary file and renaming it into place. On the second night, the standard SFTP rename failed because OpenSSH refuses to overwrite an existing target, and the job failed after retries. The partner imported the outdated file and sold twenty-three items the company no longer had. The company now uses OpenSSH's posix-rename extension, which replaces the target atomically, and verifies the uploaded file's size and timestamp before finishing. The incident showed that rename behaves differently across systems.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in