Skip to content

SFTP multipart stat failure can truncate an existing target #59

Description

@robjarawan

Finding

Sftp.put treats every remote stat exception as evidence that the target is absent. During a transient stat failure, it opens the remote target for replacement, truncating an existing multipart destination before writing the current block.

Proof target

Only treat a confirmed not-found response as absence. Propagate other stat failures without opening or modifying the target. Add deterministic tests for transient failure and true absence.

Scope

Fork validation for PROTO-12.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions