Skip to content

Conversation

@butonic
Copy link
Member

@butonic butonic commented Aug 17, 2016

The activity app always sets content, even for a for a 304 response, which makes firewalls cry:

http_process_state_prepend - Invalid action:0x109010 Server sends too much data.

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

@mention-bot
Copy link

@butonic, thanks for your PR! By analyzing the annotation information on this pull request, we identified @LukasReschke, @DeepDiver1975 and @MorrisJobke to be potential reviewers

@nickvergessen
Copy link
Contributor

Well this basically means that OCS v2 is not compatible with the RFC in this case, because OCS always expects their own body.

@DeepDiver1975
Copy link
Member

This is only for v2 - right?
In this case this is accepable.

@guruz
Copy link
Contributor

guruz commented Aug 17, 2016

👍

if ($this->getStatus() === Http::STATUS_NO_CONTENT
|| $this->getStatus() === Http::STATUS_NOT_MODIFIED
) {
$response = null;
Copy link
Contributor

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.

Copy link
Member Author

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.

@PVince81
Copy link
Contributor

From reading the log, tests passed except OCI that timed out.

@PVince81
Copy link
Contributor

👍

@lock
Copy link

lock bot commented Aug 4, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants