muk-it / muk_web

MuK Odoo Web Modules
GNU Lesser General Public License v3.0
109 stars 232 forks source link

Preview MSOffice - Odoo 11: "Missing PDF" (415 error code, all dependences satisfied, manual conversion works) #49

Closed DesarrolloWIL closed 5 years ago

DesarrolloWIL commented 5 years ago

Hello developers!

I have not been able to correctly operate the Preview MSOffice module for doc/docx or ptt/pttx files in any Odoo 11 installation (all in Debian 9 stretch, both native installation and through Docker). I use the latest version of the module.

When I try to preview a document with those extensions, I see an error in the previewer, indicating the version of PDF.js and "Missing PDF" with the URL Odoo was trying to load.

muk preview msoffice error

Also, if I open directly in the browser the URL obtained by the previewer, I get the following error:

"415 Unsupported Media Type The server does not support the media type transmitted in the request. "

When I try to manually convert a file of the mentioned extensions through unoconv, it works correctly. As if I use the conversion/export module of MUK, it also works well to convert to PDF, therefore, it does not seem a technical problem of the conversion to PDF as such, because it works in one way or another. The problem seems to be with the URL of the PDF document received for preview.

Has anyone had this problem and been able to solve it? Is it a problem with the Preview MSOffice module driver?

Thanks in advance.

DesarrolloWIL commented 5 years ago

Problem solved: URL changed with SSL certificate (https, not http). Changed value in Odoo parameters. All works like a charm.

Thanks also.

kopeyev commented 5 years ago

Problem solved: URL changed with SSL certificate (https, not http). Changed value in Odoo parameters. All works like a charm.

Thanks also.

Could You say, where exactly You have changed that value in code?

DesarrolloWIL commented 5 years ago

Problem solved: URL changed with SSL certificate (https, not http). Changed value in Odoo parameters. All works like a charm. Thanks also.

Could You say, where exactly You have changed that value in code?

Of course:

Regards