Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service Worker (sw.js) is not working correctly for Firefox Browser -> Cannot view authenticated Media anymore #28370

Open
jameskitt616 opened this issue Nov 3, 2024 · 0 comments
Labels
A-Media O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect

Comments

@jameskitt616
Copy link

jameskitt616 commented Nov 3, 2024

Steps to reproduce

  1. Use Firefox Browser (or Firefox based like Tor)
  2. Use any up-to-date Element instance. e.g. https://app.element.io
  3. Log into a Homeserver with authenticated media enabled.
  4. Now Pictures wont load with a very high chance and Videos basically never work.

Outcome

What did you expect?

To view the Media, e.g. the picture or video

What happened instead?

A 404 request got returned because the old /_matrix/media/v3/download URL got called by element web, instead of the new /_matrix/client/v1/media/download URL

image

# Element web request


2024-11-02 10:30:08,471 - synapse.access.http.8008 - 428 - DEBUG - GET-4928 - 192.168.178.1 - 8008 - Received request: GET /_matrix/media/v3/download/jameskitt616.one/wfDMUEttAKzpoDtwESGuIMgy?allow_redirect=true
2024-11-02 10:30:08,473 - synapse.http.server - 130 - INFO - GET-4928 - <XForwardedForRequest at 0x7192041739d0 method='GET' uri='/_matrix/media/v3/download/jameskitt616.one/wfDMUEttAKzpoDtwESGuIMgy?allow_redirect=true' clientproto='HTTP/1.1' site='8008'> SynapseError: 404 - Not found
2024-11-02 10:30:08,473 - synapse.access.http.8008 - 473 - INFO - GET-4928 - 192.168.178.1 - 8008 - {None} Processed request: 0.002sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.001sec/1) 45B 404 "GET /_matrix/media/v3/download/jameskitt616.one/wfDMUEttAKzpoDtwESGuIMgy?allow_redirect=true HTTP/1.1" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" [0 dbevts]


# Cinny web request


2024-11-02 10:30:16,844 - synapse.access.http.8008 - 428 - DEBUG - OPTIONS-5043 - 192.168.178.1 - 8008 - Received request: OPTIONS /_matrix/client/v1/media/download/jameskitt616.one/wfDMUEttAKzpoDtwESGuIMgy?allow_redirect=true
2024-11-02 10:30:16,844 - synapse.access.http.8008 - 473 - DEBUG - OPTIONS-5043 - 192.168.178.1 - 8008 - {None} Processed request: 0.000sec/-0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 0B 204 "OPTIONS /_matrix/client/v1/media/download/jameskitt616.one/wfDMUEttAKzpoDtwESGuIMgy?allow_redirect=true HTTP/1.1" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" [0 dbevts]

Operating system

Linux Fedora 41

Browser information

Firefox 132.0

URL for webapp

https://app.element.io/, https://element.jameskitt616.one/

Application version

jameskitt616 version: 1.11.83 Crypto version: Rust SDK 0.7.2 (7a21514), Vodozemac 0.7.0;;;;;;;Element version: 1.11.83 Crypto version: Rust SDK 0.7.2 (7a21514), Vodozemac 0.7.0

Homeserver

matrix.jameskitt616.one Synapse 1.118.0

Will you send logs?

No

@dosubot dosubot bot added A-Media O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround labels Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Media O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect
Projects
None yet
Development

No branches or pull requests

1 participant