Opened 12 years ago
Closed 12 years ago
#271 closed defect (fixed)
Fix for problem with filenames on native language (Russian)
Reported by: | slevin@… | Owned by: | bas |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | email2trac | Version: | 2.4.0 |
Keywords: | filenames russian | Cc: |
Description
Strange situation, #247 "to be continied" In attachments log-file of email2trac v.2.4.0(from svn). We're get offten errors on our trac in production mode. Files with short names on russian are stay problem for email2trac.
Attachments (1)
Change History (4)
Changed 12 years ago by slevin@…
comment:1 Changed 12 years ago by slevin@…
and my config:
[DEFAULT] project: /var/lib/trac/admin default_componnet: general default_resolution: new trac_version: 0.12 quote_attachment_filenames: 1 debug: 99 umask: 022 spam_level: 5 reply_all : 0 mailto_link: 0 umask: 022 email_header: 0 enable_syslog : 0 alternate_notify_template : alternate_notify_template_update : ticket_update: 1 reply_all : 1 strip_signature: 1 drop_spam : 1 drop_alternative_html_version: 1 verbatim_format: 0 email_quote: > strip_quotes: 1 ignore_trac_user_settings: 1 black_list: MAILER-DAEMON@ inline_properties: 1 log_level: DEBUG log_type: file log_file: /var/log/em2tr/email2trac.log [email2trac] debug: 1 [ticket] default_resolution = new [admin] project: /var/lib/trac/admin default_componnet: general [admin-tst] project: /var/lib/trac/admin-tst default_componnet: general [core] project: /var/lib/trac/core default_component: "core components" [fin] project: /var/lib/trac/fin default_component: general [legal] project: /var/lib/trac/Legal default_component: general [perl] project: /var/lib/trac/soloway default_component: .Global [mngcgi] project: /var/lib/trac/mngcgi default_component: .Global [support] project: /var/lib/trac/support default_component: general
and several trac descriptions was skiped.
comment:2 Changed 12 years ago by bas
- Status changed from new to assigned
Thanks for the report. For a quick fix you can disable debug.
What i read from your log:
2011-09-09 13:37:46,123 email2trac integration: function debug_attachments 2011-09-09 13:37:46,123 email2trac integration: part1: filename: Ауди Центр Таганка.xls 2011-09-09 13:37:46,123 email2trac integration: writing part1 (/tmp/Ауди Центр Таганка.xls.att_email2trac) 2011-09-09 13:37:46,124 email2trac integration: Traceback (most recent call last): 2011-09-09 13:37:46,124 email2trac integration: File "/usr/bin/email2trac", line 2598, in <module> tktparser.parse(sys.stdin) 2011-09-09 13:37:46,124 email2trac integration: File "/usr/bin/email2trac", line 1611, in parse self.save_email_for_debug(m, self.parameters.project_name, True) 2011-09-09 13:37:46,124 email2trac integration: File "/usr/bin/email2trac", line 507, in save_email_for_debug self.debug_attachments(message_parts) 2011-09-09 13:37:46,124 email2trac integration: File "/usr/bin/email2trac", line 466, in debug_attachments fx = open(part_file, 'wb') 2011-09-09 13:37:46,124 email2trac integration: UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-8: ordinal not in range(128)
if i run the newest function i get:
2011-09-12 15:03:08,581 email2trac test_bas: function debug_attachments 2011-09-12 15:03:08,581 email2trac test_bas: part0: Content-Type: application/msword 2011-09-12 15:03:08,581 email2trac test_bas: writing /tmp/tmphYSI21.test_bas.email2trac.part1.doc: filename: Проверка русских имен файлов номер дваЧтобы %D.doc
Do you run a own patched version? I missing a few debug lines and most important it looks like some arguments are swapped. I would expected instead of part1 it would be /tmp/<unique>.<project_name>.email2trac.part1.xls and not something with:
- /tmp/Ауди Центр Таганка.xls.att_email2trac (that code is old)
Fuher you can leave out these settings:
- trac_version: 0.12
- quote_attachment_filenames: 1
comment:3 Changed 12 years ago by bas
- Resolution set to fixed
- Status changed from assigned to closed
will close it. Did not hear anything and suspect usage of old software
Log of email2trac with errors on files with short name on russian.