Closed Bug 748898 Opened 13 years ago Closed 13 years ago

Use "mobile" as title for Mobile Bookmarks folder on upload

Categories

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

ARM
Android
defect

Tracking

(firefox14 fixed, blocking-fennec1.0 +)

VERIFIED FIXED
mozilla15
Tracking Status
firefox14 --- fixed
blocking-fennec1.0 --- +

People

(Reporter: rnewman, Assigned: rnewman)

References

Details

(Whiteboard: [qa+])

Attachments

(1 file)

Works around Bug 747699. Should (I'm testing now) cause most desktop reconciling/"Firefox Support" dupe/etc. bugs to disappear.
blocking-fennec1.0: ? → +
https://github.com/mozilla-services/android-sync/pull/175 Literally a one-line change (plus test changes, of course). I've tested this by hand; Tracy has offered to try out my own build later today.
Whiteboard: [needs review][qa+]
from rnewman irc: in particular, this should fix the situation where you pair a new Android device with a desktop profile that already has the mobile bookmarks from another fennec. previously those would be duplicated. now they should not. I verified the above is true with his people build. Content of new Android mobile bookmarks is merged into the pre-existing Mobile Bookmarks folder on desktop.
Hmmm, however, default bookmarks on fennec appear to be duplicated on fennec. Fennec start page is duplicated on Desktop, but none of the other defaults from Fennec are duplicated.
This may be caused by having used nightly to get mobile bookmarks onto desktop, then nuking it and installing the test build. Then using the same Sync account. In testing wipe other from desktop it list both the Nightly and the Fennec build.
(In reply to Tracy Walker [:tracy] from comment #4) > This may be caused by having used nightly to get mobile bookmarks onto > desktop, then nuking it and installing the test build. Then using the same > Sync account. Do they have the same URLs and titles? E.g., I see "Firefox: Customize with add-ons" having two different URLs: https://addons.mozilla.org/en-US/mobile/ https://addons.mozilla.org/en-US/android/ > In testing wipe other from desktop it list both the Nightly > and the Fennec build. That's fine: we don't clean up our client record when uninstalled (we can't).
Ack, I can't tell now. wipe client cleaned it all up.
Just tested this myself with one Android, one desktop, where the desktop had existing mobile bookmarks; merge was successful, with no dupes on mobile and missing records created correctly on desktop. Subsequent deletes preserve order.
Priority: -- → P1
Implemented a slightly more thorough and safe extension to this: we translate input and output records into our defined set of folder titles, which means we safely handle any kind of parent name, so long as we know the GUID locally. You can test this by syncing a slightly older Fennec (which will upload records with parentName = "Mobile Bookmarks"), then pairing a Fennec with this fix. You'll see V/BrowserRepoSession(31460): Replacing parent name "Mobile Bookmarks" with "mobile". in the log (if you have VERBOSE enabled), and you'll get correct merging on both mobile and desktop. Will land shortly.
Whiteboard: [needs review][qa+] → [has review][qa+]
Whiteboard: [has review][qa+] → [qa+]
Target Milestone: --- → mozilla15
Attached patch Patch.Splinter Review
[Approval Request Comment] Fennec release blocker, could probably qualify as a beta blocker. User impact if declined: Potential bookmark duplication on desktop (or mobile, in theory). Testing completed (on m-c, etc.): Landed on m-i; will get QA before Aurora uplift. Risk to taking this patch (and alternatives if risky): Minimal; could have a negative effect on bookmark reconciling, but none observed during testing, and should in any case be better than the current state. String changes made by this patch: None *sigh* didn't qref to add r= in inbound; that patch is r=liuche. Fixed for this.
Attachment #618766 - Flags: review+
Attachment #618766 - Flags: approval-mozilla-aurora?
Whiteboard: [qa+] → [qa+][landed on github]
Whiteboard: [qa+][landed on github] → [qa+][inbound]
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Attachment #618766 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Based on comment 2, I synced 2 devices with a new sync account and the mobile bookmarks appeared only once. Verified fixed on: Firefox 15.0a1 (2012-05-30) Device: LG Optimus 2X (Android 2.2.2)
Status: RESOLVED → VERIFIED
Product: Mozilla Services → Android Background Services
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: