Closed
Bug 770785
Opened 12 years ago
Closed 12 years ago
Delete client record from server on account removal
Categories
(Firefox for Android Graveyard :: Android Sync, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla18
People
(Reporter: rnewman, Assigned: nalexander)
References
Details
It'd be nice if we could delete all of our client records on uninstall, too.
Note that client records are TTLed, so after three weeks the old records should disappear.
If a user ran a really old version of Android Sync, it'll perhaps have left TTL-less records on the server. In that case, a node reassignment will eventually clean up.
Comment 1•12 years ago
|
||
I remember there being a bug whereby it was requested to have the ability to remove devices from sync. I can't for the life find the bug number though.
Reporter | ||
Updated•12 years ago
|
Priority: P3 → P2
Assignee | ||
Comment 2•12 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #0)
> It'd be nice if we could delete all of our client records on uninstall, too.
Android: I'm sorry, Dave. I'm afraid I can't do that.
http://developer.android.com/intl/zh-CN/reference/android/content/Intent.html#ACTION_PACKAGE_REMOVED
http://stackoverflow.com/questions/6209730/is-it-possible-to-detect-android-app-uninstall
Assignee | ||
Comment 3•12 years ago
|
||
Test instructions:
This is easiest to test with two distinct Android devices and a fresh Sync account.
1. pair first Android device to fresh Sync account.
2. verify Sync is correct, and look for logs like:
I FxSync(12791) fennec_ncalexan :: SyncAdapter :: Syncing account named nalexander+test0724@mozilla.com for authority org.mozilla.fennec_ncalexan.db.browser.
I FxSync(12791) fennec_ncalexan :: SyncAdapter :: Client is named 'Fennec ncalexan on Transformer Prime TF201', has client guid FQ_4HyD-5uQP, and has 0 clients.
Make a note of the client name and guid (in this case, 'Fennec ncalexan on Transformer Prime TF201' and FQ_4HyD-5uQP).
3. from Fennec, browse to a page and select Share > Firefox Sync.
4. verify your client name appears in target list.
5. from Android > Settings > Accounts & sync, select Sync account and delete it.
6. verify logs like:
I FxSync(12791) fennec_ncalexan :: SyncAuthService :: Account named nalexander+test0724@mozilla.com being removed; deleting saved pickle file 'sync.account.json'.
I FxSync(12791) fennec_ncalexan :: SyncAuthService :: Account named nalexander+test0724@mozilla.com being removed; deleting client record from server.
...
I FxSync(12791) fennec_ncalexan :: ClientRecTerminator :: Deleted client record with GUID FQ_4HyD-5uQP from server.
Your client GUID should appear in the log.
To verify client record is really deleted from the server:
7. pair second Android device to Sync account.
8. from Fennec, browse to a page and select Share > Firefox Sync.
9. verify the old client name does NOT appear in target list.
Reporter | ||
Comment 4•12 years ago
|
||
(In reply to Nick Alexander :nalexander from comment #2)
> Android: I'm sorry, Dave. I'm afraid I can't do that.
Oh, I know. Just wishful thinking :)
Assignee | ||
Comment 5•12 years ago
|
||
Assignee: nobody → nalexander
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla18
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Product: Mozilla Services → Android Background Services
Updated•7 years ago
|
Product: Android Background Services → Firefox for Android
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•