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 - Can create configuration with inadmissible name
Summary: Can create configuration with inadmissible name
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-15 14:28 UTC by dnikitin
Modified: 2007-05-25 19:35 UTC (History)
0 users

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 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.