Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0043078Openbravo ERPA. Platformpublic2020-01-31 10:242022-02-01 08:07
alostale 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0043078: don't download files with a POST to a hidden form
Currently backoffice downloads (ie. csv export, pdf reports, etc...) are implemented as a POST request through a hidden form see (OB.Utilities.postThroughHiddenForm).

This has some incovenients:
* Can't handle errors properly: if the request fails, the error cannot be intercepted
* Because of that reason, PDF export requires 2 requests: 1 to generate the report and check if it failed, another one to perform the actual download

We should reimplement this piece to perform an ajax fetch and handling properly the response.

See:
https://gitlab.com/openbravo/product/openbravo/snippets/1934905 [^]
https://developer.mozilla.org/en-US/docs/Web/API/Streams_API/Using_readable_streams [^]
-
No tags attached.
related to defect 0043029 closed alostale export to csv doesn't timeout 
Issue History
2020-01-31 10:24alostaleNew Issue
2020-01-31 10:24alostaleAssigned To => platform
2020-01-31 10:24alostaleModules => Core
2020-01-31 10:24alostaleTriggers an Emergency Pack => No
2020-01-31 10:27alostaleRelationship addedrelated to 0043029
2020-01-31 10:27alostaleStatusnew => acknowledged
2022-02-01 08:07alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.