Skip to content

[Serializer] Throw NotNormalizableValueException when type is not known or not in body in discriminator map #43004

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
Sep 21, 2021

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Sep 13, 2021

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

I found another case where the API could leak internal and throw 500
when a user submit invalid values

Note: I have to tweak a bit an exception message

@nicolas-grekas nicolas-grekas added this to the 5.4 milestone Sep 13, 2021
@carsonbot
Copy link

Hey!

I think @mkrauser has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@lyrixx lyrixx requested a review from fabpot September 15, 2021 13:27
@fabpot
Copy link
Member

fabpot commented Sep 21, 2021

Thank you @lyrixx.

@fabpot fabpot merged commit 75a52d0 into symfony:5.4 Sep 21, 2021
@lyrixx lyrixx deleted the seria-discr branch September 21, 2021 15:37
This was referenced Nov 5, 2021
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.

5 participants