Opened 13 years ago
Closed 13 years ago
#184 closed defect (fixed)
Deadlock with "UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6'"
Reported by: | hju@… | Owned by: | bas |
---|---|---|---|
Priority: | blocker | Milestone: | |
Component: | email2trac | Version: | 1.2.0 |
Keywords: | Cc: |
Description
The Ticket is created and the attachments are added as "none", "none-1".
The screenshots are embedded in the ticket as image either.
At the bottom of the description, the Attachments are listet with their former names
Attachments:
so far so good. But execution crashes! (and the ticket is created again and again calling run_email2trac)
our getmail
2010-03-11 13:56:05 Delivery error (command run_email2trac 24820 error (1, Traceback (most recent call last): File "/usr/local/bin/email2trac", line 1772, in <module> tktparser.save_email_for_debug(m, True) File "/usr/local/bin/email2trac", line 578, in save_email_for_debug self.debug_attachments(message_parts) File "/usr/local/bin/email2trac", line 544, in debug_attachments print 'TD: writing part%d (%s)' % (n,part_file) UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 26: ordinal not in range(128)))
syslog:
Mar 11 13:56:05 stock email2trac: Traceback (most recent call last): Mar 11 13:56:05 stock email2trac: File "/usr/local/bin/email2trac", line 1754, in <module>#012 tktparser.parse(sys.stdin) Mar 11 13:56:05 stock email2trac: File "/usr/local/bin/email2trac", line 1109, in parse#012 self.new_ticket(m, subject, spam_msg) Mar 11 13:56:05 stock email2trac: File "/usr/local/bin/email2trac", line 938, in new_ticket#012 error_with_attachments = self.attachments(message_parts) Mar 11 13:56:05 stock email2trac: File "/usr/local/bin/email2trac", line 1534, in attachments#012 path, fd = util.create_unique_file(os.path.join(self.TMPDIR, filename)) Mar 11 13:56:05 stock email2trac: File "/usr/lib/python2.5/site-packages/trac/util/__init__.py", line 227, in create_unique_file#012 return path, os.fdopen(os.open(path, flags, 0666), 'w') Mar 11 13:56:05 stock email2trac: UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 7: ordinal not in range(128)
version is 1.2.0
Attachments (0)
Change History (7)
comment:1 Changed 13 years ago by bas
- Status changed from new to assigned
comment:2 Changed 13 years ago by bas
- Version set to 1.2.0
comment:3 Changed 13 years ago by hju@…
sorry, but
debug: 0
in email2trac.conf
I was surprised too to see the first error-log indicating to debug_attachments
comment:5 Changed 13 years ago by basv@…
If there is an error with the mail it will always save the original email. That is independent of debug setting. Regards
comment:6 Changed 13 years ago by hju@…
Hi bas,
will this be fixed soon? Since debug
[...] is not yet unicode proof ;-(
this will end in trouble...
comment:6 Changed 13 years ago by bas
comment:7 Changed 13 years ago by bas
- Resolution set to fixed
- Status changed from assigned to closed
is fixed in release 1.3.X
You enabled debug in email2trac,conf. If yes then this is not yet unicode proof ;-(. If debug is on you must have the orignal message in /tmp. Can you mail it as attachment to me or attach it to this ticket? So i can test it