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

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2015-03-17 15:162015-06-01 09:05
ReportershuehnerView Statuspublic 
Assigned Tocaristu 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionac68a43ce656
ProjectionnoneETAnoneTarget Version3.0PR15Q3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0029318: pdf tmp-files creating during renderJR & stored in attach.path are never deleted

DescriptionDuring renderJR the output file created (i.e. pdf) is saved into attach.path/<jrxml-filename>.jrxml-UUID.extension
Code in question is method saveReport.

Then later it is offered for download to the browser.

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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on feature request 0029566 closedcaristu Upgrade Jasper Libraries 
has duplicate defect 00299943.0PR15Q3 closedcaristu pdf tmp-files creating during renderJR & stored in attach.path are never deleted 

-  Notes
caristu (developer)
2015-05-25 12:44

Issue solved with the Upgrade Jasper Library project: [^]
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: [^]

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] [^]
[2] [^]

- 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
Powered by Mantis Bugtracker