{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/14931","labels_url":"https://api.github.com/repos/symfony/symfony/issues/14931/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/14931/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/14931/events","html_url":"https://github.com/symfony/symfony/pull/14931","id":86878538,"number":14931,"title":"[Security] Initialize SwitchUserEvent::targetUser on attemptExitUser","user":{"login":"Rvanlaak","id":2707563,"avatar_url":"https://avatars.githubusercontent.com/u/2707563?v=3","gravatar_id":"","url":"https://api.github.com/users/Rvanlaak","html_url":"https://github.com/Rvanlaak","followers_url":"https://api.github.com/users/Rvanlaak/followers","following_url":"https://api.github.com/users/Rvanlaak/following{/other_user}","gists_url":"https://api.github.com/users/Rvanlaak/gists{/gist_id}","starred_url":"https://api.github.com/users/Rvanlaak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rvanlaak/subscriptions","organizations_url":"https://api.github.com/users/Rvanlaak/orgs","repos_url":"https://api.github.com/users/Rvanlaak/repos","events_url":"https://api.github.com/users/Rvanlaak/events{/privacy}","received_events_url":"https://api.github.com/users/Rvanlaak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Security","name":"Security","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-10T07:49:33Z","updated_at":"2015-06-26T15:09:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/14931","html_url":"https://github.com/symfony/symfony/pull/14931","diff_url":"https://github.com/symfony/symfony/pull/14931.diff","patch_url":"https://github.com/symfony/symfony/pull/14931.patch"},"body":"The `SwitchUserEvent` is triggered in case an account is switched. This works okay while switching to the user, but on exit the `SwitchUserEvent` is triggered again with the original User. That User was not initialized by the provider yet.\r\n\r\n| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | \r\n| License       | MIT\r\n| Doc PR        | "},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/115721988","html_url":"https://github.com/symfony/symfony/pull/14931#issuecomment-115721988","issue_url":"https://api.github.com/repos/symfony/symfony/issues/14931","id":115721988,"user":{"login":"xabbuh","id":1957048,"avatar_url":"https://avatars.githubusercontent.com/u/1957048?v=3","gravatar_id":"","url":"https://api.github.com/users/xabbuh","html_url":"https://github.com/xabbuh","followers_url":"https://api.github.com/users/xabbuh/followers","following_url":"https://api.github.com/users/xabbuh/following{/other_user}","gists_url":"https://api.github.com/users/xabbuh/gists{/gist_id}","starred_url":"https://api.github.com/users/xabbuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabbuh/subscriptions","organizations_url":"https://api.github.com/users/xabbuh/orgs","repos_url":"https://api.github.com/users/xabbuh/repos","events_url":"https://api.github.com/users/xabbuh/events{/privacy}","received_events_url":"https://api.github.com/users/xabbuh/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T15:09:32Z","updated_at":"2015-06-26T15:09:32Z","body":"@Rvanlaak Looks good, but can you add a test to avoid future regressions?"}}