-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WebProfilerBundle] Redirects are not detected #24730
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
Is not related to configuration? |
@kejwmen, no. Profiler should show |
This feature would only work if you have the session enabled as you can see in the |
Maybe you don't have the session started (anymore?) since @nicolas-grekas' updates. Not sure how we can have this feature working without session tbh... |
The session was not enabled in the With framework:
session:
handler_id: ~ Everything works as expected on 3.4 beta-2. My fault. But with flex you have to be much more attentive not to forget to enable things. |
Yea... this worries me a little bit actually... are there any other spots where not having the session enabled might silently cause some weird issues? |
@weaverryan same. I've proposed this PR to fix the issue: #24774 |
…oze) This PR was squashed before being merged into the 3.4 branch (closes #24774). Discussion ---------- [HttpKernel] Let the storage manage the session starts | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24730 | License | MIT | Doc PR | ø HttpKernel's request collector should not really care if the session has started or not, be let the storage decide. Without the session, it is not possible to track the redirected pages. I don't think the consideration of "we should not start the session if not needed by the user's code" applies here as if this is running, that is very likely that the user is running the dev environment anyway. Commits ------- 95d0b72 [HttpKernel] Let the storage manage the session starts
…n (sroze) This PR was merged into the 3.4 branch. Discussion ---------- [HttpKernel] Uses cookies to track the requests redirection | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25698 | License | MIT | Doc PR | ø In order to track the redirections across requests, we need to have some state. So far, we've been using the session but some users have complained about it (#24774, #24730). The idea is that we don't actually need the session, we can use cookies. It's a tradeoff: using a cookie would mean that both the redirection and the target page will not be cachable (because of the Set-Cookie to set the sf_redirect and the one to clear it). As it's only on dev, it seems fair to say that having no cache (because of `Set-Cookie`s) is a better side effect than starting the session. Commits ------- 83f2579 Uses cookies to track the requests redirection
The text was updated successfully, but these errors were encountered: