This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 193933

Summary: Remote file should not copy entire file in local system.
Product: cnd Reporter: Alexander Simon <alexvsimon>
Component: RemoteAssignee: Alexander Simon <alexvsimon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: 7.0   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Attachments: Thread dump of infinite UI freaze

Description Alexander Simon 2010-12-30 09:01:16 UTC
Created attachment 104618 [details]
Thread dump of infinite UI freaze

Mime resolvers try to read some bytes from remote file to detect file mine type.
Remote file system copy entire file when client getInputStream().
Step to reproduce:
- open remote folder that contains "all_logs" file, file size = 13G
Actual behavior:
- UI freeze.
- there are no possibility to terminate operation except kill IDE
- user file system exhausted
Expected behavior:
- do not copy entire file in case client do not read all file content.
- cache small peace of file on local file system.
Comment 1 Alexander Simon 2011-01-12 15:51:09 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/fae805a4edae

Note 1: Caching of small piece of file on local file system is not implemented.
Comment 2 Quality Engineering 2011-01-13 07:55:42 UTC
Integrated into 'main-golden', will be available in build *201101130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cd0273d92cd6
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #193933 Remote file should not copy entire file in local system.
- add method to partly reading remote file