[trunk] outlook and openerp-outlook-plugin.zip

Bug #666482 reported by Claude Petit
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

The outlook addon reads a file named "openerp-outlook-plugin.zip" from "addons_path" configuration setting. But this setting can have multiple paths, separated by a comma. In this case, the function "default_get" crashes the server.

/addons/outlook/installer.py

Line 36:

- file = open(config['addons_path'] + "/outlook/plugin/openerp-outlook-plugin.zip", 'r')
- data['plugin_file'] = base64.encodestring(file.read())
+ paths = config['addons_path'].split(',')
+ for path in paths:
+ filename = path + "/outlook/plugin/openerp-outlook-plugin.zip"
+ if os.path.isfile(filename):
+ data['plugin_file'] = base64.encodestring(open(filename, 'r').read())

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Thanks for the report, this is perfectly correct, and should have been resolved by now in the context of bug 666714 (marking as duplicate)

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.