Skip to content

[Serializer] Fix denormalizing XML array with empty body (5.x) #43204

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 29, 2021

Conversation

alexandre-daubois
Copy link
Member

@alexandre-daubois alexandre-daubois commented Sep 27, 2021

This happens for example with XML empty tags denormalizing to an object array attribute.

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #43193 on Symfony 5.x
License MIT
Doc PR NA

Fix for 4.4 can be found in #43205

@carsonbot carsonbot added this to the 5.3 milestone Sep 27, 2021
@alexandre-daubois alexandre-daubois changed the title [Serializer] Fix denormalizing of array with empty body [Serializer] Fix denormalizing of array with empty body (5.x) Sep 27, 2021
@alexandre-daubois alexandre-daubois changed the title [Serializer] Fix denormalizing of array with empty body (5.x) [Serializer] Fix denormalizing XML array with empty body (5.x) Sep 28, 2021
@carsonbot
Copy link

Hey!

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

Cheers!

Carsonbot

@dunglas dunglas requested a review from lyrixx September 28, 2021 18:56
dunglas
dunglas previously approved these changes Sep 28, 2021
Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexandre-daubois alexandre-daubois force-pushed the fix/xml-empty-array branch 2 times, most recently from 6470a7a to 44c7114 Compare September 28, 2021 19:47
This happens for example with XML empty tags denormalizing to an object array attribute.
fabpot added a commit that referenced this pull request Sep 29, 2021
…4.4) (alexandre-daubois)

This PR was merged into the 4.4 branch.

Discussion
----------

[Serializer] Fix denormalizing XML array with empty body (4.4)

This happens for example with XML empty tags denormalizing to an object array attribute.

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #43193 on Symfony 4.4
| License       | MIT
| Doc PR        | _NA_

Not sure how to deal with versions differences as they differ just a little bit. Anyway, here's the fix for 4.4 and you can find the fix for 5.x on #43204 😄

Commits
-------

d6b7e2d [Serializer] Fix denormalizing of array with empty body
@fabpot
Copy link
Member

fabpot commented Sep 29, 2021

Thank you @alexandre-daubois.

@fabpot fabpot merged commit 500ffa2 into symfony:5.3 Sep 29, 2021
@alexandre-daubois alexandre-daubois deleted the fix/xml-empty-array branch September 29, 2021 06:50
@fabpot fabpot mentioned this pull request Oct 29, 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