Skip to content
Commit f35bee8f authored by Eduardo Navarro's avatar Eduardo Navarro
Browse files

[webui] Fix encodings exception in event mailer



When creating a mail with a diff between two packages, this diff can be
encoded in a different encoding as UTF-8. In this case, mixing this `diff`
field in the view used by the mailer with other fields like `description`
of the request that are in UTF-8 results in throwing this exception:
"incompatible character encodings".

Making sure that the `diff` field is converted to UTF-8 in the view used by the
mailer prevents this exception to occur.

Test added for this case.

Fixes #3415.

Co-authored-by: default avatarAna María Martínez Gómez <ammartinez@suse.de>
Co-authored-by: default avatarDavid Kang <dkang@suse.com>
Co-authored-by: default avatarMoisés Déniz Alemán <mdeniz@suse.com>
parent b9bd72ac
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment