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 27815 - mount of a new filesystem causes removal/addition of all existing filesystems
Summary: mount of a new filesystem causes removal/addition of all existing filesystems
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords: RANDOM
: 27743 27760 (view as bug list)
Depends on: 25661
Blocks:
  Show dependency tree
 
Reported: 2002-10-04 09:46 UTC by David Konecny
Modified: 2008-12-22 22:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
requested logfile (30.90 KB, text/plain)
2002-10-10 15:34 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2002-10-04 09:46:26 UTC
We discovered this problem during work on new
projects. It is easily reproducible on our
projects prototype
(<http://projects.netbeans.org/proposals/prototype/index.html>).
Start it and expand all nodes of Sample Project,
then switch to filesystem tab and mount any new
filesystem. All existing filesystems will be
removed first and then added. This causes a lot of
troubles.

The problem is not 100% reproducible, but recently
it is happing (if Sample Project nodes were
expanded first) almost often.

If you are Sun employee (my appologize to non-Sun
people) you can download build of the prototype
from 
<http://dkonecny-sun.czech:8080/BuildResults?days=1&branch=prj40_prototype>
Comment 1 David Konecny 2002-10-04 09:54:40 UTC
*** Issue 27760 has been marked as a duplicate of this issue. ***
Comment 2 David Konecny 2002-10-04 09:58:32 UTC
*** Issue 27743 has been marked as a duplicate of this issue. ***
Comment 3 rmatous 2002-10-04 10:40:56 UTC
Repository.addFileSystem is transparent enough and probably can`t
cause such behaviour. This symptom used to be problem of AutomountSupport.
Comment 4 David Strupl 2002-10-10 15:08:20 UTC
David, can you please reproduce the problem with logging enabled by
-Dorg.netbeans.core.AutomountSupport=-1
and attach the output? Thanks for your help.
Comment 5 David Konecny 2002-10-10 15:34:14 UTC
Created attachment 7637 [details]
requested logfile
Comment 6 David Strupl 2002-10-11 13:39:02 UTC
The problem is in file:
core/ui/src/org/netbeans/core/ui/UIUtils.java
in method allRoots(...). This method returns new objects for each
invocation. But if the folder "Mount" is refreshed (e.g. by adding new
filesystem) the method allRoots is called again and returns array of
different objects.

I am reassigning to Radek since he told me that he plans to
reimplement the functionality differently.
Comment 7 David Konecny 2002-10-11 15:18:09 UTC
Thanx for evaluating the problem. I would like to ask just why the
priority was decreased? For projects it is very serious problem
because it causes armful of exceptions. It simply breaks everything. I
filed it intentially as P2 to get it fixed relatively soon. Please
provide your reasoning or increase priority to P2. Thanx.
Comment 8 rmatous 2002-10-11 15:54:18 UTC
Because this functionality will be completely reimplemented in
DelegatingFileSystem. So, to fix it now seems to us as a waste of a
time. But be free to increase priority, if you feel this as a problem. 
Comment 9 David Konecny 2002-10-14 09:02:19 UTC
DelegatingFileSystem is issue 25661, right? Yes, if this will be
completely rewritten in near future then it make sense to postpone
this fix. I will make this issue dependant on issue 25661 and once
25661 gets implemented this one can be close as WONTFIX. If there will
be some complications in issue 25661 we would have to return to this
one and fix it. Thanx for explanation.
Comment 10 Marian Mirilovic 2003-02-19 16:26:34 UTC
David, 
issue 25661 is already fixed, can you try your described scenario
again ? If no problem arises, close this as WONTFIX, thanks in
advance.
Comment 11 David Konecny 2003-02-20 09:19:13 UTC
OK, I'm closing this issue. The DelegatingFS should be used and so
this problem should not occur. For the moment I'm ignoring filesystems
like FTPFS.
Comment 12 David Konecny 2003-07-08 15:44:40 UTC
.