[Contacts] Permission dialog shows in already granted account

Bug #1508903 reported by Víctor R. Ruiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Invalid
High
Bill Filler
address-book-app (Ubuntu)
Invalid
High
Renato Araujo Oliveira Filho

Bug Description

Test case.
- Open System Settings > Accounts
- Create Google Account.
- Edit account to grant permissions to Contacts.
- Open Address Book app.
- Tap to "Import contacts from Google".

Expected result.
- Google contacts are imported.

Actual result.
- Google login page is displayed.

http://paste.ubuntu.com/12893637/

current build number: 145
device name: arale
channel: ubuntu-touch/rc-proposed/meizu.en

Tags: qa-silo
Revision history for this message
Alberto Mardegan (mardy) wrote :

Victor pasted the output of "account-console show <account-id>", which contains:

====
  Settings for google-buteo-contacts
    enabled: True (<class 'bool'>)
====

So, the Contacts service is enabled. However, as the logs from http://paste.ubuntu.com/12893637/ show, address-book-app is requesting access to a google account (possibly because it thinks that the account is disabled, for some reason). Since all google accounts are already enabled, Online Accounts interprets the request as a desire to create a new account. That's why you see the Google login page.

If you continue with the login, you'll see that a second Google account will be created.

affects: ubuntu-system-settings-online-accounts → address-book-app
Changed in canonical-devices-system-image:
assignee: nobody → Bill Filler (bfiller)
importance: Undecided → High
milestone: none → ww46-2015
status: New → Confirmed
Bill Filler (bfiller)
Changed in address-book-app:
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
importance: Undecided → High
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

The "import from google" will always create a new account even if you already have a google account registered. This was a designer decision.

If the account is enabled and the contacts did not get synced, this can be a different bug.

Try to disabled and re-enable the account. If you still have problem after that, please attach your sync-monitor.log file (.cache/upstart/sync-monitor.log);

affects: address-book-app → address-book-app (Ubuntu)
Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :

I just retested and the Contacts are already imported when messaging app is opened.

Revision history for this message
Bill Filler (bfiller) wrote :

please reopen if this is still an issue

Changed in canonical-devices-system-image:
status: Confirmed → Invalid
Changed in address-book-app (Ubuntu):
status: New → Invalid
Changed in canonical-devices-system-image:
milestone: ww46-2015 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.