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 197205 - Win32Protect.encrypt throws NTE_BAD_KEY_STATE -> repeated prompts to clear keyring
Summary: Win32Protect.encrypt throws NTE_BAD_KEY_STATE -> repeated prompts to clear ke...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 188127 (view as bug list)
Depends on:
Blocks: 183618
  Show dependency tree
 
Reported: 2011-03-29 17:12 UTC by Jesse Glick
Modified: 2011-05-05 17:46 UTC (History)
2 users (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 Jesse Glick 2011-03-29 17:12:35 UTC
jskrivanek encountered a condition under which Win32Protect consistently fails to call CryptProtectData due to use of a remote login. In this case, FallbackProvider nonetheless repeatedly prompts to delete stored passwords (see bug #183618) so long as you click OK - even though there are no stored passwords! - only falling back to master password encryption when you click Cancel. You ought not be prompted at all in this case - should skip directly to the fallback provider.

No idea how common this issue is and whether it merits a P2 classification.
Comment 1 Jesse Glick 2011-03-29 17:14:20 UTC
core-main #13229827d559
Comment 2 Quality Engineering 2011-03-30 08:43:11 UTC
Integrated into 'main-golden', will be available in build *201103300400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/13229827d559
User: Jesse Glick <jglick@netbeans.org>
Log: #197205: Win32Protect.encrypt throws NTE_BAD_KEY_STATE -> repeated prompts to clear keyring
Comment 3 Jiri Skrivanek 2011-03-30 08:46:34 UTC
Thank you, offending dialog never appears after the fix.
Comment 4 Jesse Glick 2011-03-30 14:34:08 UTC
That is what I expected; I am more worried about whether it still *does* appear when it is supposed to, e.g. after a change of login credentials that leave the IDE unable to decrypt previously stored passwords but able to start anew. Unfortunately this kind of scenario is not easy to test.
Comment 5 Jesse Glick 2011-05-05 17:46:28 UTC
*** Bug 188127 has been marked as a duplicate of this bug. ***