Closed
Description
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
- setup webhook url in your Brevo settings
- click on "test" button
- the webhook API will reject all test requests with 406 (it's fails on the part
!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 from doParse
method in Symfony\Component\Mailer\Bridge\Brevo\Webhook\BrevoRequestParser
Additional Context
No response