Re: [Dorset] Chromium no Longer Stores Passwords on Kubuntu

2021-06-04 Thread Terry Coles
On Friday, 4 June 2021 13:28:36 BST Patrick Wigmore wrote:
> I've just tried to reproduce the bug using the Chromium snap package,
> version 91.0.4472.77.
> 
> I was able to save a new username/password, close the browser, open
> the browser, then access the username/password.
> 
> In other words, I could not reproduce the issue.
> 
> My profile directory was
> 
> ~/snap/chromium/common/chromium/Profile 4
> 
> (But usually it would be Default instead of Profile 4.)

As previously mentioned, I don't have that directory:

terry@OptiPlex:~/snap/chromium$ ls -la  
total 24
drwxr-xr-x 6 terry terry 4096 May 27 06:27 .
drwxr-xr-x 6 terry terry 4096 May 22 10:47 ..
drwxr-xr-x 5 terry terry 4096 May 12 06:41 1589
drwxr-xr-x 5 terry terry 4096 May 27 06:27 1608
drwxr-xr-x 5 terry terry 4096 Nov 22  2019 949
drwxr-xr-x 4 terry terry 4096 Jul  1  2020 common
lrwxrwxrwx 1 terry terry4 May 27 06:27 current -> 1608

I've drilled down into both common and current and there is nothing with 
Profile in the filename.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-07-06 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Chromium no Longer Stores Passwords on Kubuntu

2021-06-04 Thread Patrick Wigmore
I've just tried to reproduce the bug using the Chromium snap package, 
version 91.0.4472.77.

I was able to save a new username/password, close the browser, open 
the browser, then access the username/password.

In other words, I could not reproduce the issue.

My profile directory was

~/snap/chromium/common/chromium/Profile 4

(But usually it would be Default instead of Profile 4.)


Patrick

-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-07-06 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Chromium no Longer Stores Passwords on Kubuntu

2021-06-04 Thread Patrick Wigmore
On Fri, 04 Jun 2021 12:22:42 +0100, Terry Coles wrote:
> I was unable to find that directory or the one mentioned by the Mac
> user that  you referred to.

If you go to chrome://version/ in Chromium, then it should tell you
your current Profile Path; the directory where you would find the
Login Data file.

(Source: 
https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/user_data_dir.md#Current-Location
 )

Apparently the default Profile location for the snap version is

~/snap/chromium/common/chromium/Default/

(Source: https://superuser.com/a/1325741 )

> Unless someone else has the same problem, I'm left with two choices;
> post a bug on Launchpad or abandon Chromium.

I would call it a bug, even if there does turn out to be a workaround.

This might be the same bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=1177314


Patrick

-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-07-06 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Chromium no Longer Stores Passwords on Kubuntu

2021-06-04 Thread Terry Coles
On Friday, 4 June 2021 11:57:12 BST Patrick Wigmore wrote:
> I don't really use Chromium, but I just tested saving a password and,
> sure enough, it did not appear in KWalletManager, but it did appear in
> Chromium's Settings and persists after restarting the browser. This is
> in Chromium 90.0.4430.72.

I am using Chromium 91.0.4472.77 and it a snap installation.

> In my case, I found the plain-text URL and username for the saved
> login stored in:
> 
> ~/.config/chromium/Profile 4/Login Data

I was unable to find that directory or the one mentioned by the Mac user that 
you referred to.

> On recent Ubuntus, I think Chromium is a 'Snap', so that might mean
> the profile is stored somewhere else on those.

Unless someone else has the same problem, I'm left with two choices; post a 
bug on Launchpad or abandon Chromium.

I have no objection to posting the bug, but since Kubuntu 21.04 has been 
released nearly six weeks and no-one else seems to be having the problem, I 
suspect the problem is something to do with my installation.  If I'm the only 
person on the planet with this problem, then I doubt my bug report will get 
much attention (that has been my experience in the past).

I may well have to return to Firefox as my default browser (it still remembers 
passwords stored earlier).

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-07-06 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Chromium no Longer Stores Passwords on Kubuntu

2021-06-04 Thread Patrick Wigmore
On Fri, 04 Jun 2021 09:38:03 +0100, Terry Coles wrote:
> Anyone else noticed this?  I upgraded to Kubuntu 21.04 a few days
> ago and now Chromium doesn't store passwords.  The offer is made,
> and clcking OK is accepted, but opening 'Settings - Passwords'
> shows that no passwords have been stored.

> Anyone got any ideas?

It looks like Chromium stores passwords in its own configuration 
directory, encrypted using a key that's stored in a supported OS-
specific keyring/wallet, such as KWallet. It does not appear to store 
the passwords directly in KWallet any more.

I'm pretty sure Chromium used to store passwords directly in KWallet. 
I don't know when that changed, but it could easily have been years 
ago for all I know. I guess they decided not to delete the passwords 
that were already stored there.

I don't really use Chromium, but I just tested saving a password and, 
sure enough, it did not appear in KWalletManager, but it did appear in 
Chromium's Settings and persists after restarting the browser. This is 
in Chromium 90.0.4430.72.

In my case, I found the plain-text URL and username for the saved 
login stored in:

~/.config/chromium/Profile 4/Login Data

Which is a SQLite database.* I'm not sure why I'm on "Profile 4". (I 
think the default is "Default".)

On recent Ubuntus, I think Chromium is a 'Snap', so that might mean 
the profile is stored somewhere else on those.

The password field in the Login Data database contains encrypted data, 
which presumably gets decrypted using the key Chromium has stored in 
my KWallet under "Chromium Keys", though I haven't bothered to test 
this.

I'm not sure if any of that is at all useful to know, or whether it 
helps with trying to unpick what the problem might be. But it does 
mean that your Chromium profile in ~/.config/chromium goes hand-in-
hand with a key from your KWallet, and vice-versa.

It looks like someone had almost the same problem as you, but in 
Chrome on Mac OS rather than Chromium on Linux, and solved it by 
removing the Login Data file from their Chrome profile:
http://plasmasturm.org/log/chromepwstore/


* You can read SQLite database files using the GUI program 
sqlitebrowser. (Which is a tool that always makes me feel a little bit 
nervous, because if you accidentally edit the data, the changes will 
immediately be written straight to disk with no opportunity to "undo" 
and no way to "close without saving"!)



Patrick

-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-07-06 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Chromium no Longer Stores Passwords on Kubuntu

2021-06-04 Thread Terry Coles
On Friday, 4 June 2021 10:10:13 BST John Carlyle-Clarke wrote:
> Is it potentially related to this?
> 
> https://www.omgubuntu.co.uk/2021/01/chromium-sync-google-api-removed
> 
> It's not clear to me whether this would break local password storage or not.
> On Fri, 4 Jun 2021, 09:38 Terry Coles,  wrote:

I saw that when the story broke, but assume that it is irrelevant in this 
case.  The last para says:

'If you use Chromium for Linux it’s important to know that your sync data will 
not be deleted but will only be available locally.'

Also, that change happened in March and password storage has been OK (ish, see 
below), until this upgrade.

Having said that, I had noticed that I have been unable to save some new 
passwords for some time, but old ones still worked, so maybe it is related and 
the upgrade has deleted all the previously stored passwords.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-07-06 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Chromium no Longer Stores Passwords on Kubuntu

2021-06-04 Thread John Carlyle-Clarke
Is it potentially related to this?

https://www.omgubuntu.co.uk/2021/01/chromium-sync-google-api-removed

It's not clear to me whether this would break local password storage or not.



On Fri, 4 Jun 2021, 09:38 Terry Coles,  wrote:

> Hi,
>
> Anyone else noticed this?  I upgraded to Kubuntu 21.04 a few days ago and
> now
> Chromium doesn't store passwords.  The offer is made, and clcking OK is
> accepted, but opening 'Settings - Passwords' shows that no passwords have
> been
> stored.
>
> If like most of the denizens of the Internet, I used one set of
> credentials
> for every site on the planet, this would be less of a pain, but I don't.
> I
> have a different username and (very long) password for each site.  KWallet
> isn't integrated with Chromium, so it's a pain to have to manually copy
> the
> credentials from the wallet to the site every time I go there.
>
> I've checked on Launchpad and couldn't see anything relevant.
>
> Anyone got any ideas?
>
> --
>
>
>
> Terry Coles
>
>
>
> --
>   Next meeting: Online, Jitsi, Tuesday, 2021-07-06 20:00
>   Check to whom you are replying
>   Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
>   New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk
>
-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-07-06 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


[Dorset] Chromium no Longer Stores Passwords on Kubuntu

2021-06-04 Thread Terry Coles
Hi,

Anyone else noticed this?  I upgraded to Kubuntu 21.04 a few days ago and now 
Chromium doesn't store passwords.  The offer is made, and clcking OK is 
accepted, but opening 'Settings - Passwords' shows that no passwords have been 
stored.

If like most of the denizens of the Internet, I used one set of credentials 
for every site on the planet, this would be less of a pain, but I don't.  I 
have a different username and (very long) password for each site.  KWallet 
isn't integrated with Chromium, so it's a pain to have to manually copy the 
credentials from the wallet to the site every time I go there.

I've checked on Launchpad and couldn't see anything relevant.

Anyone got any ideas?

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-07-06 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk