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 162244 - Add existing keystore" : implement keystore file correctness check
Summary: Add existing keystore" : implement keystore file correctness check
Status: RESOLVED WONTFIX
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@mobility
URL:
Keywords:
Depends on:
Blocks: 162137
  Show dependency tree
 
Reported: 2009-04-08 16:47 UTC by alex_pst
Modified: 2009-04-17 07:51 UTC (History)
1 user (show)

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 alex_pst 2009-04-08 16:47:16 UTC
User can provide any binary, empty file or broken keystore as existing keystore file in "Add keystore" dialog. And this
keystore will be added to the list, so user can see just locked keystore with "Unlock Keystore" button. But it's
impossible to unlock it and "Keystores Manager" doesn't inform user that this keystore is invalid.
Comment 1 Denis Anisimov 2009-04-17 07:51:47 UTC
Please see description for issue http://www.netbeans.org/issues/show_bug.cgi?id=162693.
There is no way to determine is keystore file is valid/invalid without password.
One cannot try ANY password for checking correctness of keystore file.

If file is really not keystore file ( was not created as keystore ) then you will not be able 
to unlock it. And we cannot inform user about its validity because there is no way to check this.

You can just remove file that you SUGGEST invalid
( because even you cannot affirm that file is not keystore file )