-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
Merging bookmarks in Firefox behaves like pulling, present bookmarks are deleted #1426
Comments
Hello 👋 Thank you for taking the time to open this issue with floccus. I know it's frustrating when software I look forward to working with you on this issue |
I quickly redid it with fewer bookmarks.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://pyxml.sourceforge.net/topics/dtds/xbel.dtd">
<xbel version="1.0">
<!--- highestId :1: for Floccus bookmark sync browser extension -->
<bookmark href="https://www.mozilla.org/firefox/?utm_medium=firefox-desktop&utm_source=bookmarks-toolbar&utm_campaign=new-users&utm_content=-global" id="1"><title>Erste Schritte</title></bookmark>
</xbel>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://pyxml.sourceforge.net/topics/dtds/xbel.dtd">
<xbel version="1.0">
<!--- highestId :2: for Floccus bookmark sync browser extension -->
<bookmark href="https://www.mozilla.org/de/privacy/firefox/" id="2"><title>Firefox Datenschutzhinweis — Mozilla</title></bookmark>
</xbel> Merge result: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://pyxml.sourceforge.net/topics/dtds/xbel.dtd">
<xbel version="1.0">
<!--- highestId :1: for Floccus bookmark sync browser extension -->
<bookmark href="https://www.mozilla.org/firefox/?utm_medium=firefox-desktop&utm_source=bookmarks-toolbar&utm_campaign=new-users&utm_content=-global" id="1"><title>Erste Schritte</title></bookmark>
</xbel> Full logs:
|
Hello @jonasberge Thank you for opening this issue. However, I have to tell you that I believe your assumptions are wrong. The "Merge" strategy is not stateless. It may be stateless initially, but it is not stateless on consecutive runs, for the following reasons: |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Which version of floccus are you using?
4.19.1
Sync method
WebDAV
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
Firefox 119.0b9 (64-Bit)
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)
I have set up my own, very basic WebDAV server with apache2, by following this quick guide:
https://linuxconfig.org/webdav-server-setup-on-ubuntu-linux
My site config
/etc/apache2/sites-available/000-webdav.conf
contains:Explanation for the first
Location
: I am using Floccus to sync bookmarks between my dual-boot Linux and Windows partition and by using a shared NTFS-drive as backend for my WebDAV server (apache2 for WebDAV on Linux, IIS for WebDAV on Windows). This issue can be reproduced with both, but I made instructions for the apache2 instance. Since it's a shared NTFS drive I had to create a symlink and I figured that might cause some issues, so to be safe I also tested it with anotherLocation
, which is just/var/www/webdav/local/
with permissions forwww-data:www-data
.Describe the Bug
Merging two different sets of bookmarks (those on the server in the bookmarks.xbel file with the ones currently present in the bookmarks bar) causes the local bookmarks to be deleted and replaced with the remote bookmarks, as if the "pull" operation was chosen (but "merge" was used).
Expected Behavior
The sets of bookmarks should be merged, but more importantly, the local bookmarks should never be deleted. Good thing I made a backup first.
To Reproduce
Steps to reproduce:
about:profiles
, start it and use it for all the following stepsI didn't attach any logs, since I already deleted my temporary Firefox profile and I'd have to follow all the steps again (I'm lazy) and in case you can reproduce it you could get the logs yourself anyway.
Debug log provided
The text was updated successfully, but these errors were encountered: