group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #04230
[Bug 1565772] Re: Allow plugins to decide which username to set on new accounts
** Also affects: gnome-control-center-signon (Ubuntu Xenial)
Importance: Undecided
Status: New
** Also affects: account-plugins (Ubuntu Xenial)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1565772
Title:
Allow plugins to decide which username to set on new accounts
Status in Online Accounts: Account plugins:
Fix Released
Status in Canonical System Image:
Fix Committed
Status in Online Accounts: GNOME Control Center:
Fix Released
Status in webapps-sprint:
Fix Committed
Status in account-plugins package in Ubuntu:
In Progress
Status in gnome-control-center-signon package in Ubuntu:
In Progress
Status in account-plugins source package in Xenial:
New
Status in gnome-control-center-signon source package in Xenial:
New
Bug description:
This bug is related to bug 1547647, even though it makes sense in any
case.
Currently, the ApOAuthPlugin class in libaccount-plugin gets the
username from the SignonIdentity, which in turn gets it from signon-
ui, which in the current WebKit1 implementation gets it from the DOM
of the login webpage. This is a hack, it's fragile, not trivial to
port to the Oxide web engine, and possibly against some providers'
guidelines.
We should retrieve the username using some REST API provided by the
service, and in order to do so we need to extend libaccounts-plugin
with some hooks which subclasses can use to get the username.
Once we fix this we can also get rid of the files /etc/signon-ui
/webkit-options.d/, which are conflicting with those installed by the
KDE account plugins packages.
SRU information
===============
[Impact] The same file /etc/signon-ui/webkit-
options.d/www.facebook.com.conf is installed by the account-plugin-
facebook package (used by Unity) and by kaccount-providers (used by
KDE). See this bug's duplicates to see actual bug reports.
[Test Case] Install both account-plugin-facebook and kaccount-
providers and you'll get the conflict.
[Regression Potential] Users running KDE will be completely unaffected
by this. Users running Unity might see a change when creating accounts
in System Settings->Online Accounts: with this bugfix, the account's
display name is obtained by making a REST API call to the remote
service, rather than by scrapping the DOM of the server webpages
(which is a hack, and prone to errors if the providers' webpage
changes). The new way of retrieving the username is the proper one,
and it's been tested to work reliably. In any case, the worst thing
that might happen is that accounts get created with an empty display
name, which is mostly an aesthetic problem (the display name is used
only for UI purposes).
To manage notifications about this bug go to:
https://bugs.launchpad.net/account-plugins/+bug/1565772/+subscriptions