-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[BC break] Exception thrown when "session save path is ignored without a handler service" #32837
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
Comments
/cc @gnat42 maybe? |
Definitely related - I'm not sure what the best course of action is. |
So when I submitted the PR, I did mention that I wasn't sure if it was considered a BC, but that the default setting has two problems.
Thus, it is a BC but no one addressed that part of my PR/question and then it got merged. The solution to me is to fix the default to either remove the save_path or change the handler_id. Obviously now that this is in there it may some issues. Like just reported. I hit the same because my dev and prod weren't 100% identical. I'm willing to help with fixing it but would need some guidance on what should be done I wasn't evern 100% sure what the proper solution was as you could see in my messages in #31620. Totally open to ideas or clarification on what should have happened there. |
As a user I totally get where that change's coming from. So I would recommend reverting from 3.4 & 4.2+ but not master and issuing a deprecation warning on 4.4. |
I like @luispabon's proposal - anyone up for doing the PRs? |
I can do it. |
What would be the procedure to do this? Open separate PRs per branch? Please bear with me as my contribs to symfony can be counted in the 1s |
One PR for 3.4 for the revert, one for 4.4 for the deprecation. The one for master after they're both merged. |
Thank you. There would be no PR for master would it? We're keeping the current behaviour as is for 5.0+ |
Offending commit revert in 1d71149 |
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 3.4.30
Description
Upon update from 3.4.29 to 3.4.30 a new exception is being thrown by framework bundle when save_path is used at framework.session when handler is set to null. This breaks previously working config (site doesn't use sessions).
It was introduced here: #31620
How to reproduce
https://github.com/phpdocker-io/phpdocker.io/blob/master/app/config/config.yml#L30
That was IIRC default config. Site doesn't use sessions.
Possible Solution
Remove the LogicException and instead throw a deprecation warning.
The text was updated successfully, but these errors were encountered: