accounts are lost each time the app is updated from the store or run on the device from qtc

Bug #1454210 reported by Michael Zanetti
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
David Barth
Online Accounts setup for Ubuntu Touch
Fix Released
High
Alberto Mardegan
webapps-sprint
Fix Released
High
Alberto Mardegan
qtcreator-plugin-ubuntu (Ubuntu)
Fix Released
High
Unassigned

Bug Description

In vivid, whenever I run an app containing an Online Accounts plugin on the device, all my accounts are destroyed. This makes working with online Accounts extremely cumbersome as one needs to re-enter account credentials on every run.

This does not happen if I install an already installed package manually with pkcon. However, it does happen too if I uninstall the previously installed package and then install it again.

This can be reproduced by branching lp:reminders-app, and running it on the phone using QtCreator. When being asked for setting up an Evernote account, say yes, set it up and then close the app. Restart it from QtCreator and the account will be gone.

IMPORTANT: There is a setting in the SDK which says "Uninstall application after it finished". Besides that this setting will always destroy online accounts (which IMO it should not) current situation will also destroy accounts if this setting is NOT checked!

Related branches

description: updated
Revision history for this message
Alberto Mardegan (mardy) wrote :

Just to be sure I understand correctly: are you saying that also your non-Evernote accounts (Google, Facebook, etc.) are getting deleted, or only the Evernote ones?

Revision history for this message
Michael Zanetti (mzanetti) wrote :

No, only the Evernote ones.

Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

This happens because the old package is uninstalled before the new one is installed. This is essential when dealing with scopes that are stopped when uninstalled and makes sure everything is installed properly.

Not sure if this is a actual bug or how to handle that in a better way.

Suggestions?

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

This happens for non-developers too.

Scenario:-

User has Reminders (which has an online accounts plugin for Evernote) installed and connected to Evernote
User upgrades to OTA-4 - bring them vivid where the bug is present
User later upgrades to new version of Reminders from the store.

At this point their Evernote account is gone.
They open Reminders and it pops up a box acting like they never had it connected to Evernote in the first place.

Easy to reproduce on a device running vivid.
Install http://people.canonical.com/~alan/reminders/com.ubuntu.reminders_0.5.424_armhf.click
System settings -> Accounts -> Evernote
Setup an account
Go into account, slide switch to enable its use for reminders.
Open Reminders, show that you can see your online notes.
Close reminders
Close system settings / online accounts
Open system settings -> updates
Update Reminders to the latest version in the store
Open System settings -> Accounts

Note your Evernote account is gone.

Expectation is that it would still be there.

summary: - accounts are lost each time the app is ran on the device
+ accounts are lost each time the app is updated or run on the device from
+ qtc
Changed in canonical-devices-system-image:
assignee: nobody → David Barth (dbarth)
importance: Undecided → High
milestone: none → ww26-2015
status: New → Confirmed
summary: - accounts are lost each time the app is updated or run on the device from
- qtc
+ accounts are lost each time the app is updated from the store or run on
+ the device from qtc
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Confirmed
David Barth (dbarth)
Changed in ubuntu-system-settings-online-accounts:
assignee: nobody → Alberto Mardegan (mardy)
importance: Undecided → High
status: New → Triaged
Changed in webapps-sprint:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Alberto Mardegan (mardy)
milestone: none → sprint-11
Alberto Mardegan (mardy)
Changed in ubuntu-system-settings-online-accounts:
status: Triaged → In Progress
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Whats up with the MR

Changed in canonical-devices-system-image:
milestone: ww26-2015 → ww34-2015
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
David Barth (dbarth)
Changed in webapps-sprint:
milestone: sprint-11 → sprint-12
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
Revision history for this message
David Barth (dbarth) wrote :

Just keeping the qtc plugin task open, as Zoltan wanted to make the configuration change immediate (as opposed to having to restart QTC).

Changed in ubuntu-system-settings-online-accounts:
status: In Progress → Fix Released
Changed in webapps-sprint:
status: Triaged → Fix Released
Zoltan Balogh (bzoltan)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Confirmed → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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