-
Notifications
You must be signed in to change notification settings - Fork 127
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
.well-known request comes with a double slash - federation delegation not working as expected #3827
Comments
Hi, thanks for reporting this. The double slash sounds like a bug, however .well-known look-up isn't meant to respect delegation, it is computed from your user ID. This spec provides more detail about how this works: https://spec.matrix.org/v1.13/client-server-api/#well-known-uri |
Thanks for looking into this! What I meant is, that subsequent request are not considering the federation delegation. I fixed this (until further notice) by forwarding all server.tld/_matrix traffic respectively. |
The subsequent requests are not meant to do anything different to the first requests. The Also, fwiw clients have nothing to do with federation - only |
I made sure, that the .well-known file can by found under server.tld (by Traefik, hosted by nginx). This holds for a server and client file. The client file says:
Isn't that meant for delegation (user names are @user:server.tld)? |
Ohhhh wait sorry. So it's doing |
Steps to reproduce
I discovered failed Element requests in my Traefik logs showing that the .well-known request of Element X for iOS starts with a double "/":
[25/Feb/2025:14:46:22 +0000] "GET //.well-known/element/element.json HTTP/1.1" 404 1236 "-" "Element X/25.02.0
Moreover Element X ignored federation delegation on my server which I fixed within Traefik. Synapse is hosted on matrix.server.tld, but requests where send to server.tld despite delegation, so I forwarded everything starting with server.tld/_matrix to matrix.server.tld/_matrix ...
Outcome
What did you expect?
Request should just contain one /, .well-known files is loaded/considered respectively and further request are considering delegation.
What happened instead?
Request contains two slashed, .well-known files are ignored.
Your phone model
iPhone 13
Operating system version
iOS 18.3.1
Application version
25.02.0
Homeserver
1.124.0
Will you send logs?
No
The text was updated successfully, but these errors were encountered: