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 230338 - drag 'n dropping logical folder into itself causes (almost) infinite tree structure
Summary: drag 'n dropping logical folder into itself causes (almost) infinite tree str...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-27 17:27 UTC by Remdul
Modified: 2013-05-29 02:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of bug (12.72 KB, image/png)
2013-05-27 17:27 UTC, Remdul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Remdul 2013-05-27 17:27:26 UTC
Created attachment 134964 [details]
screenshot of bug

I previously requested bug #96308 to be fixed, and was pleased to notice that this feature is now functional in 7.3 . Thanks Alexander Simon!

However there is a fairly serious bug; drag and dropping a folder into itself causes an infinite nested structure (see screenshot, #1). It's "turtles all the way down". Netbeans doesn't immediately crash, however, when Netbeans is restarted and the project is reopened, Netbeans hangs.

I found out that the configurations.xml of my project had exploded to 45MB. When opened in text editor, it shows the recursive nesting of the affected folder (titled "workspace" in my example). See screenshot, #2. It does actually stop at a certain depth (probably due to hardcoded recursion limit) and as such prevented the project xml file from becoming infinitely large and/or fully corrupted (nice example where defensive coding pays off!).

I was able to recover my project file by manually deleting the offending xml code (although I first had to find a text editor that could handle large files!).

Bug & fix should be obvious.

Thanks!
Comment 1 Alexander Simon 2013-05-28 07:27:05 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/a909886af933
Comment 2 Quality Engineering 2013-05-29 02:04:15 UTC
Integrated into 'main-golden', will be available in build *201305282301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a909886af933
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #230338 drag 'n dropping logical folder into itself causes (almost) infinite tree structure