Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2020-04-23 19:542020-04-23 19:55
ReportercaristuView Statuspublic 
Assigned Toplatform 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0043851: Wrong error handling if the donwload of a ProcessUploadedFile process fails

DescriptionIn case an error is thrown while dowloading the result of a ProcessUploadedFile, the error is not being handled properly.
Steps To Reproduce1) 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 ~[classes/:?]
    at org.openbravo.client.application.businesslogic.ProcessUploadedFile.doPost( ~[classes/:?]
    at javax.servlet.http.HttpServlet.service( ~[servlet-api.jar:?]
Proposed SolutionNote 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.
TagsNo tags attached.
Attached Filestxt file icon bpSets.txt [^] (9 bytes) 2020-04-23 19:54 [Show Content]
diff file icon forcedError.diff [^] (884 bytes) 2020-04-23 19:55 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- 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

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker