-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
don't close input stream when writing in encrypted file #13468
Conversation
Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
cc @icewind1991 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code makes sense 👍
/backport to stable15 |
backport to stable15 in #13588 |
I do get this:
on my Android test 0kb upload, always targeting latest master. |
But this was merged over a month ago. There was one change by @rullzer with 0 Byte files in object storages |
Ah, I mixed 14.01. with 14.02. |
Also in general. commenting on month old merged PRs is a good way to have your additional questions ignored ;) |
Hi, I'm using nextcloud server 15.04 and got the same information as @tobiasKaminsky when I upload a 0kb file using Windows Client 2.51final. |
Fixed in #14273 most likely. |
This is not fixed in nextcloud 16.0.1 |
Could you open a new ticket for this then? Thanks |
This addresses issue #13276. Since Sabre checks if the end of the stream has been reached, when the created file is empty, closing the stream creates an error in that case.
I also don't see, why it would make sense to close that stream that writeStream gets as an parameter, but please tell me if I am missing something.
Please review @nextcloud/encryption