Closed Bug 558077 Opened 15 years ago Closed 15 years ago

Bookmark folder and its contents lost under certain conditions of syncing same named folder

Categories

(Firefox :: Sync, defect)

x86
All
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: tracy, Assigned: Mardak)

Details

(Keywords: dataloss, regression, Whiteboard: [weave1.2b4])

Attachments

(1 file)

Seen with Weave1.2b4 on Fx 3.6.3 between Win XP and Mac 10.6 STR: 1) Create a new folder on the Bookmarks Toolbar on client A. Call the folder 'aaa' and give it a description 'foo' Add 2 unique bookmarks to it. I did this by DnDing the tab favicon into the new folder. 2) Sync to server, then sync this to client B. (folder aaa with the two bookmarks should appear on the BM toolbar) 3) On client B, create another new folder on the BM toolbar. also call it 'aaa'. Add 2 unique bookmarks to it. 4) Sync client B to server, then sync client A. (notice the four unique bookmarks are merged into a single folder on client A 5) Next, back on client B, add a description to the folder you created in step 3. say 'bar' 6) Delete the 2 bookmarks in that folder with description 'bar' 7) Sync client B to server, then sync client A Tested Results: Folder 'aaa' and its contents on client A disappear. Leaving no folders or bookmarks created for this test scenario. Expected results: Two folders should be present on client A Folder- Name: aaa, description: foo, contents: 2 original bookmarks added in step one and Folder- Name: aaa, description: bar, contents: none
Flags: blocking-weave1.2?
Mardak, regression from bug 556509?
Nah. It's just how the dupe detection works. The descriptions are only there for the tester to be able to tell there's actually something different.
Flags: blocking-weave1.2? → blocking-weave1.2-
Target Milestone: --- → Future
For example, if the folder names were used to differentiate them, then this bug wouldn't happen.
yeah, added descriptions to tell what was going on. I guess its kind of like quantum physics, simply observing the experiment changes it's outcome. :-) yep, if you had a unique folder name in step 3 you wouldn't see this bug.
Keywords: regression
Whiteboard: [weave1.2b4]
What's this a regression from? Also in step 6, do you mean to only delete the 2 bookmarks or the folder with the 2 bookmarks? Because if I only delete the 2 bookmarks, only the two bookmarks get deleted on the other side.
I just ran this without descriptions. Merge of contents in step 4 still happens. but without a change (addition) of folder description in step 5, the folder on client A doesn't disappear after step 7. in response to comment 5. only remove the contents of the folder. You need the changed description and that folder to exist empty.
This is a really really contrived corner case, so it's okay to not block 1.2. That said, all dataloss bugs are blockers for 1.3, marking accordingly.
Flags: blocking-weave1.3+
Target Milestone: Future → 1.3
sorry an additional step is required: Step 8) delete the folder with 'bar' as a description on client B, then sync client B, sync client A. After that the folder disappears on client A.
Assignee: nobody → edilee
Whiteboard: [weave1.2b4] → [weave1.2b4][b2]
Whiteboard: [weave1.2b4][b2] → [weave1.2b4]
Target Milestone: 1.3 → 1.3b3
Attached patch v1Splinter Review
We might need a version bump.. but it's a backwards compatible change, so maybe not?
Attachment #442452 - Flags: review?(mconnor)
Comment on attachment 442452 [details] [diff] [review] v1 only thing that's potentially concerning is zany corner cases like "has duplicates pending on both sides" but I'm okay with less-aggressive merging here.
Attachment #442452 - Flags: review?(mconnor) → review+
http://hg.mozilla.org/labs/weave/rev/99b662c01c44 Mark entries as dupe if they're known to be dupes locally so that receiving ends won't bother looking for dupes for these items.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Verified with 1.3b3
Status: RESOLVED → VERIFIED
Flags: in-litmus?
Flags: in-testsuite?
removing in-litmus flag, it no longer exists
Flags: in-litmus?
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: