Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0043078
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformminorhave not tried2020-01-31 10:242022-02-01 08:07
ReporteralostaleView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0043078: don't download files with a POST to a hidden form

DescriptionCurrently 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 [^]
Steps To Reproduce-
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0043029 closedalostale export to csv doesn't timeout 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2020-01-31 10:24 alostale New Issue
2020-01-31 10:24 alostale Assigned To => platform
2020-01-31 10:24 alostale Modules => Core
2020-01-31 10:24 alostale Triggers an Emergency Pack => No
2020-01-31 10:27 alostale Relationship added related to 0043029
2020-01-31 10:27 alostale Status new => acknowledged
2022-02-01 08:07 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker