Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Fixed re-enabling sync doesn't sync bookmarks properly across devices #7405

Closed
srirambv opened this issue Feb 27, 2017 · 10 comments · Fixed by #7420
Closed

Fixed re-enabling sync doesn't sync bookmarks properly across devices #7405

srirambv opened this issue Feb 27, 2017 · 10 comments · Fixed by #7420

Comments

@srirambv
Copy link
Collaborator

srirambv commented Feb 27, 2017

Test plan

#7420 (comment)


  • Did you search for similar issues before submitting this one?
    Yes

  • Describe the issue you encountered:
    Reset sync on pyramid 0 and re-enabling sync doesn't sync bookmarks properly across devices

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    Windows 10x64 - Pyramid 1
    Windows 7 ia32 - Pyramid 0

  • Brave Version (revision SHA):
    Brave 0.13.5
    rev 7373a01

  • Steps to reproduce:

    1. Enable Sync on pyramid 0
    2. Sync pyramid 1 to pyramid 0 using the secret code from pyramid 0
    3. Add few bookmarks on either of the device and verify both have the all bookmarks
    4. Create an empty bookmark folder in pyramid 1, doesn't get synced on pyramid 0
    5. Move one of the bookmarks into the folder in pyramid 1, simultaneously reset sync on pyramid 0
    6. Re-enable sync on pyramid 0 and use the secret code from pyramid 1(same as in step 2)
    7. Wait till the bookmark folder is sync'd on pyramid 0
    8. Move the bookmark from within the folder on to the toolbar in pyramid 0, doesn't sync the changes on pyramid 1, it still shows the bookmark under the folder
  • Actual result:
    Sync after reset doesn't sync correctly

  • Expected result:
    Sync after reset should behave the same way

  • Will the steps above reproduce in a fresh profile? If not what other info can be added?
    Yes

  • Is this an issue in the currently released version?
    N/A

  • Can this issue be consistently reproduced?
    Yes

  • Extra QA steps:
    1.
    2.
    3.

  • Screenshot if needed:

  • Any related issues:
    cc: @diracdeltas

@diracdeltas
Copy link
Member

cc @ayumi

@diracdeltas
Copy link
Member

Create an empty bookmark folder in pyramid 1, doesn't get synced on pyramid 0

It does get synced on pyramid 0 for me, even when empty. Sync only happens every 60s so you might have to wait.

diracdeltas added a commit that referenced this issue Feb 28, 2017
@diracdeltas
Copy link
Member

@srirambv i cannot repro this consistently, but please check out https://github.com/brave/browser-laptop/tree/fix/7405 and see if that resolves the issue. thanks

@srirambv
Copy link
Collaborator Author

@diracdeltas I am able to get the empty bookmark folder sync'd but steps 6-8 still doesn't work on https://github.com/brave/browser-laptop/tree/fix/7405.

@srirambv
Copy link
Collaborator Author

srirambv commented Feb 28, 2017

Pyramid 1
7405
image

Pyramid 0
image
image

Steps performed

  1. Created empty folder 7405 on pyramid 1, sync'd on pyramid 0 as well
  2. Moved github under the folder on pyramid 1
  3. Reset sync on pyramid 0
  4. Re-enabled sync on pyramid 0
  5. Folder and github bookmark got duplicated from pyramid 0
  6. Pyramid 1 still retains the github bookmarked moved under the folder created on that machine

Console shows pyramid 1 is still fetching and pyramid 0 is sending data even after reset. It should be the other way around after sync is reset on pyramid 0?

@diracdeltas
Copy link
Member

@srirambv please check out https://github.com/brave/browser-laptop/tree/fix/7405 which has been updated; it fixes the issue for me.

@ayumi this issue appears to be due to the fact that objectIds are deleted when sync is reset, so old synced objects are synced as if they were new objects after sync is reset and then re-synced to the old profile. this causes sync objects to be duplicated. need your input on aff4cf5.

diracdeltas added a commit that referenced this issue Feb 28, 2017
save the original seed for bookmarks, so they can be synced to a profile with
a different seed if needed. fix #7405.
diracdeltas added a commit that referenced this issue Feb 28, 2017
save the original seed for bookmarks, so they can be synced to a profile with
a different seed if needed. fix #7405.
@srirambv
Copy link
Collaborator Author

Still not working. #7420 (comment)

@luixxiul
Copy link
Contributor

Let me reopen just in case

@luixxiul luixxiul reopened this Mar 16, 2017
@luixxiul luixxiul added the needs-investigation A bug not 100% confirmed/fixed that needs QA to better audit. label Mar 16, 2017
@srirambv
Copy link
Collaborator Author

Working fine on preview 2. Good to close unless need to have it open till RC builds.

@srirambv srirambv removed the needs-investigation A bug not 100% confirmed/fixed that needs QA to better audit. label Mar 16, 2017
@ayumi ayumi closed this as completed Mar 16, 2017
@luixxiul
Copy link
Contributor

#7420 (comment)

the step 5 (in pyramid 1, move the bookmark into the folder. this change should sync correctly to pyramid 0) does not work between Windows 10 32 bit and macOS.

The sync itself is working between them, since another bookmark was synced successfully after moving the bookmark into the folder, which was not synced.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants