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.
This bug was originally marked as duplicate of bug 221550, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201508100002) VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-ea-b25 OS: Mac OS X User Comments: ytn01: 1. Renamed a Java Web Project via IDE 2. Invoked "move project" through project context menu 3. provided a destination path that includes special character "\abcd" exception was thrown Stacktrace: java.lang.IllegalArgumentException: NetBeansProjects\abcd at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createFolderImpl(FolderObj.java:240) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$2.call(FolderObj.java:324) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$2.call(FolderObj.java:322) at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.runAsInconsistent(FileBasedFileSystem.java:122) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createFolder(FolderObj.java:327) at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation.createFolder(DefaultProjectOperationsImplementation.java:640)
Created attachment 155303 [details] stacktrace
Did the path with the special character already exist on your filesystem (and you selected it via Browse... button), or did you enter new Project Location manually? Thank you.
(In reply to Jaroslav Havlin from comment #2) > Did the path with the special character already exist on your filesystem > (and you selected it via Browse... button), or did you enter new Project > Location manually? > Thank you. I entered the path manually.
NetBeans currently does not support folders with backslashes (which is mainly because of portability of projects to other platforms, I suppose). Although it is fine to have folder name with backslash character on Mac OS X, creating a folder with such name in NetBeans is forbidden. What behavior would you expect? - 1) warning message that an invalid character was used in the path - 2) using the character as is (which is inconsistent with rest of NetBeans IDE) - 3) changing backslashes to forward slashes (if not on Windows) ... something else Thank you.
> NetBeansProjects\abcd I guess that the intention was to create folder "abcd" under "NetBeansProjects". So automatic conversion of (back)slash characters, depending on current platform, would be preferable for you?
(In reply to Jaroslav Havlin from comment #5) > > NetBeansProjects\abcd > I guess that the intention was to create folder "abcd" under > "NetBeansProjects". > So automatic conversion of (back)slash characters, depending on current > platform, would be preferable for you? I think showing a warning label to user that the input entered is invalid would be just fine. (in a similar manner as the warning we see when entering a project with a name that is already taken by another project in same directory; this shows a small warning label in red that a directory or a project with such name already exists under the specified directory)
Created attachment 156999 [details] Proposed Patch
Attached patch contains a fix for module Project UI API.
jarda thanks patch seems ok, feel free to integrate
(In reply to Tomas Stupka from comment #9) > patch seems ok, feel free to integrate Thank you, Tomas. Integrated as http://hg.netbeans.org/core-main/rev/2e99ceb955d9. > I think showing a warning label to user that the input entered is > invalid would be just fine. Thank you for reporting, ytn01.
Integrated into 'main-silver', will be available in build *201510300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2e99ceb955d9 User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #254320: IllegalArgumentException: NetBeansProjects\abcd