8000 when sessions are not enabled, the listener does not exist either by dbu · Pull Request #445 · FriendsOfSymfony/FOSHttpCacheBundle · GitHub
[go: up one dir, main page]

Skip to content

when sessions are not enabled, the listener does not exist either #445

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

Merged
merged 1 commit into from
Apr 20, 2018

Conversation

dbu
Copy link
Contributor
@dbu dbu commented Apr 20, 2018

fix problem introduced in #435, replace #444

@dbu
Copy link
Contributor Author
dbu commented Apr 20, 2018

@Tobion can you please check if this fixes the problem you encountered?

@Tobion
Copy link
Member
Tobion commented Apr 20, 2018

Works 👍

@dbu dbu merged commit 6b75eba into master Apr 20, 2018
@dbu dbu deleted the session-listener-no-session branch April 20, 2018 16:32
@dbu dbu removed the wip/poc label Apr 20, 2018
@dbu
Copy link
Contributor Author
dbu commented Apr 20, 2018

great! tagged 2.2.2 with this fix

@emodric
Copy link
Contributor
emodric commented Apr 23, 2018

@dbu @Tobion Does this need to be backported to 1.4 branch too?

@dbu
Copy link
Contributor Author
dbu commented Apr 23, 2018

things will break (explicitly) whithout this fix in projects with symfony 3.4/4.0 that do not have session handling enabled (e.g. rest apis).

i think your backport did not include #439, so things will break in a bad way when using symfony 4.1 and FOSHttpCacheBundle 1.3.14 with sessions, as the session will not be saved anymore.

@emodric
Copy link
Contributor
emodric commented Apr 23, 2018

1.3 cannot be installed on Symfony 4.x, so that's not an issue. That's why I didn't include #439 in the first place.

The only open question is about Symfony 3.4.

@dbu
Copy link
Contributor Author
dbu commented Apr 23, 2018

ah good. but this change is relevant for 3.4 as well.

the listener expects the symfony session listener to exist. if sessions are not enabled, this is not the case, and container can't be compiled.

@emodric
Copy link
Contributor
emodric commented Apr 23, 2018

Okay, do you want me to backport this as well?

@dbu
Copy link
Contributor Author
dbu commented Apr 23, 2018

if you have the time, sure. i don't want to actively maintain version 1 anymore, but as the rest has been backported it would make sense to now also fix the regression (of not working without sessions anymore).

@emodric
Copy link
Contributor
emodric commented Apr 23, 2018

Okay. Will do it in a day or two! 👍

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.

3 participants
0