Skip to content

Conversation

@rullzer
Copy link
Member

@rullzer rullzer commented Feb 20, 2019

Fixes #14298

If a storage doesn'tclose the write stream then $isEOF is not yet set.
So we have to fallback.

Signed-off-by: Roeland Jago Douma roeland@famdouma.nl

Fixes #14298

If a storage doesn'tclose the write stream then $isEOF is not yet set.
So we have to fallback.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer rullzer added this to the Nextcloud 16 milestone Feb 20, 2019
@rullzer
Copy link
Member Author

rullzer commented Feb 20, 2019

/backport to stable15

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good and makes sense 👍

@tobiasKaminsky
Copy link
Member

Works on local Android's test.
👍

@MorrisJobke MorrisJobke merged commit 4c8cfd2 into master Feb 20, 2019
@MorrisJobke MorrisJobke deleted the fix/14298/fix_storages_not_closing_handle branch February 20, 2019 09:28
@backportbot-nextcloud
Copy link

The backport to stable15 failed. Please do this backport manually.

@MorrisJobke
Copy link
Member

The backport to stable15 failed. Please do this backport manually.

This looks good on stable15:

if ($result === false) {
$result = feof($data);
}

No need to backport it.

@rullzer
Copy link
Member Author

rullzer commented Feb 20, 2019

Yeah it is but after #14273 😉

@MorrisJobke
Copy link
Member

Yeah it is but after #14273 😉

Then let me add it to that PR.

@MorrisJobke MorrisJobke changed the title Hanlde writestream not closing source Handle writestream not closing source Feb 20, 2019
@MorrisJobke
Copy link
Member

Then let me add it to that PR.

Done.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error while copying file to target location

4 participants