Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update master from 1.3 #473

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

Closed
wants to merge 8 commits into from
Closed

Update master from 1.3 #473

wants to merge 8 commits into from

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Jun 29, 2018

No description provided.

@dbu dbu force-pushed the update-master-from-1.3 branch from 8fda115 to 449ce2f Compare June 29, 2018 08:27
@dbu
Copy link
Contributor Author

dbu commented Jun 29, 2018

damn, now this is failing :-(
i have no idea why its good in 1.3 but not in master. i am running out of time, have to leave now. if somebody has time to investigate, i would appreciate it.

at least, for those on version 1 of this bundle, there is now 1.3.16 which contains the fix.

@andrerom
Copy link
Contributor

andrerom commented Jun 29, 2018

These are failures on Symfony 4, might be due to the changes @nicolas-grekas
did on forcing cache to be private in some cases, but I haven't followed it closely.

1) FOS\HttpCacheBundle\Tests\Functional\EventListener\CacheControlListenerTest::testIsCached
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'public'
+'max-age=0, must-revalidate, private'
/home/travis/build/FriendsOfSymfony/FOSHttpCacheBundle/tests/Functional/EventListener/CacheControlListenerTest.php:27

2) FOS\HttpCacheBundle\Tests\Functional\EventListener\CacheControlListenerTest::testNotCached
Failed asserting that 'max-age=0, must-revalidate, private' contains "no-cache".
/home/travis/build/FriendsOfSymfony/FOSHttpCacheBundle/tests/Functional/EventListener/CacheControlListenerTest.php:37

@nicolas-grekas
Copy link

This issue should be fixed by symfony/symfony#27736

@XWB
Copy link
Member

XWB commented Jul 3, 2018

Should we wait for the next Symfony 4.1.2 release?

@dbu
Copy link
Contributor Author

dbu commented Jul 3, 2018 via email

@dbu
Copy link
Contributor Author

dbu commented Jul 6, 2018

@nicolas-grekas this also does not work with 4.1.0. could it be that there is a bug with the NO_AUTO_CACHE_CONTROL_HEADER ?

@nicolas-grekas
Copy link

I don't know really, it didn't change since it's introduction to me. Can you spot why it doesn't work?

@dbu
Copy link
Contributor Author

dbu commented Jul 6, 2018

looking further, i see that other tests using the magic header do work.

on the failing test, we do not set the header, but there is no cookies or anything, so overwriting the cache control should not happen: https://github.com/FriendsOfSymfony/FOSHttpCacheBundle/blob/master/tests/Functional/EventListener/CacheControlListenerTest.php (and the path /cached/42 has no firewall configured either)

@dbu
Copy link
Contributor Author

dbu commented Jul 6, 2018

the 4.1 build with symfony/routing 4.1.x-dev (73770bf) fails. however, the stability=dev build does NOT fail, even though it ends up with the same version of routing. now i am confused - are there other recent issues in symfony that could influence this?

it should not matter, but i checked that the fos/http-cache version is exactly the same on both builds.

@XWB
Copy link
Member

XWB commented Jul 30, 2018

@dbu Symfony 4.1.2 has been released, perhaps you can give it another try?

@dbu
Copy link
Contributor Author

dbu commented Jul 30, 2018

looks like its not even this MR but a general regression of some kind. https://travis-ci.org/FriendsOfSymfony/FOSHttpCacheBundle/builds/393516882 is master and was green a month ago, now i restarted it it has failures.

@nicolas-grekas
Copy link

@dbu do you have more info? Maybe open an issue on Symfony if you have a reproducer and you found a suspicious behavior?

@XWB
Copy link
Member

XWB commented Aug 8, 2018

Fixed in #476

@dbu dbu closed this in #476 Aug 8, 2018
@dbu dbu deleted the update-master-from-1.3 branch August 8, 2018 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants