-
Notifications
You must be signed in to change notification settings - Fork 379
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
Describe Matrix URI scheme #3168
Conversation
Spec for #2312
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.
(Some comments, close them it if it's not requested from the community to comment on these PRs, I just have some nits)
There are two major kinds of referring to a resource in Matrix: matrix.to | ||
and `matrix:` URI. The specification currently defines both as active/valid | ||
ways to refer to entities/resources. |
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.
No preference/note of deprecation of the former?
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 MSC didn't deprecate anything
|
||
Note that this format is deliberately following [RFC 3986](https://tools.ietf.org/html/rfc3986) | ||
to ensure maximum compatibility with existing tooling. This URI scheme is | ||
registered with the IANA [here](https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml). |
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.
registered with the IANA [here](https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml). | |
registered with the IANA [here](https://www.iana.org/assignments/uri-schemes/prov/matrix). |
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.
Long term I'd expect that URL to change, so didn't want to have a broken link.
service - see below for more details. | ||
During development of this URI format, types of `user`, `room`, and `event` | ||
were used: these MUST NOT be produced any further, though implementations might | ||
wish to consider handling them as `u`, `r`, and `e` respectively. |
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.
wish to consider handling them as `u`, `r`, and `e` respectively. | |
wish to consider handling them as `u`, `r`, and `e` respectively. | |
`roomid` will be used as indicated in development. |
(for exhaustiveness' sake)
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.
Not sure this is important, honestly. The note isn't meant to be comprehensive, just an indicator that "weird" data might be present
* Permalink by room: `matrix:r/somewhere:example.org/e/event:example.org` | ||
* Permalink by room ID: `matrix:roomid/somewhere:example.org/e/event:example.org?via=elsewhere.ca` |
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.
* Permalink by room: `matrix:r/somewhere:example.org/e/event:example.org` | |
* Permalink by room ID: `matrix:roomid/somewhere:example.org/e/event:example.org?via=elsewhere.ca` | |
* Event permalink by room: `matrix:r/somewhere:example.org/e/abcdef123456` | |
* Event permalink by room ID (with routing hint): `matrix:roomid/somewhere:example.org/e/abcdef123456?via=elsewhere.ca` |
- "Event" permalink, for explicitness' sake
- utilization of alphanumeric event IDs, as those are the new norm
- "routing hint"
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.
It's important that we keep the examples as similar as possible between the URIs. The v1 event IDs are clearer and appear less random.
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.
(though almost a year later v1 event IDs look more confusing to people - will fix)
Community members are always welcome to comment on any PR: otherwise we would have made them private :) |
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.
Looks plausible - someone more involved with the MSC should probably review too though
I've elected @KitsuneRal for being an author, @richvdh for having a recognisable avatar when counting comments, and @uhoreg for being responsible for registering it with IANA. Any one of the 3 will do, I think. |
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.
Generally LGTM, except one point (and a few nitpicks).
Co-authored-by: Alexey Rusakov <Kitsune-Ral@users.sf.net>
Going to close this and make an all-new PR against the main branch. Will bring feedback over with it :) |
With light review being addressed. #3168
Spec for #2312