Skip to content

[Mailer][BrevoMailer] BrevoRequestParser handles tags as mandatory parameter #54088

@palgalik

Description

@palgalik

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']))

Screenshot 2024-02-27 at 17 07 48
Screenshot 2024-02-27 at 17 09 23

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions