Uh oh!
There was an error while loading. Please reload this page.
Buffer chunked requests - #43047
Conversation
szaimen
commented
Jan 23, 2024
I guess I can remove this from aio then again? :) |
3e8cd1d to
be94125Compareartonge
commented
Jan 23, 2024
/backport to stable28 |
artonge
commented
Jan 23, 2024
/backport to stable27 |
artonge
commented
Jan 23, 2024
/backport to stable26 |
I guess yes. :) The current PR is also narrower, so only changes the behavior for problematic requests. |
|
joshtrichards
commented
Jan 23, 2024
I like the targeted approach! 👍 How does mod_php avoid this? Does it just buffer every transaction? If I'm understanding this correctly:
Related issues: If we proceed with this:
|
artonge
commented
Jan 24, 2024
From what I understand, as it is closer to Apache, the communication is better, and mod_php is able to give the file content to Nextcloud. But I am not an expert at all, feel free to correct me :).
And FastCGI, no ?
It does, but as you said, this only targets specific requests, which are currently failing, so better than nothing I guess.
Is it possible to add a condition to exclude mod_php ?
Indeed, the issue also occurs with Nginx.
Better to keep it, no? |
Signed-off-by: Louis Chemineau <louis@chmn.me>
be94125 to
3c0c373Compare
come-nc
left a comment
There was a problem hiding this comment.
🐘 First time I hear about those things
nursoda
commented
Feb 18, 2024
The PR doesn't fix the issue for me on 28.0.3RC1. Do I also need to tweak my NGINX Nextcloud config to make it work? |
animaux
commented
Jan 31, 2025
I have an issue that is very similar to the referenced issue that’s unfortunately already closed. When mounting a nextcloud instance running |
Clients like DAVx5 on Android, or Cyberduck, use chunked requests.
When FastCGI or FPM is used with apache, requests arrive to Nextcloud without any content.
This leads to the creation of empty files.
The following directive will force the problematic requests to be buffered before being forwarded to Nextcloud.
This way, the "Transfer-Encoding" header is removed, the "Content-Length" header is set, and the request content is proxied to Nextcloud.
Here are more information about the issue:
Tested for a few weeks by a customer without any issue.