FS#76967 - [bitwarden-cli] File upload to Vaultwarden instances is broken
Attached to Project:
Community Packages
Opened by Johannes Hörmann (aligator) - Friday, 30 December 2022, 18:48 GMT
Last edited by Toolybird (Toolybird) - Friday, 30 December 2022, 22:34 GMT
Opened by Johannes Hörmann (aligator) - Friday, 30 December 2022, 18:48 GMT
Last edited by Toolybird (Toolybird) - Friday, 30 December 2022, 22:34 GMT
|
Details
Description:
The 2022.11.0 version of the bitwarden-cli cannot upload files: ``` ~ bw create attachment --file /tmp/vaultwarden-favicon.png --itemid ddfd114b-ca18-45bc-b8e4-42da43a71bde <!DOCTYPE html> <html lang="en"> ... <h1>400: Bad Request</h1> <p>The request could not be understood by the server due to malformed syntax.</p> ... ``` and vaultwarden logs this: ``` vaultwarden | [2022-12-30 13:49:36.453][_][WARN] Data guard `Form < UploadData < '_ > >` failed: Errors([Error { name: Some("data"), value: None, kind: Io(Custom { kind: Other, error: field "data" received with incomplete data }), entity: Form }]). vaultwarden | [2022-12-30 13:49:36.453][_][WARN] No 400 catcher registered. Using Rocket default. ``` However the file from https://github.com/bitwarden/clients/releases/tag/cli-v2022.11.0 does work. According to this discussion: https://github.com/dani-garcia/vaultwarden/discussions/3074 It may have to do with a too new node / npm version in arch. Additional info: * package version: 2022.11.0-1 * link to upstream bug report: https://github.com/dani-garcia/vaultwarden/discussions/3074 * node version: v18.12.1 Steps to reproduce: log into a vaultwarden with `bw` (maybe it is broken for bitwarden also...) then run `bw create attachment --file {any file} --itemid {any id of your installation}` |
This task depends upon
Closed by Toolybird (Toolybird)
Friday, 30 December 2022, 22:34 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#74929
Friday, 30 December 2022, 22:34 GMT
Reason for closing: Duplicate
Additional comments about closing:
Until Bitwarden has updated there build environment it will not work with v18.