Actually, after investigating the situation (though unfortunately, I failed to 
reproduce this bug), I'm not sure that we should cahnge something in Online 
Accounts here.
The authorisation prompt does not appear automatically: it only appears when a 
client invokes the exec() method of the OnlineAccountsClient::Setup object (or 
the QML equivalent). When online-accounts-service receives such a request, it 
either initiates the account creation (if there isn't yet an account of such 
type) or prompts the user to grant access to the existing account.

What I believe is happening here, is that for some reason the client is
making the account request twice: the first time, we start the account
creation; the second time, the prompt is shown.

I will still keep the bug active, because we might want to be more
robust and handle bogus requests more gracefully, but I think we have to
first find out why we are getting to requests in the first place.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-system-settings-
online-accounts in Ubuntu.
https://bugs.launchpad.net/bugs/1582824

Title:
  Pointless access request prompt

Status in Canonical System Image:
  Confirmed
Status in webapps-sprint:
  Confirmed
Status in ubuntu-system-settings-online-accounts package in Ubuntu:
  Confirmed

Bug description:
  In attempting to test for bug #1582804 on my mako with updated rc-
  proposed image 441, immediately after logging in to the U1 account
  after tapping on the '$2.99' button for 'Cut the Rope', I was
  presented with the screen shown in the attached screenshot (e-mail
  address removed in screenshot).

  There is no reason this dialog should ever appear for the U1 account,
  and choosing either option is irrelevant to whether the account can be
  used by the scope. Choosing to not allow simply acts as cancelling the
  current in-progress action, returning the user to the app preview.
  However, immediately tapping on the '$2.99' button again will work
  just fine, and the payment UI will be presented.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1582824/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to