-
Notifications
You must be signed in to change notification settings - Fork 2.1k
204 and 304 must not have a body, see https://tools.ietf.org/html/rfc7230#section-3.3 #25835
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
Conversation
|
@butonic, thanks for your PR! By analyzing the annotation information on this pull request, we identified @LukasReschke, @DeepDiver1975 and @MorrisJobke to be potential reviewers |
|
Well this basically means that OCS v2 is not compatible with the RFC in this case, because OCS always expects their own body. |
|
This is only for v2 - right? |
|
👍 |
| if ($this->getStatus() === Http::STATUS_NO_CONTENT | ||
| || $this->getStatus() === Http::STATUS_NOT_MODIFIED | ||
| ) { | ||
| $response = null; |
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.
Maybe also log that the content was truncated. Otherwise this is weird behavior to get the body just deleted. Debug should be enough.
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.
I don't want to add a dependency on the logger. The Response class is too important and should still function if the logging breaks so the user gets a response ... I have seen that kind of problem too often.
|
From reading the log, tests passed except OCI that timed out. |
|
👍 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The activity app always sets content, even for a for a 304 response, which makes firewalls cry:
Instead of fixing the app I chose to make the appframework do a sanity check in case another app misbehaves.
backport to oc9 requested.
cc @felixboehm