[GH-ISSUE #1159] Failed to decrypt file when moved to another folder #774

Closed
opened 2026-02-25 22:38:03 +03:00 by kerem · 11 comments
Owner

Originally created by @mneiger on GitHub (May 11, 2022).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1159

Which version of floccus are you using?

4.13.1

Sync method

{"label"=>"WebDAV"}

Which browser are you using? In case you are using the Android App, specify the Android version please.

Opera 86.0.4363.50 / FIrefox 100.0

Which version of Nextcloud Bookmarks are you using? (if relevant)

No response

Which version of Nextcloud? (if relevant)

v23.0.3

What kind of WebDAV server are you using? (if relevant)

Nextcloud v23.0.3

Describe the Bug

if I move the bookmark xbel file to another folder and adjust the floccus configuration accordingly, then it refuses to sync again and reports:

E030: Failed to decrypt bookmarks file. The passphrase may be wrong or the file may be corrupted

floccus-4.13.1-2022-05-11.log

resetting to old location works

Expected Behavior

it should accept to the new file location and continue syncing

To Reproduce

stop auto-sync
connect to nextcloud (webdav) server
move the xbel file to another location
wait some time (just in case)
edit floccus options and adjust "bookmarks file path" accordingly
save the options
ask floccus to "sync now"

Debug log provided

  • I have provided a debug log file
Originally created by @mneiger on GitHub (May 11, 2022). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1159 ### Which version of floccus are you using? 4.13.1 ### Sync method {"label"=>"WebDAV"} ### Which browser are you using? In case you are using the Android App, specify the Android version please. Opera 86.0.4363.50 / FIrefox 100.0 ### Which version of Nextcloud Bookmarks are you using? (if relevant) _No response_ ### Which version of Nextcloud? (if relevant) v23.0.3 ### What kind of WebDAV server are you using? (if relevant) Nextcloud v23.0.3 ### Describe the Bug if I move the bookmark xbel file to another folder and adjust the floccus configuration accordingly, then it refuses to sync again and reports: > E030: Failed to decrypt bookmarks file. The passphrase may be wrong or the file may be corrupted [floccus-4.13.1-2022-05-11.log](https://github.com/floccusaddon/floccus/files/8672254/floccus-4.13.1-2022-05-11.log) resetting to old location works ### Expected Behavior it should accept to the new file location and continue syncing ### To Reproduce stop auto-sync connect to nextcloud (webdav) server move the xbel file to another location wait some time (just in case) edit floccus options and adjust "bookmarks file path" accordingly save the options ask floccus to "sync now" ### Debug log provided - [X] I have provided a debug log file
Author
Owner

@mneiger commented on GitHub (May 19, 2022):

Still in 4.14.0

<!-- gh-comment-id:1131297740 --> @mneiger commented on GitHub (May 19, 2022): Still in 4.14.0
Author
Owner

@mneiger commented on GitHub (Jun 1, 2022):

Still here in 4.15.0

<!-- gh-comment-id:1143227400 --> @mneiger commented on GitHub (Jun 1, 2022): Still here in 4.15.0
Author
Owner

@mneiger commented on GitHub (Jun 27, 2022):

and still here in 4.16.0 :-(

<!-- gh-comment-id:1167983126 --> @mneiger commented on GitHub (Jun 27, 2022): and still here in 4.16.0 :-(
Author
Owner

@mneiger commented on GitHub (Aug 8, 2022):

Still here in 4.17.0 and nextcloud 23.0.4

<!-- gh-comment-id:1207923345 --> @mneiger commented on GitHub (Aug 8, 2022): Still here in 4.17.0 and nextcloud 23.0.4
Author
Owner

@mneiger commented on GitHub (Sep 6, 2022):

And still here in 4.17.1 and nextcloud 24.0.4 :-(

<!-- gh-comment-id:1238589216 --> @mneiger commented on GitHub (Sep 6, 2022): And still here in 4.17.1 and nextcloud 24.0.4 :-(
Author
Owner

@marcelklehr commented on GitHub (Sep 17, 2022):

Hey @mneiger Thank you for reporting this. I can confirm this is an issue. It's currently by design, but I can understand that this is frustrating. That said, Google Drive is not a high priority for me atm, so it will take some time until I get to this.

<!-- gh-comment-id:1250124504 --> @marcelklehr commented on GitHub (Sep 17, 2022): Hey @mneiger Thank you for reporting this. I can confirm this is an issue. It's currently by design, but I can understand that this is frustrating. That said, Google Drive is not a high priority for me atm, so it will take some time until I get to this.
Author
Owner

@mneiger commented on GitHub (Sep 17, 2022):

Hi @marcelklehr , thanks for the confirmation. I feared it was something like the path being embedded in the encrypting code. It really means I will have to handle my migration another way.
However, I'm not using google drive but webdav on Nextcloud which is a more "native" platform to Floccus.

<!-- gh-comment-id:1250128703 --> @mneiger commented on GitHub (Sep 17, 2022): Hi @marcelklehr , thanks for the confirmation. I feared it was something like the path being embedded in the encrypting code. It really means I will have to handle my migration another way. However, I'm not using google drive but webdav on Nextcloud which is a more "native" platform to Floccus.
Author
Owner

@mneiger commented on GitHub (Oct 6, 2022):

Hi @marcelklehr ,
I finally migrated my bookmark data by recreating the xbel file.
I'm still ready to help testing if there's ever a fix. However, if this is webdav specific, I wonder whether this is not in the end to be considered a duplicate of #1263 .

Thanks.

<!-- gh-comment-id:1269582250 --> @mneiger commented on GitHub (Oct 6, 2022): Hi @marcelklehr , I finally migrated my bookmark data by recreating the xbel file. I'm still ready to help testing if there's ever a fix. However, if this is webdav specific, I wonder whether this is not in the end to be considered a duplicate of #1263 . Thanks.
Author
Owner

@marcelklehr commented on GitHub (Jul 6, 2024):

I'm starting to migrate the encryption now to move away from using the path as a salt. Once this change has propagated to all clients, I can roll out the actual change, in about a month.

<!-- gh-comment-id:2211705452 --> @marcelklehr commented on GitHub (Jul 6, 2024): I'm starting to migrate the encryption now to move away from using the path as a salt. Once this change has propagated to all clients, I can roll out the actual change, in about a month.
Author
Owner

@marcelklehr commented on GitHub (Nov 20, 2024):

The change was now released and this should no longer occur.

<!-- gh-comment-id:2488104620 --> @marcelklehr commented on GitHub (Nov 20, 2024): The change was now released and this should no longer occur.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 21, 2025):

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:3560779025 --> @github-actions[bot] commented on GitHub (Nov 21, 2025): 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#774
No description provided.