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
Create case with russian letters in Title or description in TheHive
launch Mailer Responder from case menu
Cortex shows following error for mailer responder
Invalid output
Traceback (most recent call last):
File "Mailer/mailer.py", line 59, in <module>
Mailer().run()
File "Mailer/mailer.py", line 47, in run
msg.attach(MIMEText(description, 'plain'))
File "/usr/lib/python2.7/email/mime/text.py", line 30, in __init__
self.set_payload(_text, _charset)
File "/usr/lib/python2.7/email/message.py", line 226, in set_payload
self.set_charset(charset)
File "/usr/lib/python2.7/email/message.py", line 262, in set_charset
self._payload = self._payload.encode(charset.output_charset)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
Possible Solutions
in mailer.py do encode('utf-8') of title and description
title = self.get_param('data.title', None, 'title is missing')
**title=title.encode('utf-8')**
description = self.get_param('data.description', None, 'description is missing')
**description=description.encode('utf-8')**
Request Type
Bug
Work Environment
Problem Description
Steps to Reproduce
Possible Solutions
in mailer.py do encode('utf-8') of title and description
Thanks to @bsploit for the issue and solution
The text was updated successfully, but these errors were encountered: