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 167754

Summary: rename JSP fails
Product: javaee Reporter: lallafa <lallafa>
Component: Web ProjectAssignee: Martin Janicek <mjanicek>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: malfunction84, mehdi.oudjida
Priority: P4    
Version: 6.x   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description lallafa 2009-06-28 19:19:34 UTC
Renaming a JSP fails if the new name contains "[..]". Message "object cannot be renamed from index to index[alt]"

How to reproduce: create a new Java Web Application. Rename the index.jsp to index[alt].jsp
Comment 1 fhopf 2009-06-29 10:24:18 UTC
Same happens for renaming a JSP to a filename that contains '-'
Comment 2 mehdi.oudjida 2010-01-14 08:45:02 UTC
It doesn't work for me too. On Mac OS X, version 6.8 and 6.7.1
I'v got also the problem with "_" character
Comment 3 David Konecny 2010-01-14 16:34:12 UTC
I understand the frustration with this problem but it is not P1 problem - it is not crashing your IDE nor corrupting your data and you can workaround it by renaming file outside of IDE.
Comment 4 malfunction84 2010-07-19 16:52:27 UTC
(In reply to comment #1)
> Same happens for renaming a JSP to a filename that contains '-'

I've experienced something similar on Windows.
Comment 5 mehdi.oudjida 2010-07-20 07:27:00 UTC
Yes,It seems to be a general problem. Following the status of the bug, it is not corrected on 6.9 version.
I use SVN for the versionning, and the workaround is not very nice. For the moment we try to not rename JSP. Netbeans is better than Eclipse for the moment...I hope it will not take the same way than Eclipse or Firefox these last years.
Comment 6 Martin Janicek 2013-12-17 13:37:52 UTC
Works for me just fine using latest daily build [1]. I guess it was fixed during the development in some other product/component area. Closing the ticket

[1] http://bits.netbeans.org/dev/nightly/
Comment 7 malfunction84 2013-12-17 16:16:35 UTC
Working for me on Windows in NetBeans 7.4.