[Trunk/7.0] Incorrect base64 encoding for attachments in mass mailing

Bug #1164533 reported by Pedro Manuel Baeza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 1

Bug Description

When you send mass mails using a template with attachments, these are encoded incorrectly in base64 (maybe because they are encoded twice), resulting on corrupted files in the resulting mail.

Steps to reproduce:
----------------------------

 - Install demo database with 'account', 'mail' and 'email_template' modules installed.
 - Go to 'Settings' > 'Emai' > 'Templates' and select 'Invoice - Send by Email' record.
 - Click on "Add context action".
 - Create one partner or change an existing to a controlled email address to receive the mail.
 - Go to 'Account' > 'Customer invoices'.
 - Create one invoice with previous partner.
 - Validate it, click on 'More' button and select 'Send by email (Invoice - ...'
 - In the inbox of the controlled email address you will see the mail with the corrupted file.

Possible solution:
-------------------------

In addon 'email_template', file 'email_template.py', if you comment line 344 ( result = base64.b64encode(result) ), all works as expected.

Related branches

summary: - Incorrect base64 encoding for attachments in mass mailing
+ [Trunk/7.0] Incorrect base64 encoding for attachments in mass mailing
Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Darshan Kalola(OpenERP) (dka-openerp) wrote :

Hello,

         It has been fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1164533-darshan

         Revision number : 8665
         Revision ID: <email address hidden>

Thanks,
darshan

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.