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 186196 - org.netbeans.modules.keyring.kde.KWalletProvider$KwalletException: error while trying to access KWallet, during save
Summary: org.netbeans.modules.keyring.kde.KWalletProvider$KwalletException: error whil...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
: 186900 (view as bug list)
Depends on:
Blocks: 182976
  Show dependency tree
 
Reported: 2010-05-14 23:52 UTC by tbrunhoff
Modified: 2010-12-29 07:09 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169073


Attachments
stacktrace (2.01 KB, text/plain)
2010-05-14 23:52 UTC, tbrunhoff
Details
stacktrace (2.01 KB, text/plain)
2010-05-28 12:41 UTC, Ondrej Vrabec
Details
message log with kwallet logs (128.73 KB, text/plain)
2010-05-28 13:34 UTC, Ondrej Vrabec
Details
stacktrace (2.52 KB, text/plain)
2010-12-02 07:08 UTC, pragalathan
Details
diff for KWalletProvider (8.19 KB, patch)
2010-12-13 11:37 UTC, Yulia Novozhilova
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2010-05-14 23:52:09 UTC
Build: NetBeans IDE Dev (Build 201005112200)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Linux

User Comments:
artisan: Right after reporting a bug :-)

I guess because I checked "remember password" in the "report problem" dialog.

GUEST: Trying to send an error report.

tbrunhoff: Nothing.

tbrunhoff: Just editing.

tbrunhoff: rearranging windows in the ide.




Stacktrace: 
org.netbeans.modules.keyring.kde.KWalletProvider$KwalletException: error while trying to access KWallet, during save
   at org.netbeans.modules.keyring.kde.KWalletProvider.save(KWalletProvider.java:93)
   at org.netbeans.api.keyring.Keyring.save(Keyring.java:107)
   at org.netbeans.modules.bugzilla.api.NBBugzillaUtils.saveNBPassword(NBBugzillaUtils.java:118)
   at org.netbeans.modules.bugzilla.exceptionreporter.NBBugzillaAccessorImpl.saveNBPassword(NBBugzillaAccessorImpl.java:82)
   at org.netbeans.modules.exceptions.ExceptionsSettings.save(ExceptionsSettings.java:101)
   at org.netbeans.modules.uihandler.Installer$SubmitInteractive$2.run(Installer.java:2007)
Comment 1 tbrunhoff 2010-05-14 23:52:12 UTC
Created attachment 99035 [details]
stacktrace
Comment 2 Exceptions Reporter 2010-05-24 19:35:26 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=169073
Comment 3 Tomas Stupka 2010-05-28 11:12:31 UTC
could, please, anybody who is able to reproduce run netbeans with
-J-Dorg.netbeans.modules.keyring.kde.KWalletProvider.level=-1
and attach the messages.log file?

thanks
Comment 4 Tomas Stupka 2010-05-28 11:24:24 UTC
please not that you password might be listed in the log file when running with the mentioned switch ...
Comment 5 Tomas Stupka 2010-05-28 12:00:16 UTC
almost all reports are from the same user and seem to be related to the call from 

at org.netbeans.modules.bugzilla.api.NBBugzillaUtils.saveNBPassword(NBBugzillaUtils.java:118)
at org.netbeans.modules.bugzilla.exceptionreporter.NBBugzillaAccessorImpl.saveNBPassword(NBBugzillaAccessorImpl.java:82)

unfortunately, it is not obvious what could be the cause. 

org.netbeans.modules.keyring.kde.KWalletProvider.save(KWalletProvider.java:93)
throws the exception in case runCommand() returns -1, but no additional information what went wrong is logged

Please evaluate
Comment 6 Ondrej Vrabec 2010-05-28 12:41:40 UTC
Created attachment 99610 [details]
stacktrace

I submitted a slowness report entered username and password and selected 'Remember password' in the exception reporter. Then clicked on Send.
Comment 7 Ondrej Vrabec 2010-05-28 13:34:26 UTC
Created attachment 99613 [details]
message log with kwallet logs

this might help a bit, i started ide with -J-Dorg.netbeans.modules.keyring.kde.KWalletProvider.level=-1
Comment 8 Ondrej Vrabec 2010-05-28 14:16:25 UTC
*** Bug 186900 has been marked as a duplicate of this bug. ***
Comment 9 mdm42 2010-06-21 14:19:49 UTC
Does anyone have a workaround for this bug? A way to disable the KWallet integration?

It makes NB6.9 completely unusable under KDE since it seems that NB is trying to store all database passwords, etc. in KWallet.

I cannot believe that 6.9 was released with such a bad bug - the KWallet functionality should rather have been disabled.
Comment 10 Jesse Glick 2010-06-21 15:10:41 UTC
I don't maintain the contributed KWallet integration; perhaps a KDE user can fix it. If this bug is severe, adjust the priority according to the published priority guidelines. Add the 6.9.1_CANDIDATE if a reasonably safe fix can be found and made in trunk.

Users: you can always pass -J-Dnetbeans.keyring.no.native=true to use the fallback master password encryption.
Comment 11 akochnev 2010-10-30 11:52:46 UTC
It seems that since the KDE module is not supported at the same level as the rest of the IDE, and as mentioned before the IDE is VERY broken when used under KDE, the KWallet integration should be taken out of the standard distribution (and maybe added as an optional) . A regular user (who happens to use KDE) shouldn't have to dig out the switch to disable the native password store integration in order to have a usable IDE. 

Note that this issue is also present in the 7.x builds as well .
Comment 12 pragalathan 2010-12-02 07:08:53 UTC
Created attachment 103519 [details]
stacktrace

Tried filing a bug. My netbeans account password is stored in KDE wallet. Dont know whether this bug is relevant to Netbeans
Comment 13 Yulia Novozhilova 2010-12-13 11:24:17 UTC
I am able to reproduce this bug in case if I don't enter a password for KDE Wallet in the "KDE Wallet Service"  window. In this case time out happens and KWallet doesn't work via qdbus anymore. I filed a bug to kwalletmanager: https://bugs.kde.org/show_bug.cgi?id=259229

I also corrected KWalletProvider implementation (diff is attached). Now it acting the fallowing way:
- it falls back to master password encryption in case if provider is not chosen yet and time out happenes during first attempt to open KWallet (ex. Help -> Report Issue..)
- it just stops trying to open/save/read KWallet in case if wallet was closed/deleted (from outside of NB) after KWalletProvider had been chosen and time out happened when user tried to open it again via NB.

Comments are welcome. If there is no objection I commit the corrected version in a week.
Comment 14 Yulia Novozhilova 2010-12-13 11:37:15 UTC
Created attachment 104014 [details]
diff for KWalletProvider

This is a patch to fix KWalletProvider. Comments are welcome. Will be
integrated in a week.
Comment 15 Yulia Novozhilova 2010-12-23 16:04:12 UTC
http://hg.netbeans.org/main/rev/da68a140b5e1
Comment 16 Quality Engineering 2010-12-29 07:09:52 UTC
Integrated into 'main-golden', will be available in build *201012290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/da68a140b5e1
User: Yulia Novozhilova <ynov@netbeans.org>
Log: #186196: org.netbeans.modules.keyring.kde.KWalletProvider$KwalletException: error while trying to access KWallet, during save