[GH-ISSUE #176] Floccus (XBEL) is spamming the Nextcloud activity stream #168

Closed
opened 2026-02-25 22:36:21 +03:00 by kerem · 7 comments
Owner

Originally created by @marcelschmidtdev on GitHub (Oct 1, 2018).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/176

Software versions

  • Browser: Firefox 62.0.2
  • Nextcloud: 13.0.6
  • Nextcloud Bookmarks app: 0.12.2
  • Floccus: 3.0.8

Steps to reproduce

  1. Use XBEL in Webdav adapter
  2. Sync bookmarks
  3. Use it for a while, add/remove bookmarks, don't change anything for a couple of days

Expected outcome

  1. Lock file activity should be excluded from Activity stream
  2. XBEL file should only be changed if a new bookmark was added or removed

Actual outcome

Nextcloud activity stream is spammed with "XBEL.lock file created/deleted.
Also the XBEL file with the bookmarks was changed a lot, although no changes were made in my browser.

Originally created by @marcelschmidtdev on GitHub (Oct 1, 2018). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/176 <!-- Hello there! Thank you for providing feedback! Please answer the below questions to allow for as smooth a process of tackling the issue as possible :) (Note: Everything surrounded by arrows, like this text for example, will not be visible.) --> ### Software versions <!-- Please provide the versions of the following software products in your set up --> * Browser: Firefox 62.0.2 * Nextcloud: 13.0.6 * Nextcloud Bookmarks app: 0.12.2 * Floccus: 3.0.8 ### Steps to reproduce <!-- What did you do? Be as specific as possible --> 1. Use XBEL in Webdav adapter 2. Sync bookmarks 3. Use it for a while, add/remove bookmarks, don't change anything for a couple of days ### Expected outcome <!-- What did you think was going to happen or what do you think should have happened? --> 1. Lock file activity should be excluded from Activity stream 2. XBEL file should only be changed if a new bookmark was added or removed ### Actual outcome <!-- What actually happened after you did the above steps? --> Nextcloud activity stream is spammed with "XBEL.lock file created/deleted. Also the XBEL file with the bookmarks was changed a lot, although no changes were made in my browser. <!-- Thanks! Now, hit Submit and wait for a reply :) -->
kerem 2026-02-25 22:36:21 +03:00
Author
Owner

@jlbprof commented on GitHub (Oct 1, 2018):

Nextcloud activity stream is spammed with "XBEL.lock file created/deleted.

What do you mean by that?

The typical process is:

  1. Check for the presence of the xbel.lock file.
  2. If it is there, wait and try again in awhile (another browser could be
    syncing)
  3. If at the end of the try period, it is still there it gives up.

Otherwise fi the file is NOT there, it will create it
When the sync process is complete it is deleted.

Is the xbel.lock file still present on your Nextcloud?

On Mon, Oct 1, 2018 at 2:27 AM Marcel Schmidt notifications@github.com
wrote:

Software versions

  • Browser: Firefox 62.0.2
  • Nextcloud: 13.0.6
  • Nextcloud Bookmarks app: 0.12.2
  • Floccus: 3.0.8

Steps to reproduce

  1. Use XBEL in Webdav adapter
  2. Sync bookmarks
  3. Use it for a while, add/remove bookmarks, don't change anything for
    a couple of days

Expected outcome

  1. Lock file activity should be excluded from Activity stream
  2. XBEL file should only be changed if a new bookmark was added or
    removed

Actual outcome

Nextcloud activity stream is spammed with "XBEL.lock file created/deleted.
Also the XBEL file with the bookmarks was changed a lot, although no
changes were made in my browser.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/marcelklehr/floccus/issues/176, or mute the thread
https://github.com/notifications/unsubscribe-auth/AJS39euafOleWnc3RSfzYU8h9gxCN28Bks5ugcPJgaJpZM4XBguP
.

<!-- gh-comment-id:425887231 --> @jlbprof commented on GitHub (Oct 1, 2018): >Nextcloud activity stream is spammed with "XBEL.lock file created/deleted. What do you mean by that? The typical process is: 1) Check for the presence of the xbel.lock file. 2) If it is there, wait and try again in awhile (another browser could be syncing) 3) If at the end of the try period, it is still there it gives up. Otherwise fi the file is NOT there, it will create it When the sync process is complete it is deleted. Is the xbel.lock file still present on your Nextcloud? On Mon, Oct 1, 2018 at 2:27 AM Marcel Schmidt <notifications@github.com> wrote: > Software versions > > - Browser: Firefox 62.0.2 > - Nextcloud: 13.0.6 > - Nextcloud Bookmarks app: 0.12.2 > - Floccus: 3.0.8 > > Steps to reproduce > > 1. Use XBEL in Webdav adapter > 2. Sync bookmarks > 3. Use it for a while, add/remove bookmarks, don't change anything for > a couple of days > > Expected outcome > > 1. Lock file activity should be excluded from Activity stream > 2. XBEL file should only be changed if a new bookmark was added or > removed > > Actual outcome > > Nextcloud activity stream is spammed with "XBEL.lock file created/deleted. > Also the XBEL file with the bookmarks was changed a lot, although no > changes were made in my browser. > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/marcelklehr/floccus/issues/176>, or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJS39euafOleWnc3RSfzYU8h9gxCN28Bks5ugcPJgaJpZM4XBguP> > . >
Author
Owner

@marcelschmidtdev commented on GitHub (Oct 1, 2018):

screenshot 2018-10-01 at 14 23 01

I attached a screenshot of my activity stream. This is only the last couple of hours.
I did not change any bookmark but the lock file is still created and the XBEL file was changed for some reason. This makes the activity feature unusable for me.

<!-- gh-comment-id:425889128 --> @marcelschmidtdev commented on GitHub (Oct 1, 2018): ![screenshot 2018-10-01 at 14 23 01](https://user-images.githubusercontent.com/10891885/46288304-8a838f00-c585-11e8-928c-dcbdbeac108b.png) I attached a screenshot of my activity stream. This is only the last couple of hours. I did not change any bookmark but the lock file is still created and the XBEL file was changed for some reason. This makes the activity feature unusable for me.
Author
Owner

@marcelklehr commented on GitHub (Oct 1, 2018):

The only entries we can reasonably get rid of are the mutations XBEL file even though nothing has changed. The lock file needs to be used because nextcloud doesn't offer native locking via DAV: https://github.com/nextcloud/server/issues/1308

<!-- gh-comment-id:425923631 --> @marcelklehr commented on GitHub (Oct 1, 2018): The only entries we can reasonably get rid of are the mutations XBEL file even though nothing has changed. The lock file needs to be used because nextcloud doesn't offer native locking via DAV: https://github.com/nextcloud/server/issues/1308
Author
Owner

@marcelschmidtdev commented on GitHub (Oct 1, 2018):

Nice, that would be a good start to reduce the noise 👍
Is it possible to only create the lock file after we've checked for changes and are about to apply them?
Thanks for your help.

<!-- gh-comment-id:425925627 --> @marcelschmidtdev commented on GitHub (Oct 1, 2018): Nice, that would be a good start to reduce the noise 👍 Is it possible to only create the lock file after we've checked for changes and are about to apply them? Thanks for your help.
Author
Owner

@marcelklehr commented on GitHub (Oct 1, 2018):

The problem is that the algorithm effectively uses a diff to determine the changes as neither the browser nor the XBEL file track changes. So, we only know whether something has to be updated on the server once we have downloaded the file. But if we do need to update the file on the server we need to make sure it hasn't changed since we downloaded it. We can only do that by setting a lock before downloading. In any case, If you have nextcloud installed, I generally recommend using the bookmarks app, if there's nothing to be said against it.

<!-- gh-comment-id:425983938 --> @marcelklehr commented on GitHub (Oct 1, 2018): The problem is that the algorithm effectively uses a diff to determine the changes as neither the browser nor the XBEL file track changes. So, we only know whether something has to be updated on the server once we have downloaded the file. But if we do need to update the file on the server we need to make sure it hasn't changed since we downloaded it. We can only do that by setting a lock *before* downloading. In any case, If you have nextcloud installed, I generally recommend using the bookmarks app, if there's nothing to be said against it.
Author
Owner

@marcelschmidtdev commented on GitHub (Oct 2, 2018):

That makes sense, thank you for clarification. Using a file is just more convenient for me, especially restoring a backup from a single file which is under Nextcloud version control is easier then restoring the MySQL database.

<!-- gh-comment-id:426191902 --> @marcelschmidtdev commented on GitHub (Oct 2, 2018): That makes sense, thank you for clarification. Using a file is just more convenient for me, especially restoring a backup from a single file which is under Nextcloud version control is easier then restoring the MySQL database.
Author
Owner

@github-actions[bot] commented on GitHub (Mar 21, 2023):

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.

<!-- gh-comment-id:1477571537 --> @github-actions[bot] commented on GitHub (Mar 21, 2023): 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/floccus#168
No description provided.