element-web icon indicating copy to clipboard operation
element-web copied to clipboard

Downloading image via full screen toolbar fails with JSON M_NOTFOUND

Open krachynski opened this issue 1 year ago • 4 comments

Steps to reproduce

  1. In any room click on an image
  2. See the full page display with the control toolbar
  3. Click on download on the toolbar

Outcome

What did you expect?

I expected the image to download.

What happened instead?

A new tab was opened up with a JSON response. {"errcode":"M_NOT_FOUND","error":"Not found"}

Operating system

Windows 11

Browser information

Firefox 130

URL for webapp

app.element.io

Application version

Element version: 1.11.76 Crypto version: Rust SDK 0.7.1 (c8c9d15), Vodozemac 0.6.0

Homeserver

matrix.org

Will you send logs?

Yes

krachynski avatar Sep 05 '24 17:09 krachynski

triager: this is distinct from https://github.com/element-hq/element-web/issues/28011 because media is loading, but the download button specifically fails.

turt2live avatar Sep 06 '24 15:09 turt2live

is it browser related issue ? it works well in brave and chrome

Krishcode264 avatar Sep 18 '24 02:09 Krishcode264

It happens in unencrypted rooms on servers with authenticated media enabled like matrix.org. happens on chrome, 128.0.6613.138, firefox 130.0, element 1.11.77. Two people I asked to test, using app.element.io and matrix.org, also have the issue. It started happening on my own server too when I enabled authenticated media, so I had to turn it back off. It makes it impossible to save images, as even right-clicking and saving the image fails or gives a json file.

Does not affect encrypted rooms where the images are blobs and don't have URLs.

ledlamp avatar Sep 18 '24 03:09 ledlamp

Just hit this in an unencrypted room, when it opens in Firefox. You can get around this on Element Desktop by clicking the download button when you hover over the image confusingly, I guess the code paths are different.

kegsay avatar Oct 10 '24 07:10 kegsay

Also getting this....

freelock avatar Nov 02 '24 01:11 freelock

Oh, that is right.

This button works fine: image

This one does not: image

image

Element version 1.11.83 Chrome 130

ledlamp avatar Nov 02 '24 04:11 ledlamp