Bug 74639 - cannot get kwallet to fill out any forms
Summary: cannot get kwallet to fill out any forms
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml forms (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 74721 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-08 23:03 UTC by Paul Hoepfner-Homme
Modified: 2004-11-06 15:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Hoepfner-Homme 2004-02-08 23:03:23 UTC
Version:           1.0 (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.3.2 gcc (GCC) 3.3.2 20040108 (Gentoo Linux 3.3.2-r6, propolice-3.3-7)
OS:          Linux

I recently upgraded to KDE 3.2 and got KDE Wallet set up properly. I've granted Konqueror and KDE Wallet Manager access to the wallet and have saved several passwords into the wallet by submitting various login forms on the web. But when I come back to a form prompting me for a username and password which I have previously entered into the wallet, the form is never automatically filled out. And I've tried all sorts of things to get the form to be filled out automatically, and nothing works. I type in the username and a drop-down box appears with previous usernames (usually just one), and I choose the right one, and the password field remains blank. KDE Wallet Manager is always loaded. Also, have the "Enable completion of forms" option in Konqueror enabled.

How am I supposed to make use of KDE Wallet? Are users expected to open the wallet, find the site requiring the password in the "maps" list, click "show values", then copy and paste the values from KDE Wallet Manager into Konqueror? That would be ridiculous. I assume forms are supposed to get filled out automatically, but for the life of my I can't figure out how to get it to do that!

I've tried many things - changing the options in KDE Wallet Manager, restarting it, restarting Konqueror... Nothing works.

Also, whenever I go to a form where I have previously entered the username/password and stored them in the wallet, I get prompted by Konqueror EVERY TIME whether I'd like to store the username/password into KDE Wallet. And EVERY TIME I click "Yes". And it never fills out the password for me the next time I visit the site.
Comment 1 George Staikos 2004-02-09 00:24:57 UTC
Well considering that I used the wallet to log into bugzilla to reply to this, I think we can safely say that it generally works.  Your problem must be very narrow in scope.  Is your KHTML version also 3.2.0?  If KHTML doesn't even try to use kwallet, that would explain why it doesn't work.
Comment 2 Paul Hoepfner-Homme 2004-02-09 00:41:49 UTC
Well, it should be obvious by my bug description that khtml is using the wallet - how else could it store my username and password into the wallet whenever I submit a login form? It has been successfully saving all my login form information into my wallet - I can see all the form data when I browse my wallet using the KDE Wallet Manager. It just hasn't been bothering to look anything up in the wallet and filling out any forms.

So to answer your question: yes, khtml is version 3.2.0. All my KDE base packages are the same version (I upgraded them all at the same time).
Comment 3 George Staikos 2004-02-09 01:31:06 UTC
Subject: Re:  kde wallet is useless - cannot get it to fill out any forms

On Sunday 08 February 2004 18:41, zcu2k001@sneakemail.com wrote:
> ------- Well, it should be obvious by my bug description that khtml is
> using the wallet - how else could it store my username and password into
> the wallet whenever I submit a login form? It has been successfully saving
> all my login form information into my wallet - I can see all the form data
> when I browse my wallet using the KDE Wallet Manager. It just hasn't been
> bothering to look anything up in the wallet and filling out any forms.
>
> So to answer your question: yes, khtml is version 3.2.0. All my KDE base
> packages are the same version (I upgraded them all at the same time).

  Ok there is something really strange happening then.  Please give an example 
site you have tested it with.

Comment 4 Paul Hoepfner-Homme 2004-02-09 01:50:02 UTC
Sure:

https://my.utoronto.ca/scgi-bin/login.cgi?reason=login

Whenever I go to this page, I enter a username and password (only the username field gets filled in from the drop-down box that appears as I start typing it, not the password field), I hit "Login", and then Konqueror displays the dialog box "Save Login Information". I hit "Yes", and I am taken to the next page.

The next time I visit that page, I have to do the same thing all over again.

And this happens with every login page I visit, including Hotmail. I've logged into Hotmail and saved my username/password several times, and it still doesn't fill it out for me automatically.
Comment 5 George Staikos 2004-02-09 03:03:49 UTC
Subject: Re:  kde wallet is useless - cannot get it to fill out any forms

On Sunday 08 February 2004 19:50, zcu2k001@sneakemail.com wrote:
> ------- Sure:
>
> https://my.utoronto.ca/scgi-bin/login.cgi?reason=login
>
> Whenever I go to this page, I enter a username and password (only the
> username field gets filled in from the drop-down box that appears as I
> start typing it, not the password field), I hit "Login", and then Konqueror
> displays the dialog box "Save Login Information". I hit "Yes", and I am
> taken to the next page.
>
> The next time I visit that page, I have to do the same thing all over
> again.

  Hotmail works fine for me.  I will try utoronto.ca soon.  (I have access to 
it.)  Did you ever run a KDE beta or code out of CVS?  if so, maybe you need 
to delete your wallet.  There were binary incompatible changes to kwallet 
over time before KDE 3.2.0 came out.

Comment 6 Paul Hoepfner-Homme 2004-02-09 03:30:48 UTC
I never ran KDE beta or CVS code. But I might try deleting my wallet anyway and see if that helps.
Comment 7 Paul Hoepfner-Homme 2004-02-09 04:59:17 UTC
Well, I seem to have fixed it - although I don't really know how. Here's what I did:

1. I deleted everything I could find in ~/.kde having to do with kwallet (I think I found kwalletrc and a directory called kwallet).
2. I ran Konqueror and went to a page with a login form (that utoronto.ca one), entered the login information, and hit submit. Konqueror prompted me to save the password info into KDE Wallet, and I selected "Yes". However, I was not prompted to grant Konqueror access to the wallet, even though I had deleted my wallet config files. Where is that setting stored?
3. After logging in, I checked the contents of my wallet using KDE Wallet Manager, and they were empty! There wasn't even a wallet in there - which sort of makes sense since I had deleted all the wallet config files - but then how come Konqueror never complained that there wasn't a wallet or prompt me to create one?
4. Since I had no wallet, I went to the KDE Wallet configuration screen and next to the "Select wallet to use as default" box (whose drop-down box was empty, because there was no wallet), I clicked "New...", entered the name "kdewallet" for the wallet (the name of my previous wallet), and clicked OK. But the drop-down box was still empty! It didn't seem to create one.
5. So I opened the KDE Wallet Manager, which was still empty. I tried creating a new wallet via File>New Wallet..., entered "kdewallet" and clicked OK. At that point I'm not sure I remember what happened - either a window popped up with the contents of my new empty wallet, or I was prompted for a password for the wallet.
6. In any case, I managed to create the wallet this way, because the icon appeared in the KDE Wallet Manager. Then I closed the manager window and went to the utoronto.ca login form in Konqueror - and to my surprise, the form was filled out for me already! And all the other login forms I had previously used were also already filled out for me.

Now, this is actually very strange. I don't understand why all the forms were getting automatically filled out with the login data that I thought I had deleted in step 1. I guess I never actually deleted it. So where are the config files that store all the passwords in my wallet?
Comment 8 George Staikos 2004-02-09 18:26:33 UTC
*** Bug 74721 has been marked as a duplicate of this bug. ***
Comment 9 George Staikos 2004-02-09 18:39:55 UTC
> didn't seem to create one. 5. So I opened the KDE Wallet Manager, which was
> still empty. I tried creating a new wallet via File>New Wallet..., entered
> "kdewallet" and clicked OK. At that point I'm not sure I remember what

   It would automatically create a new wallet for you if it was accessed by an 
app and it didn't exist.  Anyhow, this is fine too.

> utoronto.ca login form in Konqueror - and to my surprise, the form was
> filled out for me already! And all the other login forms I had previously

   This is very odd.  Someone else has reported the same thing.  Do:

find / -name "*.kwl"

   and see what that gives you.  Maybe there is some sort of conflict on the 
system?

   By any chance did you save backups of the files you deleted?

> had deleted in step 1. I guess I never actually deleted it. So where are
> the config files that store all the passwords in my wallet?

   They're the .kwl files.

Comment 10 Paul Hoepfner-Homme 2004-02-11 02:48:55 UTC
>    It would automatically create a new wallet for you if it was accessed by
> an app and it didn't exist.  Anyhow, this is fine too.

Well, it didn't automatically create it when I tried that time. I know it's 
supposed to, because that's what happened the first time I used the wallet 
system.

> > utoronto.ca login form in Konqueror - and to my surprise, the form was
> > filled out for me already! And all the other login forms I had previously
>
>    This is very odd.  Someone else has reported the same thing.  Do:
>
> find / -name "*.kwl"
>
>    and see what that gives you.  Maybe there is some sort of conflict on
> the system?

There's only one result, and it's in my home directory 
under .kde3.2/share/apps/kwallet. This is one of the directories I had 
deleted, since it has "wallet" in the name and that's what I had used for my 
search.

>    By any chance did you save backups of the files you deleted?

Sorry, no.

Comment 11 Alexander Kuit 2004-03-01 13:10:44 UTC
I can confirm this behavior, having exactly the same problem as described above. I have installed the complete KDE 3.2 package from kde.org on top of SuSE 8.2.
Comment 12 Bart Verwilst 2004-03-04 01:17:38 UTC
Same here.. using KDE 3.2.0 on Gentoo Linux... Same symptoms..

Comment 13 Bart Verwilst 2004-03-07 13:50:21 UTC
George, i think the reason why you could login in bugzilla by the help of kwallet is because you added your password to kwallet before 3.2.0.. I had several working pages here too, but all the new entries i added after i upgraded to 3.2.0 don't work.. I removed all kwallet related dirs/files (.kde/share/apps/kwallet/ and .kde/share/configs/kwalletrc ), and made a new wallet. It registers URL's inside the wallet, but konqueror a.o. always reask confirmation and don't fill in any values..
Comment 14 George Staikos 2004-03-08 01:49:04 UTC
On Sunday 07 March 2004 07:50, Bart Verwilst wrote:
> ------- George, i think the reason why you could login in bugzilla by the
> help of kwallet is because you added your password to kwallet before
> 3.2.0.. I had several working pages here too, but all the new entries i
> added after i upgraded to 3.2.0 don't work.. I removed all kwallet related
> dirs/files (.kde/share/apps/kwallet/ and .kde/share/configs/kwalletrc ),
> and made a new wallet. It registers URL's inside the wallet, but konqueror
> a.o. always reask confirmation and don't fill in any values..

   I find this very strange.  Can you narrow down the approximate date of the 
KHTML and KWallet/KDED builds that correspond to "working" and "not working"?  
This way I can take a CVS diff.

   Also, does KWalletmanager work?  Can you open a wallet, add entries, close 
it, then reopen it and find those entries again?

Comment 15 Bart Verwilst 2004-03-08 11:34:37 UTC
I tried your kwalletmanager open/add/close/reopen thingy, and that works perfectly. When i go to a new site and login, and click "yes" when the dialog box asks me if i want kwallet to remember the password, it gets saved into the kwallet, and i see it inside kwalletmanager. It's just never filled in again when i re-visit.. I only use releases, no cvs snapshots, so it's either kde 3.2.0-rc1 or the latest beta that still worked.. I only had this after upgrading to 3.2.0..

Thanks in advance!
Comment 16 George Staikos 2004-03-08 19:25:59 UTC
On Monday 08 March 2004 05:34, Bart Verwilst wrote:
> ------- I tried your kwalletmanager open/add/close/reopen thingy, and that
> works perfectly. When i go to a new site and login, and click "yes" when
> the dialog box asks me if i want kwallet to remember the password, it gets
> saved into the kwallet, and i see it inside kwalletmanager. It's just never
> filled in again when i re-visit.. I only use releases, no cvs snapshots, so
> it's either kde 3.2.0-rc1 or the latest beta that still worked.. I only had
> this after upgrading to 3.2.0..

   Well kwalletmanager does nothing particularly different from khtml, so 
either you have an old khtml in use, or this is a KHTML bug, not a KWallet 
bug.

Comment 17 Bart Verwilst 2004-03-09 12:59:21 UTC
My KHTML is fully KDE 3.2.0.. Kopete seems to use kwallet without a prob (it pops up the kwallet password box when i start it, and logs on when i enter the correct password.. Could you maybe add the khtml maintainer(s) here, so this can be worked out? :) Thanks in advance!
Comment 18 Jaime Soffer 2004-09-19 21:19:03 UTC
It seems to solve when switching off "access control -> ask when an application accesses the wallet" (crudely translated from spanish, I hope it's clear - I couldn't find a command to run with an overriden KDE_LANG). Apparently something is blocking Konqueror from even asking the user for access.

(I'm using KDE 3.3.0 from sources)
Comment 19 Jaime Soffer 2004-09-19 22:27:40 UTC
More: I use to install KDE with "make install" overwriting the old files. When I did 'rm -r /opt/share/apps/konqueror' and 'cd /opt/src/kdebase/konqueror && make install' (the already compiled 3.3.0) and ran konqueror the password popup appeared when the page finished loading and the forms filled fine.
Comment 20 George Staikos 2004-11-06 15:18:56 UTC
*** Bug has been marked as fixed ***.