Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0043851 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2020-04-23 19:54 | 2022-02-01 07:24 | |||||||
Reporter | caristu | View Status | public | |||||||||
Assigned To | Triage Platform Base | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Any | Database | Any | Java version | ||||||||
OS Version | Database version | Ant version | ||||||||||
Product Version | SCM revision | |||||||||||
Review Assigned To | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
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. | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | bpSets.txt [^] (9 bytes) 2020-04-23 19:54 [Show Content]
forcedError.diff [^] (884 bytes) 2020-04-23 19:55 [Show Content] | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
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 |
Copyright © 2000 - 2009 MantisBT Group |