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
Correctly execute kernel events for initialize.php #1410
Conversation
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.
We need to handle the headers sent via header()
method as well because of custom code that potentially doesn't use the Contao's exceptions and/or Controller::redirect()
or Controller::reload()
methods.
Unfortunately, tests seem to fail because of our special |
Frankly, I am not sure whether all these changes are correct. The The Contao 3 has reached its ultimate EOL, therefore maybe it is time to release an Isotope version that only supports Contao 4? |
I can explain it to you, or we can just assume if they work in Isotope they should be correct 🤷♂
yes it is, but it's still a long way to go… |
Can you elaborate on the
What is the status on this one? |
The problem is that we're currently not executing the |
This does not explain why we have to use |
I got an e-mail today that one of my legacy scripts that uses old |
well it does, if you know how it works inside-out 😂
|
That makes sense. 👍 Then I guess we'll wait for @qzminski's investigations and merge this PR afterwards. The unit tests need to be fixed though. 🙈 |
I‘m pretty sure we can‘t fix the unit tests. We might add end-to-end tests for 4.9 🤷♂️ |
Not fixing it is not an option obviously. We at least have to remove the failing tests to fix the CI chain. |
Absolutely, thats what I mean. As this is for 4.4 I would suggest to just remove the tests and then try to add e2e tests when merged into 4.9 |
4f9de55
to
63f8657
Compare
@qzminski found an issue with the Symfony response related to symfony/symfony#35709 Since we are now executing the @qzminski please test this change in your local setup. |
ab5ae32
to
66575d8
Compare
With these changes I get an empty response with custom entry points - though only within certain server environments. For example, the |
@qzminski have you noticed anything like that yet? |
Hm, ok. I'll make a test installation on Hostingwerk, once Contao 4.4.49 is released. |
By the way, shouldn't you use the new DCA picker providers feature instead of this legacy extension? Or is it tied down to some of mine open source extensions? 😅 |
Well, it's an installation that still uses |
Yep exactly, the new picker was introduced in v3.0 of |
Ok thank you, good to know :) |
See #1728 |
Yet another fix for the legacy
initialize.php
In isotope/core#2064 we are modifying the session to store a state. Unfortunately, the session is not stored in our current approach, because that's done inside a
kernel.response
listener.This hacky approach fixes this. It catches all the output of the entry point script, generates a response from it and sends it to the client.
TODO:
HTTP/1.1 xxx
status code headers