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 215853 - $ is not allowed in filenames but wicket requires this sometimes
Summary: $ is not allowed in filenames but wicket requires this sometimes
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
: 206639 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-24 07:58 UTC by karamba84
Modified: 2012-11-14 02:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (44.61 KB, application/octet-stream)
2012-11-09 16:22 UTC, karamba84
Details

Note You need to log in before you can comment on or make changes to this bug.
Description karamba84 2012-07-24 07:58:16 UTC
When using apache wicket (eg. the wizard class) and using private inner classes then its neccessary to adress the regarding .html files with $ eg.:

public class MyWiz extends Wizard
{
    private final class Step1 extends WizardStep { ... }
    private final class Step2 extends WizardStep { ... }
...
}

When using this class now (MyWiz) it is neccessary for wicket to find the template for the steps, and these must match:
classname$inner_class.html
in this example: MyWiz$Step1.html

But thats not possible as the IDE complains creating those files. As workaround i use the explorer, create the file, open it in NB and continue, but it would be really nice to create them in the IDE directly.

Reproduce:
1) Open the "New File" wizard and choose any file, does not matter
2) Name the file something$blah
As soon as the $ comes in the name the message "The File Name is not valid" appears and its impossible to continue.

ps.: I guess i have chosen the wrong category. I was not sure where to file this.
Comment 1 Milutin Kristofic 2012-11-08 18:03:10 UTC
I cannot reproduce it on nb7.2 on linux. I can easily created files like t$t or test$ff.html.
Comment 2 karamba84 2012-11-09 06:10:46 UTC
Interesting, me neither on my private machine. But on my private machine i am not able to put # in a filename. I will test this on the workstation where it occured with $.
Please try to create a filename with # in it. This is 100% not working on my machine right now (win7 sp1 x64, netbeans 7.2, jdk7).
Comment 3 Stanislav Aubrecht 2012-11-09 08:22:42 UTC
I have no problems creating e.g. HTML files with $ char in their path.

Product Version: NetBeans IDE 7.2 (Build 201207171143)
Java: 1.6.0_23; Java HotSpot(TM) 64-Bit Server VM 19.0-b09
System: Windows 7 version 6.1 running on amd64; Cp1250; cs_CZ (nb)


Please attach IDE log with error message(s) and reopen, thanks.
Comment 4 karamba84 2012-11-09 08:29:05 UTC
Once again: Please try to make a filename with # in it.
I just tested it with Netbeans 7.3 Beta 2 and its not working when creating a html file with $ in its filename.
Comment 5 Stanislav Aubrecht 2012-11-09 08:45:08 UTC
(In reply to comment #4)
> Once again: Please try to make a filename with # in it.
> I just tested it with Netbeans 7.3 Beta 2 and its not working when creating a
> html file with $ in its filename.

That's working fine for me as well.
Attach either your IDE log or screen shot with error message your getting when creating such a file, then reopen.
Comment 9 karamba84 2012-11-09 08:52:14 UTC
Also ( ) # $ @ and many more are not working.
Comment 10 Stanislav Aubrecht 2012-11-09 09:17:36 UTC
Thanks for the screen shots. I still can't reproduce it.

What project type do you use?
Comment 11 karamba84 2012-11-09 09:19:12 UTC
Tested with:
Java - Java Application
Java Web - Web Application
Maven - Java Application
Maven - Web Application
Comment 12 Stanislav Aubrecht 2012-11-09 09:58:26 UTC
There's something wrong with your setup, please attach the IDE log and reopen, thanks.
Comment 13 karamba84 2012-11-09 10:25:47 UTC
Lol, yes with my setup is something wrong. Of course. This is a clean and fresh install of Win7 and NB7.3b2. Also this happens on each machine i got NB running. I can not attach the messages.log now because it contains sensitive informations (company informations).

Is this "fast close" the new way of fixing bugs? I hope not, otherwise i have to switch the IDE soon.

I guess something is wrong with your installation of NB because you get not this message. 

I will attach a log this evening when i am on my workstation under linux.
Comment 14 Stanislav Aubrecht 2012-11-09 10:34:33 UTC
Attach the log, without it the bug is incomplete and cannot be fixed.
Comment 15 karamba84 2012-11-09 16:22:39 UTC
Created attachment 127496 [details]
messages.log
Comment 16 Stanislav Aubrecht 2012-11-09 16:33:07 UTC
Reporter, do you stored your project files on a USB stick by any chance?
If you do, what kind of file system is on that USB stick?
Comment 17 Stanislav Aubrecht 2012-11-09 18:44:33 UTC
Waiting for response from reporter.
Comment 18 karamba84 2012-11-09 19:20:55 UTC
Once again: its a regular project. No USB, its an SSD. Nothing special. 
Just go to a shop, buy a pc, install win7, install NB and it will fail. 
I can not reproduce this on F17 x64 with NB Dev 201210260001 (but i also have no web support installed on this, its another machine).
The other machines all run Windows. I will test this later on even another machine (running win7 x64)
Comment 19 Stanislav Aubrecht 2012-11-09 19:38:45 UTC
(In reply to comment #18)
> Once again: its a regular project. No USB, its an SSD. Nothing special. 
So what is the file system on that SSD?
Comment 20 karamba84 2012-11-09 19:44:49 UTC
It is windows 7, it is NTFS.
Comment 21 Stanislav Aubrecht 2012-11-09 19:49:34 UTC
(In reply to comment #20)
> It is windows 7, it is NTFS.

Ok, thanks for the info.
So to clarify - your projects files are NOT on any external disk and the file system they are on is NTFS, correct?
Comment 22 karamba84 2012-11-09 22:07:26 UTC
yes. it is win 7 x64. it is all on my local hard drive. all my hard drives under windows are running ntfs. all under linux are running ext4. 

i can reproduce this on my win7 machine at home now too. its running 7.2.1. so i have now at least 5 machines (different hardware profile) with nb which have this problem. 

did you try to recreate the same nb installation i have? all plugins? all that stuff? i just cant believe you can not reproduce it. something is missing.
Comment 23 Stanislav Aubrecht 2012-11-12 10:10:30 UTC
Reassigning to web team for evaluation, I've run out of options this could be caused by:)
Comment 24 David Konecny 2012-11-12 22:31:00 UTC
web-main#c5659b6271b0

Web support customizes some generic files templates (eg. HTML one) and there was a code disallowing # and $ characters in file name or file path. I removed those two from list of disallowed characters.
Comment 25 David Konecny 2012-11-12 22:31:14 UTC
*** Bug 206639 has been marked as a duplicate of this bug. ***
Comment 26 Quality Engineering 2012-11-14 02:43:27 UTC
Integrated into 'main-golden', will be available in build *201211140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c5659b6271b0
User: David Konecny <dkonecny@netbeans.org>
Log: #215853 - $ is not allowed in filenames but wicket requires this sometimes