Skip to content

dapr does not close SFTP connection impeding manipulation of data on SFTP server #4016

@SteffenEbert-HK

Description

@SteffenEbert-HK

Expected Behavior

dapr closes SFTP connection once file is uploaded correctly, throws error if SFTP connection was not successfully closed

Actual Behavior

dapr does not close SFTP connection which causes the uploaded file to not be downloadable

Steps to Reproduce the Problem

use dapr binding to upload file to SFTP server, try and download file via tool like WinSCP (our testcase) once file is visible in the tool

Release Note

RELEASE NOTE: FIX Bug closing SFTP connection after successful upload

Screenshots

From: https://github.com/dapr/components-contrib/blob/main/bindings/sftp/sftp.go

Method we use:

Image

Method we expect to be called:

Image

Potential code changes (call to close method, error handling)

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions