Comment 29 for bug 1864627

Revision history for this message
In , Wbauer (wbauer) wrote :

Git commit 4600d32a1c063db62c371b422f26263d1e991b40 by Wolfgang Bauer.
Committed on 02/03/2020 at 20:55.
Pushed by wbauer into branch 'release/19.12'.

[CreateAccount job] Never set an empty name when creating an account

At least when creating a google account, signon-ui isn't able to extract
the username from the login page anymore since a couple of months (and
newer versions ported to QtWebEngine don't even extract it at all
anymore because it was considered to be too fragile, which apparently
proved to be true...).

This looks kind of broken, and actually made kio-gdrive useless as that
doesn't even list accounts with an empty name.

To fix it, set the name to some arbitrary string in the case that
info.userName() is empty.
FIXED-IN: 19.12.3
Differential Revision: https://phabricator.kde.org/D27474

M +6 -1 src/jobs/createaccount.cpp

https://commits.kde.org/kaccounts-integration/4600d32a1c063db62c371b422f26263d1e991b40