Skip to content
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

Log an error when setting a custom header on "Not Modified" responses #24706

Conversation

nickvergessen
Copy link
Member

https://stackoverflow.com/a/17822709

Quoting from section 10.3.5 of RFC 2616:

If the conditional GET used a strong cache validator, the response SHOULD NOT include other entity-headers. Otherwise (i.e., the conditional GET used a weak validator), the response MUST NOT include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers.

Apache is stripping them out anyway, so logging them as error for developing instances.

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen force-pushed the bugfix/noid/log-error-on-setting-custom-headers-on-no-content-responses branch from bd6bb1f to 329ffa2 Compare December 15, 2020 10:24
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Good 2 know

@faily-bot
Copy link

faily-bot bot commented Dec 15, 2020

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 487: failure

mariadb10.1-php7.3

Show full log
There was 1 error:

1) Test\SystemTag\SystemTagManagerTest::testUpdateTag with data set #2 (array('one', false, false), array('one', true, true))
OCP\SystemTag\TagNotFoundException: Tag does not exist

/drone/src/lib/private/SystemTag/SystemTagManager.php:238
/drone/src/tests/lib/SystemTag/SystemTagManagerTest.php:346

--

There were 2 warnings:

1) Test\Files\ViewTest::testRenameFailDeleteTargetKeepSource
Trying to configure method "writeStream" which cannot be configured because it does not exist, has not been specified, is final, or is static

2) Test\Files\ViewTest::testCopyFailDeleteTargetKeepSource
Trying to configure method "writeStream" which cannot be configured because it does not exist, has not been specified, is final, or is static

mysql5.6-php7.3

Show full log
There were 2 warnings:

1) Test\Files\ViewTest::testRenameFailDeleteTargetKeepSource
Trying to configure method "writeStream" which cannot be configured because it does not exist, has not been specified, is final, or is static

2) Test\Files\ViewTest::testCopyFailDeleteTargetKeepSource
Trying to configure method "writeStream" which cannot be configured because it does not exist, has not been specified, is final, or is static

--

There was 1 failure:

1) Test\Share20\DefaultShareProviderTest::testGetAllShares
Failed asserting that '155' matches expected 0.

/drone/src/tests/lib/Share20/DefaultShareProviderTest.php:2922

@juliushaertl juliushaertl added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Dec 16, 2020
@rullzer rullzer merged commit 7a77493 into master Dec 16, 2020
@rullzer rullzer deleted the bugfix/noid/log-error-on-setting-custom-headers-on-no-content-responses branch December 16, 2020 09:28
@rullzer rullzer mentioned this pull request Dec 16, 2020
59 tasks
@rullzer rullzer modified the milestones: Nextcloud 22, Nextcloud 21 Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants