Syncing tabs removes bookmarks with same name in different folders
See original GitHub issueDescribe the bug
I have 3 different sync “Accounts” setup: Tabs
, Bookmarks Toolbar
, Bookmarks Menu
which sync to different folders on nextcloud bookmarks (using same account/password). What happens is when Tabs
are trying to sync (and fail due to https://github.com/floccusaddon/floccus/issues/883) it also removes bookmarks with same URL from my Bookmarks Toolbar
(and possibly Bookmarks Menu
, have to do detailed comparison with backup).
Final effect is that any tabs I have open (or maybe only those I have open in multiple tabs?) are silently removed from all my bookmarks, which is bad.
When I disable syncing Tabs
, problem disappears.
To Reproduce
Steps to reproduce the behavior:
- Click
New account
, set nextcloud sync withLocal Folder=/Bookmarks Menu/
,Server Folder=/book_main
- Click
New account
, set nextcloud sync withLocal Folder=/Bookmarks Toolbar/
,Server Folder=/book_toolbar
- Click
New account
, set nextcloud sync withSync Tabs
,Server Folder=/tabs_leia
- Have many tabs open, some of which are from Bookmarks Toolbar
- See Tabs sync fail
- Note that your Bookrmarks Toolbar are now missing bookmarks which you had open in tabs
Expected behavior
I would expect that failure or success to sync of one New account
does not affect other accounts. Especially, syncing Tabs
should never alter state of “real” bookmarks!
Screenshots
Desktop
(please complete the following information)
- OS: Debian Buster GNU/Linux
- Browser:Firefox
- Browser Version:78.10.0esr (64-bit)
- Floccus version: 4.6.4
- Floccus sync method: Nextcloud bookmarks
Server
(please complete the following information)
- OS: Debian Buster GNU/Linux
- Nextcloud version: 20.0.9
- Bookmarks app version: 4.1.0
Debug log
It is often useful to provide a debug log file along with the issue. You can obtain a debug log of the most recent sync runs by clicking ‘Debug log’ in the bottom right corner of the floccus panel in your browser.
Note: As your debug log usually contains large parts of your bookmark data, instead of attaching it publicly to the issue here, I recommend uploading it privately at the following URL https://cloud.marcelklehr.de/s/PCi3iLWrzdMZSmw
- Debug log provided
Additional context
There is only this firefox syncing to that Nextcloud account, nothing other changes the bookmarks on Nextcloud instance (neither another floccus, nor manually via web interface - eg. it is used basically only as a backup for the time being).
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (11 by maintainers)
Top GitHub Comments
Ok, I’ve managed to reproduce it with verbose timeline from start to end. Probably too verbose, but hopefully it will also include interesting information.
(2021-07-16, times are TZ=CEST):
sync tabs
in floccustabs: Synchronization in progress.
,bookmarks toolbar: Last synchronized: 1 hour ago
,bookmarks menu: Last synchronized: 10 minutes ago
sync tabs
has failed and restarted, bookmark is still there.sync tabs
fails and restarts all the time by itself…tabs: Synchronization in progress.
,bookmarks toolbar: Last synchronized: 2 hours ago
,bookmarks menu: Last synchronized: 28 minutes ago
Sync now
onBookmarks toolbar
tabs: Synchronization in progress.
,bookmarks toolbar: Last synchronized: 32 seconds ago
,bookmarks menu: Last synchronized: 30 minutes ago
bookmark is still heretabs: Synchronization in progress.
,bookmarks toolbar: Last synchronized: 9 minutes ago
,bookmarks menu: Last synchronized: 38 minutes ago
bookmark is still here in firefox.tabs: E027: Sync process was interrupted.
,bookmarks toolbar: Last synchronized: 1 hour ago
,bookmarks menu: Last synchronized: 17 minutes ago
(2021-07-17, times are TZ=CEST)
tabs: Synchronization in progress.
,bookmarks toolbar: Last synchronized: 6 minutes ago
,bookmarks menu: Last synchronized: 6 minutes ago
floccus-4.6.4-2021-07-17_0026_anon.log
)attached in the cloud are
floccus-4.6.4-2021-07-16_2042_anon.log
(last log before closing firefox) andfloccus-4.6.4-2021-07-17_0026_anon.log
(really last log - when bookmark is gone). Problematic URL is the same as beforehttps://XXX.XX.XXX.XXX:XXXXX/
. I’ve noted in timeline above when I made bookmarks backups, so let me know if some value from some of them (dateAdded
/lastModified
/guid
/id
etc.) is useful for further debug.Thank you for the detailed write up!
I’ve finally been able to reproduce this and it’s indeed a bug in the create method of the nextcloud adapter. If there’s already a bookmark with the same URL in a branch of the server tree outside of the current server prefix, that bookmark will be moved to the location of the newly created bookmark, instead of copying it.