-
-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bookmarks moved #1767
Comments
Hello 👋 Thank you for taking the time to open this issue with floccus. I know it's frustrating when software One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the Nextcloud forum, I look forward to working with you on this issue |
very interesting, thank you for the detailed description! I think the name of the folder is relevant. When two folders with the same name are moved to a different location in the same sync run, there is currently no way for the diff algorithm to differentiate them and they may get mixed up, iff the sync runs without any cache available. So, it's a low chance that this happens but there is a chance. Quick fix would be
|
I've since implemented a similarity measure that helps the diff algorithm detect which folder is more likely to match when multiple folders have the same name and there is no cache, so this issue should not happen anymore. Thank you again for reporting! 💙 |
hello, I think the diff engine should use the full path of folders to be able to differentiate two folders with same name. this should work as expected except maybe when there are two folders with the same name and located in the same subfolder. |
Damn
Mmh, I don't think this is going to work as the issue is about diffing moved folders, so I believe this happens when folders are moved. Can you confirm this? I will look into this again. |
no. in my specific case the folders with same name are not moved. what is going wrong for me is when I add a new bookmark to an existing folder, which by chance has the same name as another folder, but these two folders are located into different subfolders, like this example: 1st folder full path: 2nd folder full path: for my specific issue these two "security" folders are already present in both pc 1 and pc 2. so on pc 1 I add a new bookmark to first "security" folder, then on pc 2 after sync I find the new bookmark added to the 2nd folder instead of the first one. I don't know the internals of your sync engine, but I still believe that the full path can univocally identify a folder or a bookmark. with the exception of two different folders with same path: /toolbar/pc/security (security here is a folder). it's possible to create two folders with same name in the same subfolder (just tested in chrome and firefox). Another problematic case could be two bookmarks with the same name and url in the same folder. /toolbar/pc/security/new_bookmark (here new_bookmark is a bookmark, not a folder). it's possible to create (probably unintentionally) two identical bookmarks in the same folder by using drag and drop. Maybe the bookmark APIs have access to other meta information, like for example the creation timestamp? could it be useful? |
Can you try resetting the cache in floccus via "Trigger sync from scratch"? It could be that there's still a wrong mapping going on between the two folders that was never removed even though the establishing of the mapping is now prevented. |
Floccus uses IDs to uniquely identify bookmarks and folders. To track which local folder is equivalent to which server folder there are mapping records. These could be set in the wrong way in previous versions, though. This is why I'm asking you to reset the cache and sync from scratch to reestablish those mapping records. |
Yes this happens all the time ... I realized it and began renaming my folders something unique (because, if there are two folders with the same name, all the bookmarks get dumped into one of them). |
You mean all bookmarks from all folders? 🤔 |
No - but, say I have one folder in Long Island > Sports and another in Canada > Sports ... one of the two Sports folders will be empty; and all the bookmarks will end up in the other one. |
Yes, I've tried to fix this in v5.4.0. The effects of that fix might
only be visible after resetting the cache once, though.
|
Which version of floccus are you using?
5.3.3
How many bookmarks do you have, roughly?
1400
Are you using other means to sync bookmarks in parallel to floccus?
no
Sync method
Google Drive
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
firefox, edge, chrome
Which version of Nextcloud Bookmarks are you using? (if relevant)
No response
Which version of Nextcloud? (if relevant)
No response
What kind of WebDAV server are you using? (if relevant)
No response
Describe the Bug
I sync bookmarks between my three browsers (merge).
after a sync I found that some bookmarks are moved from one folder to a different one:
Expected Behavior
synced bookmarks correctly
To Reproduce
I don't know. It's just happening when I sync my bookmarks.
I'll attach a screenshot of the difference in html files, and redacted logs.
floccus-5.3.3-2024-11-13-redacted-firefox.log
floccus-5.3.3-2024-11-13-redacted-edge.log
floccus-5.3.3-2024-11-13-redacted-chrome.log
Debug log provided
The text was updated successfully, but these errors were encountered: