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

Skip to content

[3.1][HttpKernel] Fix RequestDataCollector starting the session #18954

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
Jun 3, 2016

Conversation

romainneutron
Copy link
Contributor

Q A
Branch? 3.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #18951
License MIT

The RequestDataCollector starts a non-started session on kernel response. This produces bug #18951
I'm not sure if this is the right fix, let's discuss it.

@stof
Copy link
Member

stof commented Jun 2, 2016

👍

@Tobion
Copy link
Contributor

Tobion commented Jun 2, 2016

In the collect method session access, e.g. $request->getSession()->set('sf_redirect' must also be prevented when the session is not started already.

In general, it looks good to me then. It means redirection detection won't work if session are not already used.

Related to #6036

@nicolas-grekas
Copy link
Member

👍

@romainneutron romainneutron force-pushed the fix-session-start-by-collector branch from 0747e6b to ab62dcf Compare June 3, 2016 08:33
@romainneutron
Copy link
Contributor Author

@fabpot
Copy link
Member

fabpot commented Jun 3, 2016

Thank you @romainneutron.

@fabpot fabpot merged commit ab62dcf into symfony:3.1 Jun 3, 2016
fabpot added a commit that referenced this pull request Jun 3, 2016
…ssion (romainneutron)

This PR was merged into the 3.1 branch.

Discussion
----------

[3.1][HttpKernel] Fix RequestDataCollector starting the session

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18951
| License       | MIT

The RequestDataCollector starts a non-started session on kernel response. This produces bug #18951
I'm not sure if this is the right fix, let's discuss it.

Commits
-------

ab62dcf [HttpKernel] Fix RequestDataCollector starting the session
@HeahDude
Copy link
Contributor

HeahDude commented Jun 3, 2016

Thanks for that PR!

@romainneutron romainneutron deleted the fix-session-start-by-collector branch June 3, 2016 09:02
@fabpot fabpot mentioned this pull request Jun 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants