[GH-ISSUE #42] Import not working with folders #14

Closed
opened 2026-03-03 01:23:45 +03:00 by kerem · 3 comments
Owner

Originally created by @thomasave on GitHub (Jun 13, 2018).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/42

When importing a file that contains folders using the Web Vault, I get the following error message:

POST /api/ciphers/import application/json; charset=utf-8:
    => Matched: POST /api/ciphers/import
    => Error: Couldn't parse JSON body: Error("missing field `key`", line: 1, column: 602)
    => Outcome: Failure
    => Warning: Responding with 400 Bad Request catcher.
    => Response succeeded.

I've attached a simple KeePass 2 (xml) file that causes a problem. (rename to .xml)
folders.txt

Originally created by @thomasave on GitHub (Jun 13, 2018). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/42 When importing a file that contains folders using the Web Vault, I get the following error message: ``` POST /api/ciphers/import application/json; charset=utf-8: => Matched: POST /api/ciphers/import => Error: Couldn't parse JSON body: Error("missing field `key`", line: 1, column: 602) => Outcome: Failure => Warning: Responding with 400 Bad Request catcher. => Response succeeded. ``` I've attached a simple KeePass 2 (xml) file that causes a problem. (rename to .xml) [folders.txt](https://github.com/dani-garcia/bitwarden_rs/files/2098031/folders.txt)
kerem closed this issue 2026-03-03 01:23:46 +03:00
Author
Owner

@dani-garcia commented on GitHub (Jun 13, 2018):

Thanks! I had forgotten to change a couple of values to uppercase. This should be fixed with the latest commit (0905355)

<!-- gh-comment-id:396923120 --> @dani-garcia commented on GitHub (Jun 13, 2018): Thanks! I had forgotten to change a couple of values to uppercase. This should be fixed with the latest commit (0905355)
Author
Owner

@thomasave commented on GitHub (Jun 13, 2018):

Thanks, it works now!
Is it sufficient to backup the data folder to be able to restore the server?

<!-- gh-comment-id:396946661 --> @thomasave commented on GitHub (Jun 13, 2018): Thanks, it works now! Is it sufficient to backup the `data` folder to be able to restore the server?
Author
Owner

@dani-garcia commented on GitHub (Jun 13, 2018):

Yeah everything needed is inside that folder. You can delete the data/icon_cache folder to save space, though.

<!-- gh-comment-id:396948381 --> @dani-garcia commented on GitHub (Jun 13, 2018): Yeah everything needed is inside that folder. You can delete the `data/icon_cache` folder to save space, though.
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#14
No description provided.