Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpFoundation] Fix isNotModified determination logic#40545
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedMar 22, 2021
Hey! I see that this is your first PR. That is great! Welcome! Symfony has acontribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
nicolas-grekas commentedMar 22, 2021
This breaks some existing tests, please have a look, and add more if it makes sense. |
b9f64b4 to80f278fCompareUh oh!
There was an error while loading.Please reload this page.
25696a3 to352b1f0Compareol0lll commentedMar 26, 2021
Tests are running fine on local machine, travis seems to be on correct tag after closing / re-opening the pr. I honestly do not know why the test fails on travis. Any ideas? |
xabbuh commentedMar 26, 2021
In the |
| "symfony/event-dispatcher":"^4.4", | ||
| "symfony/http-client-contracts":"^1.1|^2", | ||
| "symfony/http-foundation":"^4.4|^5.0", | ||
| "symfony/http-foundation":"^4.4.21|^5.2.6", |
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.
should be bumped to^4.4.22|^5.2.7 now that 4.4.21 and5.2.6 have been released
befd41e to3befea3CompareNyholm commentedMar 31, 2021
Thank you. Travis is failing and when I reviewed the output I suspect that the failure is related to this PR. Can you confirm? |
Uh oh!
There was an error while loading.Please reload this page.
ol0lll commentedApr 12, 2021
A friend of mine did ask this on slack and this was the outcome:
|
TheNewSound commentedApr 12, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
EDIT: shouldn't matter since _ are replaced by - and capital letters always to lowercase. |
f35615d to6b2a7f4Compare This comment has been minimized.
This comment has been minimized.
maxhelias commentedMay 9, 2021
Needs a rebase to fix conflicts |
…nce to If-None-Match and If-Modified-Since respectively.
6b2a7f4 to07d51e2ComparePF4Public commentedJun 4, 2021
This should probably resolve sensiolabs/SensioFrameworkExtraBundle#513 in a better way than simply adding weak ETags! |
fabpot commentedAug 26, 2021
Thank you@ol0lll. |
…0lll)This PR was squashed before being merged into the 4.4 branch.Discussion----------[HttpFoundation] Fix isNotModified determination logic| Q | A| ------------- | ---| Branch? | 4.4 <!-- see below -->| Bug fix? | yes| New feature? | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets |Fix#37948 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->| License | MIT| Doc PR | symfony/symfony-docs#... <!-- required for new features -->Use weak comparison for etags; Only do if-modified-since when no if-none-match header is present.See#37948 (comment)<!--Replace this notice by a short README for your feature/bugfix. This will help peopleunderstand your PR and can be used as a start for the documentation.Additionally (seehttps://symfony.com/releases): - Always add tests and ensure they pass. - Never break backward compatibility (seehttps://symfony.com/bc). - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against branch 5.x. - Changelog entry should followhttps://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry-->Commits-------77bd21a [HttpFoundation] Fix isNotModified determination logic
| publicfunctiontestIsNotModifiedWeakEtag() | ||
| { | ||
| $etag ='randomly_generated_etag'; | ||
| $weakEtag ='W/randomly_generated_etag'; |
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.
Thank you for noticing.
Could you submit a PR fixing this with a small explanation?
Use weak comparison for etags; Only do if-modified-since when no if-none-match header is present.
See#37948 (comment)