mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
I can`t open attachments #335
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 @gerroon on GitHub (Jul 12, 2019).
Hi
I am using the Docker image. I have attachments in some entries (image, pdfs etc) When I try to open them in the web app , I am getting the errors below, I get
An Error Occuredin the page@mprasil commented on GitHub (Jul 15, 2019):
Any proxy in front?
@gerroon commented on GitHub (Jul 15, 2019):
Hi
Yes forgot to mention, I am running it behind Apache proxy, using the proxy settings provided in the wiki.
@mprasil commented on GitHub (Jul 15, 2019):
Can you see if anything relevant pops up in Apache logs? The above logs doesn't seem to be relevant which makes me think there is some Apache configuration blocking attachment requests.
@gerroon commented on GitHub (Jul 16, 2019):
Well those lines of the log is created right when I try to open an attachment.
I will take a look at the apache logs.
@mprasil commented on GitHub (Jul 17, 2019):
Ah I've noticed the attachment URL is appended to the sync API call. This sounds like wrong configuration on apache side. Can you share your config?
@gerroon commented on GitHub (Jul 17, 2019):
@mprasil commented on GitHub (Jul 18, 2019):
That part seems Okay, there must be some other configuration that's interfering with the requests. My main concern is this part:
This seems to be concatenation of two request paths:
This one is for synchronization and obviously requires login token. (which is why it is complaining about it's absence)
Actual attachment download request as it should be. AFAIK this one does not require token. So it seems like your client app actually sends this request correctly, but something in between mangles the request and it is then hitting the wrong
syncendpoint.Hope that makes sense.
@gerroon commented on GitHub (Jul 18, 2019):
@mprasil sure it makes sense but it does not solve my issue :)
Are you guys able to download attachments in a similar setup?
@mprasil commented on GitHub (Jul 19, 2019):
I don't use Apache, so unfortunately can't verify that. But the config you posted seems alright.
The reason the attachment download fails seems to be due to malformed request, so the only outstanding question is what causes this.
To rule out client issue, you can test with curl:
curl -v "http://yourserver/<attachment_path_from_above>"And see the curl output and server logs. That might pinpoint the source of issues.
@gerroon commented on GitHub (Jul 19, 2019):
@mprasil, thank you for the reply. I will try your recommendation.
@mprasil commented on GitHub (Jul 27, 2019):
Any update? Is this resolved?
@gerroon commented on GitHub (Aug 1, 2019):
@mprasil
It does not work. I am even connecting to it using the actual IP of local connection and I am getting the exact same problem.
I have no problem attaching a file to an item.
Does downloading attachments work for you?
Here is the error with direct IP connection (o the Docker container), there are couple new lines with more clarity.
As far as I can tell the attachments are there.Maybe there is a typo in the code?
(persistent volume)
bitwarden/attachments/6772a42a-ad76-4d0a-83fe-246b73c9c49fls -alh@gerroon commented on GitHub (Aug 1, 2019):
Also interesting, I upgraded the docker image from
2.10.1to2.11and I am now getting a totally different and unhelpful log lines when clicked on an attachment. Again this is a direct connection to the Docker server.2.10 was giving me 500, this one is givng me 401
see the file
attachments/6772a42a-ad76-4d0a-83fe-246b73c9c49f/5dbdba5a85557aaf6ef9is there againThis is how I run it
docker run -d --name bitwarden -v /media/DRIVE/bitwarden:/data/ -p 4080:80 -p 3012:3012 bitwardenrs/server:latest@mprasil commented on GitHub (Aug 1, 2019):
Have you also tried the latest image? I was testing with
latestand with Vault and Firefox extension as a client and it worked fine in both cases for me - both uploading and downloading.Did you try with curl?
I've used the attachment URL from your logs above, but if that attachment is gone, adapt the URL to some valid ID.
@gerroon commented on GitHub (Aug 1, 2019):
This is what I get
https://bin.privacytools.io/?151dceae1a126917#7i7Wgpk1dzogng6eNHNemfutlD8rpv3lA5UBT5jLyaI=
@mprasil commented on GitHub (Aug 2, 2019):
Did you see corresponding request also in bitwarden_rs logs?
@mprasil commented on GitHub (Aug 15, 2019):
Any update @gerroon ?
@mprasil commented on GitHub (Aug 20, 2019):
I'm going to resolve this hoping that no response means the problem was resolved. Feel free to reopen if issue still persists.