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 32930 - Host Filesystem incorrectly reports created/removed files
Summary: Host Filesystem incorrectly reports created/removed files
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Other Linux
: P1 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks: 32285 32290
  Show dependency tree
 
Reported: 2003-04-16 00:55 UTC by Svata Dedic
Modified: 2008-12-22 18:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Attempted patch (2.58 KB, patch)
2003-04-16 00:56 UTC, Svata Dedic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2003-04-16 00:55:23 UTC
Events fired to fileDataCreated or fileFolderCreated from the affected file's 
parent folder carry incorrect information in their "file" property. Instead of 
the newborn or removed file, the parent folder is reported. 
 
Attaching an attempted hack/patch that seems to solve the issue.
Comment 1 Svata Dedic 2003-04-16 00:56:11 UTC
Created attachment 9964 [details]
Attempted patch
Comment 2 Svata Dedic 2003-04-16 00:57:33 UTC
It blocks me somewhat from providing reimplementation of Packages 
node. 
Comment 3 rmatous 2003-04-16 18:48:53 UTC
Thanks Svata for patch. At first glance it looks OK. I think I'll
apply it tomorrow.
Comment 4 Svata Dedic 2003-04-16 19:12:02 UTC
Radku, sorry, but I have to commit it today; without the patch, tomorrow's 
testing of projects will fail. Please rollback if there's some bug (although I 
encountered none in last 2 days). 
Comment 5 Svata Dedic 2003-04-16 19:45:20 UTC
Applied. I apologize, but cached information about packages do not 
refresh correctly when an incorrect event arrives -> newly created files do 
not appear :-( 
Fixed in trunk: 
Checking in src/org/netbeans/modules/localfs/HostFileObject.java; 
/cvs/core/localfs/src/org/netbeans/modules/localfs/HostFileObject.java,v  
<--  HostFileObject.java 
new revision: 1.17; previous revision: 1.16 
done 
Checking in src/org/netbeans/modules/localfs/HostFileSystem.java; 
/cvs/core/localfs/src/org/netbeans/modules/localfs/HostFileSystem.java,v  
<--  HostFileSystem.java 
new revision: 1.20; previous revision: 1.19 
done 
 
Comment 6 Marian Mirilovic 2004-02-24 14:59:24 UTC
closed