Import not working with folders #13

Closed
opened 2025-11-07 06:18:55 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @thomasave on GitHub (Jun 13, 2018).

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). 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)
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)

@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?

@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.

@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.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#13