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

[Serializer][Mime] Fix Mime message serialization #37847

Merged
merged 1 commit into from
Aug 17, 2020

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Aug 16, 2020

Q A
Branch? master
Bug fix? yes
New feature? yes
Deprecations? no
Tickets Fix #37414, Fix #37324
License MIT
Doc PR n/a

Symfony serialization is used by Messenger to serialize Emails. By Email messages are data objects with some logic to prepare emails to be sent. Without configuration, the Symfony Serializer serializes Emails with too many data (and triggers some unneeded validation).

This PR aims to fix the above issue and at the same time makes serialized emails as small as possible and as readable as possible.

@fabpot fabpot requested a review from dunglas as a code owner August 16, 2020 14:16
@fabpot fabpot changed the title Fix Mime message serialization [Serializer][Mime] Fix Mime message serialization Aug 16, 2020
@fabpot fabpot force-pushed the mime-message-serialization branch 4 times, most recently from 36548e6 to 1261d4c Compare August 17, 2020 06:27
@fabpot fabpot merged commit 779303a into symfony:master Aug 17, 2020
@fabpot fabpot deleted the mime-message-serialization branch August 17, 2020 11:58
@wouterj wouterj mentioned this pull request Aug 17, 2020
fabpot added a commit that referenced this pull request Aug 18, 2020
This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[Security] Fixed tests

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

This fixes a test bug introduced by #37844 Next time, I'll open a PR in draft state before I'm sure I didn't break any tests, sorry!

In order to make up for my mistake, I've also fixed another failing test introduced by #37847

Commits
-------

c57b879 Remove MimeMessageNormalizer if the Mime component is not installed
98802e5 Use PUBLIC_ACCESS from AuthenticatedVoter
@fabpot fabpot mentioned this pull request Oct 5, 2020
hultberg pushed a commit to hultberg/symfony that referenced this pull request Sep 17, 2021
…on (fabpot)

This PR was merged into the 5.2-dev branch.

Discussion
----------

[Serializer][Mime] Fix Mime message serialization

| Q             | A
| ------------- | ---
| Branch?       | master <!-- see below -->
| Bug fix?      | yes
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix symfony#37414, Fix symfony#37324 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | n/a

Symfony serialization is used by Messenger to serialize Emails. By Email messages are data objects with some logic to prepare emails to be sent. Without configuration, the Symfony Serializer serializes Emails with too many data (and triggers some unneeded validation).

This PR aims to fix the above issue and at the same time makes serialized emails as small as possible and as readable as possible.

Commits
-------

9d869b1 Fix Mime message serialization
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.

[Mailer] No default sender possible with sf messenger+ sf serializer
2 participants