Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Remove deprecated User from serialized test fixture #41385

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
May 23, 2021

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented May 23, 2021

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

SwitchUserTokenTest tests if a token serialized with Symfony 4.4 can still be unserialized. The serialized fixture however used the now-deprecated Symfony\Component\Security\Core\User\User. This PR replaces that class with a new custom user class, which should make the test more resilient.

@derrabus derrabus requested review from chalasr and wouterj as code owners May 23, 2021 13:46
@carsonbot carsonbot added this to the 5.3 milestone May 23, 2021
@derrabus derrabus changed the title Remove deprecated User from serialized test fixture Remove deprecated User from serialized test fixture May 23, 2021
@chalasr
Copy link
Member

chalasr commented May 23, 2021

Oh... I was pretty sure that this fixture was already upgraded in a PR of mine on 5.3 but actually, the upgraded fixture ended up in the wrong directory (1 level up): https://github.com/symfony/symfony/blob/5.3/src/Symfony/Component/Security/Core/Tests/Authentication/Token/switch-user-token-4.4.txt
Can you please remove this unused file?

@derrabus derrabus force-pushed the bugfix/switch-user-token branch from 3f3544b to ba2ae4e Compare May 23, 2021 16:27
@nicolas-grekas
Copy link
Member

Thank you @derrabus.

@nicolas-grekas nicolas-grekas merged commit 27fef51 into symfony:5.3 May 23, 2021
@derrabus derrabus deleted the bugfix/switch-user-token branch May 23, 2021 16:28
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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.