Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0029318 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2015-03-17 15:16 | 2015-06-01 09:05 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | ac68a43ce656 | ||||
Projection | none | ETA | none | Target Version | 3.0PR15Q3 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0029318: pdf tmp-files creating during renderJR & stored in attach.path are never deleted | |||||||
Description | During renderJR the output file created (i.e. pdf) is saved into attach.path/<jrxml-filename>.jrxml-UUID.extension Code in question is HttpSecureAppServlet.java method saveReport. Then later it is offered for download to the browser. However: a.) Those tmp files are never deleted and the space used can grow a lot over size (seen up to 11GB in practice in quite short time) b.) attach.path is not really best location for tmp files | |||||||
Steps To Reproduce | - | |||||||
Proposed Solution | - Delete those files after usage (i.e. check new code of process param report project) - Maybe mark files as to be auto-deleted. But careful unclear if feasible see notes about mem usage problem with high number of items marked as auto-delete + infrequent tomcat restarts | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0077707) caristu (developer) 2015-05-25 12:44 |
Issue solved with the Upgrade Jasper Library project: https://issues.openbravo.com/view.php?id=29566 [^] |
(0077901) caristu (developer) 2015-05-29 15:18 edited on: 2015-06-08 12:06 |
There were two different flows where the reports were not being deleted: 1) Using renderJR of the HttpSecureAppServlet. The reports that extends this class open a pop-up window to show the loading icon while the report is being executed. Once this pop-up is closed the DownloadReport servlet is invoked to delete the file. With the normal flow, it is verified that the reports are always deleted. But there is a flow where the reports are not deleted. This is reported as design defect: https://issues.openbravo.com/view.php?id=29976 [^] 2) Using the PrintController class (print Shipments, Orders, Invoices, Payments). The temporary files were not deleted after attaching or sending the documents by email. This is fixed in the following changesets: [1]https://code.openbravo.com/erp/devel/pi/rev/13d27d8950e6 [^] [2]https://code.openbravo.com/erp/devel/pi/rev/70d08d47878a [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2015-03-17 15:16 | shuehner | New Issue | |
2015-03-17 15:16 | shuehner | Assigned To | => platform |
2015-03-17 15:16 | shuehner | Modules | => Core |
2015-03-17 15:16 | shuehner | Triggers an Emergency Pack | => No |
2015-05-06 16:47 | alostale | Relationship added | depends on 0029566 |
2015-05-06 16:48 | alostale | Priority | normal => urgent |
2015-05-06 16:48 | alostale | Status | new => acknowledged |
2015-05-06 16:48 | alostale | Target Version | => 3.0PR15Q3 |
2015-05-25 12:42 | caristu | Assigned To | platform => caristu |
2015-05-25 12:42 | caristu | Status | acknowledged => scheduled |
2015-05-25 12:43 | caristu | Status | scheduled => resolved |
2015-05-25 12:43 | caristu | Fixed in SCM revision | => ac68a43ce656 |
2015-05-25 12:43 | caristu | Resolution | open => fixed |
2015-05-25 12:43 | caristu | Issue Monitored: networkb | |
2015-05-25 12:44 | caristu | Note Added: 0077707 | |
2015-05-29 08:39 | caristu | Relationship replaced | has duplicate 0029994 |
2015-05-29 15:18 | caristu | Note Added: 0077901 | |
2015-05-29 15:18 | caristu | Note Edited: 0077901 | View Revisions |
2015-06-01 08:51 | caristu | Note Edited: 0077901 | View Revisions |
2015-06-01 09:05 | caristu | Review Assigned To | => caristu |
2015-06-01 09:05 | caristu | Status | resolved => closed |
2015-06-08 12:06 | caristu | Note Edited: 0077901 | View Revisions |
Copyright © 2000 - 2009 MantisBT Group |