Skip to content

Bug in SftpFileStream.Write(byte[] buffer, int offset, int count) ? #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
guillaume86 opened this issue Nov 14, 2016 · 6 comments
Closed

Comments

@guillaume86
Copy link

Hi,

I'm still investigating the issue so I could be wrong, but it's possible that since updating to 2016.0.0.0 from some 2014 version, SftpFileStream.Write has a bug that corrupt the destination file.

The created file has the correct length, but the content is the first 32.741 bytes of the buffer repeated till the correct file size is reached.

It's a pretty serious issue so I posted it as soon as I found out, I'm now investigating the issue in detail to confirm the problem.

@guillaume86
Copy link
Author

It's fixed in the source code (tried to build from source and test) but the current Nuget version contains the bug.
I would recommend blacklist that version (or whatever it's called in Nuget) and release an update as soon as possible, it's a pretty bad one IMO.

@drieseng
Copy link
Member

I'm gonna try to ship a new beta this weekend.

@drieseng drieseng added this to the 2016.1.0 milestone Nov 22, 2016
@drieseng
Copy link
Member

This should be fixed in version 2016.1.0-beta1.
Please test and provide feedback.

@sychare
Copy link

sychare commented Jan 23, 2017

I've just run into this issue with 2016.0 and can confirm that the 2016.1 beta appears to resolve it.

@BobLokerse
Copy link

BobLokerse commented Mar 14, 2017

I can also confirm that it fixed my similar problem.

Is there an expectation date when this fix will come out of beta?

@drieseng
Copy link
Member

drieseng commented Jul 18, 2017

Duplicate of issue #70.

I'll be releasing a new beta soon.

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

No branches or pull requests

4 participants