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 56931 - MasterFS doesn't re-read the type of created files
Summary: MasterFS doesn't re-read the type of created files
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 87582 90670 101570 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-24 13:38 UTC by Andrei Badea
Modified: 2010-04-28 05:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test which proves the described behavior (2.14 KB, text/plain)
2005-03-24 13:38 UTC, Andrei Badea
Details
Almost there, just one existing test fails (9.07 KB, text/x-diff)
2010-04-26 15:50 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Badea 2005-03-24 13:38:07 UTC
When a folder for which a FileObject exists is externally deleted and a file
with the same name is created, MasterFS doesn't re-read the file type (although
refresh is called on the parent FileObject). When a FileObject is obtained for
the new file, its isData() returns false. I will attach a test.
Comment 1 Andrei Badea 2005-03-24 13:38:48 UTC
Created attachment 21099 [details]
Test which proves the described behavior
Comment 2 rmatous 2005-03-30 10:09:19 UTC
Keeping instance of FolderObj, deleteting it and recreating it as a plain file
fails (The same for FileObj and recreating it as folder). 

Thanks for test.
Comment 3 rmatous 2006-12-07 08:21:58 UTC
*** Issue 90670 has been marked as a duplicate of this issue. ***
Comment 4 rmatous 2007-07-17 16:21:56 UTC
*** Issue 101570 has been marked as a duplicate of this issue. ***
Comment 5 Antonin Nebuzelsky 2008-04-15 17:02:15 UTC
Reassigning to new module owner jskrivanek.
Comment 6 Jiri Skrivanek 2008-10-13 09:49:50 UTC
*** Issue 87582 has been marked as a duplicate of this issue. ***
Comment 7 Jaroslav Tulach 2010-04-05 17:10:23 UTC
It is really broken. I want to do something with it for 6.9. If I fail, I'll downgrade again. Thanks for the test. Btw. refreshing the FileObject itself directly does not help either, which I consider really bad.
Comment 8 Jaroslav Tulach 2010-04-26 15:50:43 UTC
Created attachment 98061 [details]
Almost there, just one existing test fails
Comment 9 Jaroslav Tulach 2010-04-26 18:05:45 UTC
core-main#ec02f8e817b8
Comment 10 Quality Engineering 2010-04-28 05:10:20 UTC
Integrated into 'main-golden', will be available in build *201004280200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: