element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.01k stars 1.96k forks source link

Downloading image via full screen toolbar fails with JSON M_NOTFOUND #28018

Open krachynski opened 2 weeks ago

krachynski commented 2 weeks ago

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

turt2live commented 2 weeks ago

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

Krishcode264 commented 3 days ago

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

ledlamp commented 3 days ago

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.