Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0043851 | Openbravo ERP | A. Platform | public | 2020-04-23 19:54 | 2022-02-01 07:24 |
Reporter | caristu | ||||
Assigned To | Triage Platform Base | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0043851: Wrong error handling if the donwload of a ProcessUploadedFile process fails | ||||
Description | In case an error is thrown while dowloading the result of a ProcessUploadedFile, the error is not being handled properly. | ||||
Steps To Reproduce | 1) Apply the attached patch which forces an error while dowloading a file with a ProcessUploadedFile 2) Go to the "Business Partner Set" window 3) Click in the "upload file" toolbar button and upload the attached file (bpSets.txt) 4) Note that after our forced error is thrown, it is not being managed properly. The following stack trace is raised in the log: org.openbravo.base.exception.OBException: Error uploading file JSONObject["viewID"] not found. at org.openbravo.client.application.businesslogic.ProcessUploadedFile.post(ProcessUploadedFile.java:98) ~[classes/:?] at org.openbravo.client.application.businesslogic.ProcessUploadedFile.doPost(ProcessUploadedFile.java:65) ~[classes/:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) ~[servlet-api.jar:?] .... | ||||
Proposed Solution | Note that the ProcessUploadedFile already has a mechanism to handle the error and display it in the toolbar. The problem is that the viewID is not being sent in the request to download the resulting file. Adding the viewID in the request fixes the problem. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | bpSets.txt (9) 2020-04-23 19:54 https://issues.openbravo.com/file_download.php?file_id=14373&type=bug forcedError.diff (884) 2020-04-23 19:55 https://issues.openbravo.com/file_download.php?file_id=14374&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-04-23 19:54 | caristu | New Issue | |||
2020-04-23 19:54 | caristu | Assigned To | => platform | ||
2020-04-23 19:54 | caristu | File Added: bpSets.txt | |||
2020-04-23 19:54 | caristu | Modules | => Core | ||
2020-04-23 19:54 | caristu | Triggers an Emergency Pack | => No | ||
2020-04-23 19:55 | caristu | File Added: forcedError.diff | |||
2022-02-01 07:24 | alostale | Assigned To | platform => Triage Platform Base |
There are no notes attached to this issue. |