[GH-ISSUE #344] Error adding cipher to folder #193

Closed
opened 2026-03-03 01:26:33 +03:00 by kerem · 3 comments
Owner

Originally created by @bassarf on GitHub (Jan 16, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/344

When adding an item and assigning that to a folder during the creating process I get an "Error adding cipher to folder" error. In the original bitwarden server this is no problem.

Steps to reproduce

This should work with any app (web, android, browser-plugin,...)

  1. hit the "+" or create entry button
  2. put in some test entry stuff
  3. make sure that a folder is selected
  4. try to save it
  5. get the error message

Worth noting that: when you create an item and you edit it and move it to a folder after it is created, that is no problem. Just in the initial creation process we get this error

Originally created by @bassarf on GitHub (Jan 16, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/344 When adding an item and assigning that to a folder during the creating process I get an "Error adding cipher to folder" error. In the original bitwarden server this is no problem. ### Steps to reproduce This should work with any app (web, android, browser-plugin,...) 1. hit the "+" or create entry button 1. put in some test entry stuff 1. make sure that a folder is selected 1. try to save it 1. get the error message Worth noting that: when you create an item and you edit it and move it to a folder _after_ it is created, that is no problem. Just in the initial creation process we get this error
kerem closed this issue 2026-03-03 01:26:33 +03:00
Author
Owner

@dani-garcia commented on GitHub (Jan 16, 2019):

This is probably caused by github.com/dani-garcia/bitwarden_rs@4bf32af60e, specifically moving the save after the move. When the cipher doesn't exist, we can't create the cipher<->folder mapping.

<!-- gh-comment-id:454894179 --> @dani-garcia commented on GitHub (Jan 16, 2019): This is probably caused by https://github.com/dani-garcia/bitwarden_rs/commit/4bf32af60e7687c4e13650d2b232679817cefde7, specifically moving the save after the move. When the cipher doesn't exist, we can't create the cipher<->folder mapping.
Author
Owner

@dani-garcia commented on GitHub (Jan 16, 2019):

Should be fixed now, in github.com/dani-garcia/bitwarden_rs@1ce2587330.

<!-- gh-comment-id:454898606 --> @dani-garcia commented on GitHub (Jan 16, 2019): Should be fixed now, in https://github.com/dani-garcia/bitwarden_rs/commit/1ce2587330090d79c7d29d66ea6786b866e9e6d0.
Author
Owner

@bassarf commented on GitHub (Jan 18, 2019):

just reporting back, that I could test it successfully.
Thank you for the quick fix

<!-- gh-comment-id:455532154 --> @bassarf commented on GitHub (Jan 18, 2019): just reporting back, that I could test it successfully. Thank you for the quick fix
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/vaultwarden#193
No description provided.