Skip to content

Call stat before opening file for reading#562

Merged
bitprophet merged 2 commits into
paramiko:masterfrom
torkil:message-not-extractable
Nov 4, 2015
Merged

Call stat before opening file for reading#562
bitprophet merged 2 commits into
paramiko:masterfrom
torkil:message-not-extractable

Conversation

@torkil

@torkil torkil commented Jul 23, 2015

Copy link
Copy Markdown
Contributor

Calling stat after opening a file for reading will in some server
configurations(?) lead to IOError: The message 'filename' is
not extractable.

Calling stat from inside the prefetch-body has led users to
receive IOError: The message [<filename>] is not extractable.
@torkil torkil changed the title prefetch now requires file_size to be passed in as a parameter Call stat before opening file for reading Jul 23, 2015
@torkil torkil closed this Jul 23, 2015
@torkil torkil reopened this Jul 23, 2015
@bitprophet

Copy link
Copy Markdown
Member

Do you have more info on what "some server configurations" means exactly - i.e., is there a reproducible way we can test this out?

The change seems reasonable at a glance either way, though, so thanks!

@torkil

torkil commented Jul 30, 2015

Copy link
Copy Markdown
Contributor Author

The erroneous server configuration is something which have been pointed out in issues I think are related see, #194 #530

I also think this is due, at least in some way, to http://www-01.ibm.com/support/docview.wss?uid=swg1IT02065

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants