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 213896 - Can copy a folder into itself!
Summary: Can copy a folder into itself!
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-10 05:54 UTC by qrox
Modified: 2017-05-10 19:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description qrox 2012-06-10 05:54:02 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_30-ea
Runtime = Java HotSpot(TM) Client VM 20.5-b02

When moving a project folder(e.g, 'foo'), to foo/foo, The ide was caught in an endless loop.and when I finally stopped the program, and went to 'foo' to have a look, I saw an infinite loop of 'foo' folders....and when I wanted to delete it, the system told me 'the folder has too long a name and thus cannot be deleted.'
I'd appreciate it if you could fix this bug sometime and more if you could tell me how to get rid of this foo folder...
Comment 1 Tomas Danek 2012-06-11 08:53:53 UTC
Could you please describe step by step what actions do we need to take to try to replicate your problem? E.g. how do you move project folder, using which window etc.
Please add steps to reproduce and reopen, thanks in advance.
Comment 2 Tomas Danek 2012-06-11 09:11:15 UTC
reproduced;

- create project 'foo'
- project popup | Move...
- add "\foo" to the ond of path where to move
Comment 3 Tomas Danek 2012-06-11 11:24:21 UTC
for a deleting such weird folder structure I've googled (and tested) that best is to boot to some Linux system (E.g. Ubuntu on live cd) and delete folder from Windows FS from command line (rf -rf $PATH_TO_FOO_FOLDER)
Comment 4 Jaroslav Tulach 2012-06-11 14:37:34 UTC
(In reply to comment #3)
> for a deleting such weird folder structure I've googled

OK, let's consider this user error fixed. Hopefully there is not going to be too many advantagerous users trying to copy a folder into itself.
Comment 5 qrox 2012-06-12 23:51:42 UTC
Ugh, thanks a lot. I was just trying to move it into the folder and then rename it. I should have renamed it first and then move it.
Comment 6 templedf2 2017-05-10 19:21:12 UTC
I just tested the issue with 8.2 on MacOS X, and I get a similar result.

STEPS:
* Create new project "test" in /Users/daniel
* From project popup, select Move
* Change project location to /Users/daniel/test
* Click Move

EXPECTED:
* Project should now reside at /Users/daniel/test/test

ACTUAL:
$ ls -R ~/test
build.xml
manifest.mf
nbproject
src
test

/Users/daniel/test/nbproject:
build-impl.xml
genfiles.properties
private
project.properties
project.xml

/Users/daniel/test/nbproject/private:
private.properties

/Users/daniel/test/src:

/Users/daniel/test/test:
build.xml
manifest.mf
nbproject
src
test

/Users/daniel/test/test/nbproject:
build-impl.xml
genfiles.properties
private
project.properties
project.xml

/Users/daniel/test/test/nbproject/private:
private.properties

/Users/daniel/test/test/src:

/Users/daniel/test/test/test:
build.xml
manifest.mf
src
test

/Users/daniel/test/test/test/src:

/Users/daniel/test/test/test/test:
build.xml
manifest.mf
src
test

/Users/daniel/test/test/test/test/src:

/Users/daniel/test/test/test/test/test:
build.xml
manifest.mf
src
test

/Users/daniel/test/test/test/test/test/src:

/Users/daniel/test/test/test/test/test/test:
test

/Users/daniel/test/test/test/test/test/test/test:
test

/Users/daniel/test/test/test/test/test/test/test/test:
test

/Users/daniel/test/test/test/test/test/test/test/test/test:
test

/Users/daniel/test/test/test/test/test/test/test/test/test/test:
test

/Users/daniel/test/test/test/test/test/test/test/test/test/test/test:
test

/Users/daniel/test/test/test/test/test/test/test/test/test/test/test/test:
test

/Users/daniel/test/test/test/test/test/test/test/test/test/test/test/test/test:
test

/Users/daniel/test/test/test/test/test/test/test/test/test/test/test/test/test/test:
test

/Users/daniel/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test:
test

/Users/daniel/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test:
test

...

Followed by a dialog that says Netbeans cannot create /Users/daniel/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test/test