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

GET well-known file. Incorrect DNS address when server name and domain name are different. #28117

Closed
H3lpD3sk-H3r0 opened this issue Sep 28, 2024 · 1 comment
Labels
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

@H3lpD3sk-H3r0
Copy link

Steps to reproduce

  1. Launch the Element WEB application at https://develop.element.io/
  2. Log in to a user account on matrixsynapse.ddns.net.
  3. Open the development tools in the browser.
  4. Find in the console the step of requesting well-known from homeserver.

Screenshot:
error_from_element_web

Outcome

What did you expect?

The file will be requested at the server address: https://matrixsynapse.ddns.net/.well-known/matrix/client.

What happened instead?

The file was requested by the server name https://tyga-matrix/.well-known/matrix/client

How can I get around it?

Option 1: Spoof the GET request using Carles Proxy.
Option 2. Overrite the init.js file using a browser debuger. Change the logic of the getDomain() function in the file. But this does not solve the root cause.

Operating system

Windows 10

Browser information

MS Edge 129.0.2792.65 (x64)

URL for webapp

develop.element.io

Application version

Element version: 1b31e7f-react-8962e8cdd3f6-js-baa6d1350656 Crypto version: Rust SDK 0.7.2 (7a21514), Vodozemac 0.7.0

Homeserver

Synapse 1.115.0

Will you send logs?

Yes

@dosubot dosubot bot added 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 Sep 28, 2024
@t3chguy
Copy link
Member

t3chguy commented Sep 30, 2024

The file was requested by the server name tyga-matrix/.well-known/matrix/client

This is as per the spec, the well-known is hosted on the server_name not the URL. https://spec.matrix.org/v1.11/client-server-api/#well-known-uri

@t3chguy t3chguy closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

2 participants