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 77989

Summary: Can create configuration with inadmissible name
Product: cnd Reporter: dnikitin <dnikitin>
Component: -- Other --Assignee: Thomas Preisler <thp>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description dnikitin 2006-06-15 14:28:33 UTC
Can create configuration with inadmissible name - "." or ".."

If I rename active configuration to "." or ".." and Clean Project we get the
following error message:

Running "make -f Makefile CONF=.. clean" in /home/<user>/tmp/Welcome

make -f nbproject/Makefile-...mk SUBPROJECTS= .clean-conf
make[1]: Entering directory `/home/<user>/tmp/Welcome'
rm -f -r build/..
rm: cannot remove `.' or `..'
make[1]: *** [.clean-conf] Error 1
make[1]: Leaving directory `/home/<user>/tmp/Welcome'
make: *** [.clean-impl] Error 2

Clean failed. Exit value 2.
------------------------------------------

"." and ".." are inadmissible names for configuration.
The user should not have an opportunity to create a configuration of the project
with such names
Comment 1 Thomas Preisler 2006-06-15 15:46:45 UTC
There is code that tries to validate the name but it obviously it needs
improvement. Will fix. 
Comment 2 Thomas Preisler 2006-06-15 18:37:44 UTC
fixed.