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 41382 - Disappearing project nodes in the explorer.
Summary: Disappearing project nodes in the explorer.
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: David Konecny
Keywords: RELNOTE
Depends on:
Reported: 2004-03-25 22:49 UTC by randahl
Modified: 2008-12-23 13:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

bugfix diff for potential inclusion in NB36 (4.44 KB, patch)
2004-03-31 13:50 UTC, David Konecny
Details | Diff
binary patch (107.19 KB, application/octet-stream)
2004-03-31 13:55 UTC, David Konecny

Note You need to log in before you can comment on or make changes to this bug.
Description randahl 2004-03-25 22:49:07 UTC
In the explorer it is possible to drag a project
node and drop it on itself, thereby making it
disappear. Then if you add the project node again
(using the file systems tab) it shows up
containing itself. Additionally this makes the
search in files function fail: If you try to
search for files containing a certain text
NetBeans will go into an infinite loop because the
node now contains itself.

I took the liberty of filing this as a P1, because
anyone who use the project tab can very easily
loose project nodes if they accidentally move the
mouse a little while clicking a node. For me, and
several other users, that meant that we thought
the whole system was unstable since our project
nodes disappeared randomly.

If you ask me, this is a MUST FIX for the final

Thank you for a great product!

Comment 1 Jesse Glick 2004-03-30 11:42:32 UTC
Marking fixed for D just because no such thing can happen in D; still
open from the perspective of 3.6 because of the version and target
milestone fields.
Comment 2 Jan Chalupa 2004-03-30 14:48:17 UTC
It seems to be a problem with data systems (DataShadow?). The node
representing the link should never enable the Paste action on itself,
nor any of its children. I still think there is an issue in the data
systems that needs to be fixed. Reopening.
Comment 3 David Konecny 2004-03-31 13:49:16 UTC
Fixed in trunk:
Checking in src/org/openide/loaders/
new revision: 1.21; previous revision: 1.20
Checking in src/org/openide/loaders/
new revision: 1.9; previous revision: 1.8
Comment 4 David Konecny 2004-03-31 13:50:43 UTC
Created attachment 14224 [details]
bugfix diff for potential inclusion in NB36
Comment 5 David Konecny 2004-03-31 13:52:56 UTC
Fix is simple, but needs to be properly tested if we want to include
in in NB36 and there is still time for it.
Comment 6 David Konecny 2004-03-31 13:55:54 UTC
Created attachment 14225 [details]
binary patch
Comment 7 David Konecny 2004-03-31 13:56:47 UTC
Binary patch attached. I did not have time to test it, but storing it
to  lib/patches should solve the problem.
Comment 8 David Konecny 2004-04-07 17:29:02 UTC
Should be well tested, but fix seems to be safe.
Comment 9 Patrick Keegan 2004-04-08 18:04:21 UTC
proposed relnote (please check  since I can't reproduce it, so I'm not
sure if I'm describing it correctly):

"Description: In the Project window, it is possible to accidentally
drag and drop a node into itself and thus make the node disappear."

Any possible workarounds?
Comment 10 David Konecny 2004-04-09 09:52:27 UTC
How to reproduce:
* start IDE with new userdir
* in Project tab right click Project Default node and choose Add
Existing and choose for example "examples" folder from sampledir
* now drag "examples" and paste it onto itself - it will disappear

Workaround for node disappaerance is to re-add "examples" folder to
project again and delete the link you created. Otherwise Find action
on project can get into infinite loop. So, re-add examples to your
Project Default node and expand it - you will see that it contains the
link to "example" and that one must be deleted.
Comment 11 Patrick Keegan 2004-04-09 10:42:13 UTC
OK. I reproduced it (I don't know why I couldn't yesterday).

relnote text:

"Description: In the Project window, it is possible to accidentally
drag and drop a folder node into itself and thus make the node
disappear. After re-adding the folder, a subfolder with the same name
appears within the folder. If you do a search on the folder, the
search will get caught in an infinite loop.

Workaround: Add the folder back by right clicking the Project node and
 choosing Add Existing. Then expand the re-added folder and delete the
subfolder that has the same name as the folder.
Comment 12 David Konecny 2004-04-09 10:56:58 UTC
Sounds OK to me.