- **status**: in-progress --> review - **Comment**: Fix on db/8148
Adding unicode into the automated tests didn't catch this; best to test manually: * add an attachment with a non-ascii filename to a discussion or anywhere * go to Admin > Export and export with attachments * watch allura log file to ensure no errors * zip file should be good (at location specified by `bulk_export_path`in .ini) --- ** [tickets:#8148] Error exporting with certain attachments** **Status:** review **Milestone:** unreleased **Labels:** bitesize **Created:** Tue Mar 07, 2017 03:40 PM UTC by Dave Brondsema **Last Updated:** Mon Mar 27, 2017 07:33 PM UTC **Owner:** Dave Brondsema Ran into this error. Looks like attachment paths need some unicode handling ~~~ 04:10:28,132 ERROR [taskd:allura.tasks.export_tasks.bulk_export:58b8eca6bcf63a2f70b65a8e:allura.tasks.export_tasks] Error exporting: discussion on openemr Traceback (most recent call last): File "/var/local/allura/Allura/allura/tasks/export_tasks.py", line 107, in export app.bulk_export(f, export_path, with_attachments) File "/var/local/allura/ForgeDiscussion/forgediscussion/forum_main.py", line 244, in bulk_export self.export_attachments(forum.threads, export_path) File "/var/local/allura/ForgeDiscussion/forgediscussion/forum_main.py", line 262, in export_attachments self.save_attachments(post_path, post.attachments) File "/var/local/allura/Allura/allura/app.py", line 777, in save_attachments with open(attachment_path, 'w') as fl: UnicodeEncodeError: 'ascii' codec can't encode characters in position 132-133: ordinal not in range(128) ~~~ --- Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.