Skip to content

Conversation

@X-Coder264
Copy link
Contributor

@X-Coder264 X-Coder264 commented Aug 25, 2023

Q A
Branch? 6.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #47991
License MIT
Doc PR -

#48156 fixed #47991 while introducing a big breaking change (the File lazy load feature is broken and that was the whole point of that class when it was introduced in #47462 as that feature existed even prior to that PR) on a minor Symfony version (updating from 6.1 to 6.2 broke our application). More context can be found here: #48156 (comment)

This PR aims to revert back the attachFromPath behavior to what it was before #48156 while still fixing the deserialization issue reported in #47991

The first commit fixes the serialization logic to work the same way it had worked on both 5.4 and 6.1 (which means we are reverting #48156), while the second commit fixes the deserialization issue reported in #47991.

I've also added tests to prevent serialization/deserialization regressions in the future.

@fabpot
Copy link
Member

fabpot commented Sep 29, 2023

Thank you @X-Coder264.

@fabpot fabpot force-pushed the fix-email-serialization-issues branch from c9408c1 to 32836b9 Compare September 29, 2023 06:59
@fabpot fabpot merged commit 6f20a87 into symfony:6.3 Sep 29, 2023
@fabpot fabpot mentioned this pull request Sep 30, 2023
@X-Coder264 X-Coder264 deleted the fix-email-serialization-issues branch September 30, 2023 13:31
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.

3 participants