48109c15d319ae69a8fcdd4a6c3b19172a2de6d9
Some mail clients set a wrong content-type for PDF attachments, they set `binary/octet-stream` which doesn't exist[^1]. Odoo would crash with a traceback in case it tried to extract the content of such malformed attachment because Python doesn't know how to decode such content-types. Looking at the actual content of the emails we received, we would had expected the content-type to be `application/octet-stream` instead. It is fair to assume that the mail client software is buggy or poorly configured and that it assumes that `application/octet-stream` and `binary/octet-stream` represent the same thing. Following Postel's Law[^2], it is better to still handle those malformed emails, assuming the content-type is `application/octet-stream`. opw-3030113 opw-2716507 [^1]: https://www.rfc-editor.org/rfc/rfc2046#section-3 [^2]: https://en.wikipedia.org/wiki/Robustness_principle closes odoo/odoo#107317 X-original-commit: e6169325b968711a0a28444818b34aa1932a6bae Signed-off-by: Julien Castiaux <juc@odoo.com> Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Co-authored-by: Julien Castiaux <juc@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%