mirror of
https://github.com/floccusaddon/floccus.git
synced 2026-04-25 14:16:12 +03:00
[GH-ISSUE #522] E022-error after deleting bookmark in Nextcloud -> no sync #372
Labels
No labels
browser-specific
bug
correctness issues
enhancement
feature: Google Drive
feature: Linkwarden
feature: git
feature: nextcloud-bookmarks
feature: tabs
feature: webdav
help wanted
native-app
priority: high
priority: low
priority: medium
pull-request
question
question
stale
upstream
waiting for more information
wontfix
🙁 Not following issue template
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/floccus#372
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BeatVonwil on GitHub (May 6, 2020).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/522
Describe the bug
when I delete a bookmark in Nextcloud, firefox add-on floccus synchronisation is broken with error E022.
To Reproduce
Situation:
Nextcloud (with Bookmarks) is set up
Floccus on Firefox is installed
account is created and initial sync complete
Manipulation:
I deleted a Bookmark in Nextcloud (in bookmark root folder)
Result:
Sync with floccus always stops with E022
Delete account in floccus and create it again.
Reset with >>Neue Synchronisierung von Grund auf auslösen<< does not solve the issue.
The intire behaviour is reproduceable.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Die Option "Nextcloud Bookmarks" ist kompatibel mit mindestens Version v0.14 der Bookmarks app.<<)
Server (please complete the following information):
Note: Please write down the actual version numbers instead of writing 'latest'.
Debug log
2020-05-06T15:06:44.276Z Fetching bookmarks
2020-05-06T15:06:45.335Z Received bookmarks from server [ - #1https://xxxxxxxxxxxxxxxxxxxxxxxxxxx.xxx parentId: 2 ]
2020-05-06T15:06:46.391Z Received initial folders from server (may be incomplete) [ { id: 2,
title: 'Folder1',
userId: 'User1',
parent_folder: 1,
children: [] } ]
2020-05-06T15:06:47.505Z Received initial children order from server (may be incomplete) [ { type: 'folder', id: 2, children: [ [Object] ] },
{ type: 'bookmark', id: 57 } ]
2020-05-06T15:06:47.507Z [Error: E022: Ordner #-1[undefined] enhält angeblich ein nicht existierendes Lesezeichen: 57]
2020-05-06T15:06:47.507Z Syncing failed with E022: Ordner #-1[undefined] enhält angeblich ein nicht existierendes Lesezeichen: 57
Additional context
Add any other context about the problem here.
@BeatVonwil commented on GitHub (May 6, 2020):
Solved!
I manually deleted bookmark '57' from Nextclouds mySQL DB. Then synchronization ran entirely.
Deleting a bookmark in Nextcloud maybe left an inconsistent record.
@marcelklehr commented on GitHub (May 6, 2020):
Did you delete that bookmark with v3.0.10 or before updating?
@marcelklehr commented on GitHub (May 6, 2020):
I cannot replicate this with v3.0.10.
@BeatVonwil commented on GitHub (May 7, 2020):
I started from scratch with 3.0.10. I never had an earlier version.
I can reproduce it. It seems to be an error of app (nexcloud bookmark app 3.0.10). The delete function seems to be incomplete.
What I did.
I have an NC account with 2 folders and 3 bookmarks
synced with floccus. ok.
in Firefox bookmark manager I copied other folders with ~50 bookmarks into NC folder
synced with floccus. ok.
In app I selected all bookmarks without tags and deleted them. I did not delete the newly created folders.
synced with floccus. Error E022.
Solution: Also deleting newly created, empty folders in app cleaned the issue. Syncing with floccus runs successfully.
I parallely verified all in DB. After deletion, cc_bookmarks_tree lists bookmarks that do no longer exist. Deleting the directory does not clean cc_bookmarks_tree. But since the directory does no longer exist, the corpses will not be queried.
@marcelklehr commented on GitHub (May 7, 2020):
Aha! Thanks for the reproduction steps. Will release a fix shortly.
@marcelklehr commented on GitHub (May 7, 2020):
Fix released.
@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.