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.
Keystore name specified in "Add Keystore" dialog should be checked for correctness. It's possible to specify names like “keystore>.ks”, “?keystore.ks”, “key*store.ks”, “key”st”ore.ks”, “keystore.ks”, “<keystore.ks”. Keystore is added to the keystores list, but it is useful. There is IOException in log caused by wrong file name: WARNING [org.openide.filesystems.FileUtil]: getCanonicalFile() on file C:\Documents and Settings\user\key*store.ks failed: java.io.IOException: Invalid argument
Needs to verify resulting keystore file path .
changeset: 126652:817d4dfac6b2 user: Denis Anisimov <ads@netbeans.org> date: Wed Apr 15 12:03:20 2009 +0400 summary: Fix for IZ#162574 - Keystore Name should be checked for correctness
Integrated into 'main-golden', will be available in build *200904151401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/817d4dfac6b2 User: Denis Anisimov <ads@netbeans.org> Log: Fix for IZ#162574 - Keystore Name should be checked for correctness
Verified with NetBeans IDE Dev (Build 200907270201)
The issue is reproduced in NB 6.9.1 Steps to reproduce: - Go to Tools->Keystores - Press Add Keystore - Set “keystore>.ks” as a keystore name The keystore>.ks is added.
The file name validity is checked by file.getCanonicalPath(); Unfortunately some characters pass through even this check and Java does not provide any stronger check.
Assigning to the new owner of javame modules.
http://hg.netbeans.org/jet-main/rev/fbca40e345c9
Integrated into 'main-golden', will be available in build *201304172301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c1208579abc4 User: Roman Svitanic <rsvitanic@netbeans.org> Log: #201484 (an #162574) - The keystore manager should not allow to use special characters in the keystore name