Bug 21598 - FileContentStore.retrieveRevisionContent() shouldn't lock the file that causes file not being deleted in removeRevisionContent()
Summary: FileContentStore.retrieveRevisionContent() shouldn't lock the file that cause...
Status: NEW
Alias: None
Product: Slide
Classification: Unclassified
Component: Stores (show other bugs)
Version: 1.0.16 Stable
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: Slide Developer List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-15 04:32 UTC by Willie Vu
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
A patch for the bug. (1.37 KB, patch)
2003-07-15 04:35 UTC, Willie Vu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Willie Vu 2003-07-15 04:32:12 UTC
In FileContentStore.retrieveRevisionContent(), a FileInputStream is open that
causes the file to be locked.  This input stream is then set in
NodeRevisionContent that is returned to ContentHelper's caller.  If the caller
does not read and close the input stream and the caller tries to remove this
object node, the physical file will not be deleted.
Comment 1 Willie Vu 2003-07-15 04:35:30 UTC
Created attachment 7299 [details]
A patch for the bug.