-
Notifications
You must be signed in to change notification settings - Fork 418
MSC2499: Fixes for Well-known URIs #2499
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
base: main
Are you sure you want to change the base?
Changes from all commits
2f19796
9ca1b65
1a6a0e4
4c2d13a
a8b5fbd
4fb1292
fb2186b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,28 @@ | ||||||||
| # MSC2499: Fixes for Well-Known URIs | ||||||||
|
|
||||||||
| Several minor issues and inconsistencies have come up with the well-known URIs used for | ||||||||
| discovering clients and servers. This proposal intends to fix these issues. | ||||||||
|
|
||||||||
| ## Proposal | ||||||||
|
|
||||||||
| The following changes should be made to the spec: | ||||||||
|
|
||||||||
| 1. The spec does not mention that redirects should be followed for `/.well-known/matrix/client` | ||||||||
| and does not clearly specify what type of redirects should be followed for `/.well-known/matrix/server`. | ||||||||
| To fix this, the spec should be changed to state that when a well-known URI is requested, | ||||||||
| the client or server should follow HTTP 301, 302, 303, 307, and 308 redirects up to 30 times. | ||||||||
aaronraimist marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
|
|
||||||||
| 1. Currently the spec does not mention which Content-Type should be used for the response to | ||||||||
| `/.well-known/matrix/client`. The Client-Server spec should be changed to state the Content-Type | ||||||||
| SHOULD be `application/json` however it should be assumed to be JSON regardless of Content-Type. | ||||||||
| This is consistent with the Server-Server API. | ||||||||
|
|
||||||||
| 1. Step 3f in the Client-Server well-known flow should be changed to use the modern | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
The latest rendering of the spec uses numbers for the sub-steps instead of letters |
||||||||
| `/_matrix/identity/versions` API to validate the identity server rather than the deprecated | ||||||||
| `/_matrix/identity/api/v1`. | ||||||||
|
|
||||||||
| 1. Mark the `/_matrix/identity/v2` status check API as deprecated. `/_matrix/identity/versions` | ||||||||
| is the suggested replacement. | ||||||||
|
|
||||||||
| 1. The maximum size of the well-known file is 51200 bytes. A client or server | ||||||||
| requesting a well-known file MUST abort and FAIL_PROMPT if the response exceeds 51200 bytes. | ||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Though #2499 (comment) says that this check is supposed to be removed entirely.) |
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The server-server spec simply states
30x redirects should be followed, however redirection loops should be avoided.which is short, reasonable but not overcomplicated. Adopting the same for the Client-Server spec sounds reasonable?