UserCanceled error thrown when trying to access an unexisting providerId with the QML Setup element

Bug #1476004 reported by Niklas Wenzel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Online Accounts setup for Ubuntu Touch
Triaged
Medium
Unassigned
accounts-qml-module
Invalid
Undecided
Unassigned
ubuntu-system-settings-online-accounts (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

How to reproduce:

Add the following to your application:

Setup {
    id: setup
    applicationId: "YOUR APP ID HERE"
    providerId: "asdf"
}

and call setup.exec().

When having debugging enabled as described in https://developer.ubuntu.com/en/start/platform/guides/online-accounts-developer-guide/, the following error can be found in the logs:

RequestAccess failed: QDBusError("com.ubuntu.OnlineAccountsUi.UserCanceled", "Canceled")

I spent hours trying to find the reason for that error as it does not at all hint you at what you actually have done wrong. I think there should be a more specific error message here.

Alberto Mardegan (mardy)
Changed in ubuntu-system-settings-online-accounts (Ubuntu):
status: New → Triaged
Changed in ubuntu-system-settings-online-accounts:
status: New → Triaged
Changed in accounts-qml-module:
status: New → Invalid
Changed in ubuntu-system-settings-online-accounts:
importance: Undecided → Medium
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.