mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-12 01:45:56 -05:00
Downloading attachments does not work #1247
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fabsau on GitHub (Apr 12, 2022).
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: ADMIN_TOKEN
##Traefik Labels (for testing this issue, not for production!):
labels:
- traefik.enable=true
- traefik.http.routers.vaultwarden.entrypoints=https
- traefik.http.routers.vaultwarden.rule=Host(
contoso.com)- traefik.http.routers.vaultwarden.tls.certresolver=microsoft
- traefik.http.routers.vaultwarden.service=vaultwarden
- traefik.http.services.vaultwarden.loadbalancer.server.port=80
- com.centurylinklabs.watchtower.enable=true
Steps to reproduce
Upload an attachment via the android-app or browser to an item. Trying to download it afterwards either via browser or android does not work. Files are being created on the docker-volume.
Also tested: purged the whole attachments folder and reproducing did not fix. Attachments would be deleted inside the volume if attachments has been removed from the item.
Also tested: using sqlite and with earlier vaultwarden version 1.23.1
Actual behaviour
Can not download attachments
Expected behaviour
Downloading attachments
Troubleshooting data
2022-04-11T21:26:26.592955460Z [2022-04-11 23:26:26.592][request][INFO] POST /api/ciphers/64d5f3ae-c167-4e5c-8bd7-5e229f0e281f/attachment/v2
2022-04-11T21:26:26.595040738Z [2022-04-11 23:26:26.594][response][INFO] POST /api/ciphers//attachment/v2 (post_attachment_v2) => 200 OK
2022-04-11T21:26:26.681630789Z [2022-04-11 23:26:26.681][request][INFO] POST /api/ciphers/64d5f3ae-c167-4e5c-8bd7-5e229f0e281f/attachment/53b941f83c0
2022-04-11T21:26:26.682256520Z [2022-04-11 23:26:26.682][multipart::server][INFO] Multipart::with_boundary(_, "----WebKitFormBoundaryaSToTAPjuA2rgP1s
2022-04-11T21:26:26.872725019Z [2022-04-11 23:26:26.872][response][INFO] POST /api/ciphers//attachment/<attachment_id> multipart/form-data (pos
2022-04-11T21:26:27.148444088Z [2022-04-11 23:26:27.148][request][INFO] GET /api/ciphers/64d5f3ae-c167-4e5c-8bd7-5e229f0e281f
2022-04-11T21:26:27.148936508Z [2022-04-11 23:26:27.148][response][INFO] GET /api/ciphers/ (get_cipher) => 200 OK
2022-04-11T21:26:34.865964461Z [2022-04-11 23:26:34.865][request][INFO] GET /api/ciphers/64d5f3ae-c167-4e5c-8bd7-5e229f0e281f/attachment/53b941f83c01
2022-04-11T21:26:34.866642231Z [2022-04-11 23:26:34.866][response][INFO] GET /api/ciphers//attachment/<attachment_id> (get_attachment) => 200 O
2022-04-11T21:34:05.685089216Z [2022-04-11 23:34:05.684][parity_ws::io][INFO] Accepted a new tcp connection from 172.31.18.4:38552.
2022-04-11T21:34:05.787886303Z [2022-04-11 23:34:05.787][request][INFO] GET /api/accounts/revision-date
2022-04-11T21:34:05.788437373Z [2022-04-11 23:34:05.788][response][INFO] GET /api/accounts/revision-date (revision_date) => 200 OK
2022-04-11T21:34:05.818686406Z [2022-04-11 23:34:05.817][request][INFO] POST /identity/connect/token
2022-04-11T21:34:05.821498437Z [2022-04-11 23:34:05.821][response][INFO] POST /identity/connect/token (login) => 200 OK
2022-04-11T21:34:06.206025081Z [2022-04-11 23:34:06.205][request][INFO] GET /api/sync
2022-04-11T21:34:06.253642975Z [2022-04-11 23:34:06.253][response][INFO] GET /api/sync?<data..> (sync) => 200 OK
On Android:
"Unable to download file"
@BlackDex commented on GitHub (Apr 12, 2022):
Your domain configuration is wrong:
Check the
DOMAINconfiguration to match the actual domain you use, else downloading attachments will not work.