Closed Bug 988571 Opened 10 years ago Closed 10 years ago

Migrate Android Firefox Accounts from Doghouse to Separated state on application upgrade

Categories

(Firefox for Android Graveyard :: Android Sync, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 31

People

(Reporter: nalexander, Assigned: nalexander)

References

Details

Attachments

(1 file)

We just haven't gotten to this: we have the ability to move an account to the Doghouse state, but the user has no way to recover.  We should migrate accounts from the Doghouse state to the Separated state upon application upgrade.

Technically, this means adding an additional BroadcastReceiver listening for MY_UPGRADE, just like http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/sync/receivers/UpgradeReceiver.java.
rnewman reminds me that we don't actually Doghouse anybody yet:

15:14 rnewman: nalexander: do we ever put folks in Doghouse?
15:14 nalexander: rnewman: yes, but only when the server requests it.
15:15 rnewman: and does it?
15:15 nalexander: rnewman: not yet.  Although, now I'm not so sure.  Looks like only when Crypto fails :)
15:15 nalexander: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/fxa/login/Engaged.java#53

In fact, we haven't implemented this at the right point:

15:15 nalexander: rnewman: wat: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/fxa/activities/FxAccountUpdateCredentialsActivity.java#119

But the logic is in place:

15:16 nalexander: rnewman: ah, I see http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/fxa/login/BaseRequestDelegate.java#25

So this should really be, Doghouse when appropriate, and also move Doghouse to Separated on upgrade.
Assignee: nobody → nalexander
Status: NEW → ASSIGNED
Comment on attachment 8397600 [details] [review]
Link to Github pull-request: https://github.com/mozilla-services/android-sync/pull/442

Just realized I didn't add the commit to move Doghouse to Separated on update.  Tomorrow.
Attachment #8397600 - Flags: review?(rnewman)
Comment on attachment 8397600 [details] [review]
Link to Github pull-request: https://github.com/mozilla-services/android-sync/pull/442

That's better.  Additional commit pushed, ready for review.
Attachment #8397600 - Flags: review?(rnewman)
Attachment #8397600 - Flags: review?(rnewman) → review+
https://hg.mozilla.org/mozilla-central/rev/f3c4b591b156
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 31
Product: Android Background Services → Firefox for Android
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: