You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…s (palgalik)
This PR was merged into the 6.4 branch.
Discussion
----------
[Mailer] [Brevo] Remove tags from mandatory event arguments
'tags' in not mandatory part of an event
therefore it got removed from the validation process
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix [54088](#54088)
| License | MIT
Commits
-------
dfb41cd [Mailer][Brevo] Remove tags from mandatory event arguments
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected
7.0.3
Description
BrevoRequesstParser handles 'tags' as a mandatory parameter, when it's not.
https://github.com/symfony/brevo-mailer/blob/7.0/Webhook/BrevoRequestParser.php#L52C1-L53C1
Brevo's documentation doesn't clarify, but 'tags' aren't mandatory parts of the request.
https://developers.brevo.com/docs/transactional-webhooks#sent
How to reproduce
!isset($content['tags'])
)Also if you send any emails without adding some TagHeader to the email, all related webhook event will be rejected for the same reason.
Possible Solution
Remove
!isset($content['tags'])
condition fromdoParse
method inSymfony\Component\Mailer\Bridge\Brevo\Webhook\BrevoRequestParser
Additional Context
No response
The text was updated successfully, but these errors were encountered: