Skip to content
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

[PropertyAccess][VarExporter] isReadable fails on lazy objects’ non-existent properties #54068

Closed
wants to merge 1 commit into from

Conversation

MatTheCat
Copy link
Contributor

@MatTheCat MatTheCat commented Feb 26, 2024

Q A
Branch? 6.4
Bug fix? we’ll see
New feature? no
Deprecations? no
Issues Fix #51919
License MIT

In the LexikJWTAuthenticationBundle, there is a call to PropertyAccessor::isReadable to access the correct user identifier (see lexik/LexikJWTAuthenticationBundle#1037). The issue is: if the user instance is a lazy object (because it is an entity fetched from a relation e.g.), this call will fail instead of returning false.

Following #51919 (comment), this PR only contains a failing test case for now.

@carsonbot carsonbot added this to the 6.4 milestone Feb 26, 2024
@MatTheCat MatTheCat changed the title [PropertyAccessor] isReadable fails on lazy objects’ non-existent properties [PropertyAccess][VarExporter] isReadable fails on lazy objects’ non-existent properties Feb 26, 2024
@MatTheCat
Copy link
Contributor Author

Will be fixed by #54194 👌

@MatTheCat MatTheCat closed this Mar 7, 2024
@MatTheCat MatTheCat deleted the ticket_51919 branch March 7, 2024 17:29
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.

None yet

2 participants