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

Media downloads ignore path in homeserver URL #28507

Open
sumnerevans opened this issue Nov 20, 2024 · 1 comment
Open

Media downloads ignore path in homeserver URL #28507

sumnerevans opened this issue Nov 20, 2024 · 1 comment
Labels
A-Media O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect

Comments

@sumnerevans
Copy link

Steps to reproduce

I make my homeserver accessible via tailscale to all of my devices using tailscale serve with a path. Thus, my homeserver URL is: https://automattic.tail3c5d.ts.net/matrix.

Sync/event send/etc. requests are correctly sent to https://automattic.tail3c5d.ts.net/matrix/_matrix/..., but media downloads are not sent to the correct homeserver.

Outcome

What did you expect?

I expect that media downloads go to

https://automattic.tail3c5d.ts.net/matrix/_matrix/media/v3/...

endpoints.

What happened instead?

When my client tries to download images, it uses the incorrect URL:

https://automattic.tail3c5d.ts.net/_matrix/media/v3/...

(notice the missing /matrix prefix which is a subpath configured in tailscale)

Operating system

Linux

Browser information

Chromium Version 130.0.6723.116 (Official Build) (64-bit)

URL for webapp

develop.element.io

Application version

Element version: 5d7c712-js-2210255d6ffc Crypto version: Rust SDK 0.7.2 (517d99b), Vodozemac 0.7.0

Homeserver

Synapse

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-Minor Impairs non-critical functionality or suitable workarounds exist labels Nov 20, 2024
@t3chguy
Copy link
Member

t3chguy commented Nov 20, 2024

Related element-hq/element-desktop#1924

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-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect
Projects
None yet
Development

No branches or pull requests

2 participants