Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0] Failure to export to XLSX/CSV #94110

Open
dieg0-a opened this issue Jun 20, 2022 · 1 comment
Open

[15.0] Failure to export to XLSX/CSV #94110

dieg0-a opened this issue Jun 20, 2022 · 1 comment

Comments

@dieg0-a
Copy link

dieg0-a commented Jun 20, 2022

Impacted versions: v15 (at least from 05/13/22 to 06/20/22 nightly releases)

Steps to reproduce: Try to export product data, so far trying to export other data also results in an error

Current behavior: The frontend displays the following error message:

TypeError: invalid parameter format
    at Object.parse (http://localhost:8069/web/assets/99-c254acb/web.assets_common.min.js:4547:45)
    at XMLHttpRequest.xhr.onload (http://localhost:8069/web/assets/99-c254acb/web.assets_common.min.js:4678:241)

Expected behavior: File save dialog should pop up

Video/Screenshot link (optional):

Support ticket number submitted via odoo.com/help (optional):

Observations: Based on my research a string containing (product.template) is passed to contentDisposition.parse() and that results in PARAM_REGEXP not matching up to the end of the string, instead it stops as soon as it finds a "(", which results in an exception as per:

[addons/web/static/src/legacy/js/libs/content-disposition.js]

if (index !== -1 && index !== string.length) {
--
215 | throw new TypeError('invalid parameter format')

Removing this check works around the problem but the resulting file name appears to be missing something at the end, ie:
Product template_.xlsx

It doesn't look like the backend is catching any errors as there are no error or warning messages in the server log.

@dieg0-a dieg0-a changed the title Failure to export to XLSL/CSV in v15.0 [15.0] Failure to export to XLSL/CSV Jun 20, 2022
@dieg0-a dieg0-a changed the title [15.0] Failure to export to XLSL/CSV [15.0] Failure to export to XLSX/CSV Jun 20, 2022
@mschulz-asphericon
Copy link

We had the same issue right now on an on-premise server. We have found that the problem was caused by a wrong version of the python module "Werkzeug", which was too new. The problem of the error message above was that the filename was not created correctly, in a way, that the brackets were not escaped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants