Bug 20714

Summary: UpdateManagerUtils.copyToLocal() not closing output stream
Product: [Eclipse Project] Platform Reporter: Vlad Klicnik <klicnik>
Component: Update (deprecated - use Eclipse>Equinox>p2)Assignee: Christophe Elek <celek>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0.2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
Status when reconciler 'does its job' none

Description Vlad Klicnik CLA 2002-06-20 09:34:21 EDT
If an exception is thrown in the transfer loop, the localContentReferenceStream 
will not be closed. Need a try/catch.

[was not changed at this time because is not stop-ship]
Comment 1 Christophe Elek CLA 2002-09-27 09:42:18 EDT
Replaced by following code


try {
 Utilities.copy(sourceContentReferenceStream,localContentReferenceStream,monitor);
} finally {
 try {
  localContentReferenceStream.close();
 } catch (IOException e){}
}
Comment 2 Christophe Elek CLA 2002-10-02 15:12:50 EDT
Created attachment 2092 [details]
Status when reconciler 'does its job'