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 34055 - Forward slashes should be escaped in File Open dialog
Summary: Forward slashes should be escaped in File Open dialog
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Open File (show other bugs)
Version: 3.x
Hardware: Other OS/2
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2003-05-30 16:11 UTC by _ gtzabari
Modified: 2011-06-09 09:51 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 _ gtzabari 2003-05-30 16:11:09 UTC
dev build 200305300100

If I type "d:\home\scp\lib\*" in the file-open
dialog, I get a PatternParseException because we
forget to escape \ into \\ before passing it onto
the RegEx engine. I think the problem is the "*"
because you only seem to fail to escape the
slashes when I use a "*" in my path.
Comment 1 Jiri Rechtacek 2003-06-02 14:41:57 UTC
reassigned to utilities/openfile component
Comment 2 Marian Petras 2003-06-13 12:39:53 UTC
First, you probably meant "Backward slashes should be escaped in File
Open dialog," didn't you?

Parsing of filename patterns is implemented in JDK's class
javax.swing.plaf.basic.BasicFileChooserUI.GlobFilter (you can see its
source code - it is bundled with JDK in file "src.zip"). I looked at
the class' source code in JDK 1.4.1_02 and JDK 1.4.2 beta. While JDK
1.4.1 does not escape backward slashes, JDK 1.4.2 does.

I suggest you try to run NetBeans with JDK 1.4.2 (beta) and post the
result to this bug report.
Comment 3 Marian Petras 2003-07-02 09:16:22 UTC
Gili, now that final version of JDK 1.4.2 is available, could you
please check whether the File Open dialog works as expected?
Comment 4 _ gtzabari 2003-07-03 15:17:54 UTC
Marian,

JDK 1.4.2 works as expected under Win2k but I can't yet verify under
OS/2 because our JDK port will only be ready later on this month.

If, however, this issue is not OS/2 specific (someone else has seen it
under Windows before), feel free to close it as FIXED.

Thanks,
Gili
Comment 5 Marian Petras 2003-07-30 10:15:30 UTC
Gili, nobody else have either reported the same issue or added a
comment to this one. Since JDK 1.4.2 for OS/2 should be released soon
(according to your last comment), I will wait for your report.
Comment 6 _ gtzabari 2003-07-30 12:34:12 UTC
Ok, this issue is fixed in JDK 1.4.1_03. Closing.
Comment 7 Marian Mirilovic 2011-06-09 09:51:10 UTC
v/c