[Bug 805855] New: osc does not use KWallet using KDE
https://bugzilla.novell.com/show_bug.cgi?id=805855 https://bugzilla.novell.com/show_bug.cgi?id=805855#c0 Summary: osc does not use KWallet using KDE Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: nico.kruber@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0 I'm on KDE and have keyring support enabled for osc. Both gnome-keyring and kwallet are installed and seem to be running. From what I understand from https://bitbucket.org/kang/python-keyring-lib the keyring lib should choose the most appropriate keyring implementation itself, however, it seems to choose the gnome-keyring which hits this bug https://bitbucket.org/kang/python-keyring-lib/issue/65/dbusexception-method-... and consequently fails to get my password (which is stored in kwallet anyway) adding a call to keyring.core.init_backend() before line 804 of conf.py https://github.com/openSUSE/osc/blob/e2dc1d7fe655d61654d0c442704320fa3e5688e... seems to fix this (keyring then uses my kwallet and retrieves my password). However, this method should have been called already during the keyring import if I understand it correctly - see /usr/lib/python2.7/site-packages/keyring/core.py adding this call directly after the line loading the module however does not seem to be sufficient Reproducible: Always Steps to Reproduce: 1. boot into KDE 2. store osc password in kwallet 3. get into an osc checkout and use "osc up" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=805855
https://bugzilla.novell.com/show_bug.cgi?id=805855#c1
Nico Kruber
https://bugzilla.novell.com/show_bug.cgi?id=805855
https://bugzilla.novell.com/show_bug.cgi?id=805855#c
FeiXiang Zhang
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c2
Ákos Szőts
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c3
--- Comment #3 from Marcus Hüwe
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c4
--- Comment #4 from Ákos Szőts
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c5
--- Comment #5 from Marcus Hüwe
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c6
--- Comment #6 from Ákos Szőts
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c7
--- Comment #7 from Marcus Hüwe
It's in python-keyring-5.3-2.2.noarch.
Interesting - the python-keyring from Tumbleweed doesn't ship this file. Can you create the file /home/<username>/.local/share/python_keyring/keyringrc.cfg with the following content: [backend] default-keyring = keyring.backends.kwallet.DBusKeyring and try it again? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c8
--- Comment #8 from Ákos Szőts
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c9
--- Comment #9 from Marcus Hüwe
It doesn't matter if KWalletManager is opened/closed, the program doesn't ask for permission.
It probably uses the cookie. Remove ~/.osc_cookiejar as well. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c10
--- Comment #10 from Ákos Szőts
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c11
--- Comment #11 from Marcus Hüwe
Thank you, it helped.
That is, it is working now?:) If not, can please remove the ~/.oscrc file as well? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c12
--- Comment #12 from Ákos Szőts
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c13
--- Comment #13 from Marcus Hüwe
No, unfortunately it still writes the password to the .oscrc file.
After deleting it and the cookiejar as well, osc asked for my password again, but it went again to the .oscrc (without any KWallatManager permission dialogues).
Hmm this is strange. What's the output of python -c 'import keyring; keyring.core.load_config()' -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c14
--- Comment #14 from Ákos Szőts
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c15
--- Comment #15 from Marcus Hüwe
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c16
--- Comment #16 from Ákos Szőts
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c17
--- Comment #17 from Marcus Hüwe
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c18
--- Comment #18 from Ákos Szőts
http://bugzilla.novell.com/show_bug.cgi?id=805855
http://bugzilla.novell.com/show_bug.cgi?id=805855#c19
Marcus Hüwe
python -c 'import keyring.backends.kwallet.Keyring' returns with: Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named Keyring
However, „python -c 'import keyring.backends.kwallet'” returns with nothing and a zero exit status (although I don't know if it's useful).
Yep, a zero exit status is good:) (the import worked and, hence, osc will use the keyring.backends.kwallet.Keyring class)
It seems it works perfectly. Thank you very much for your help!
Great. Then I'll close this bug. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com