-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Grammar for completely opaque IDs (SPEC-388) #174
Grammar for completely opaque IDs (SPEC-388) #174
Comments
Jira watchers: @richvdh |
Links exported from Jira: relates to SPEC-1 |
Hrm; there are encoding difficulties here. Some of these IDs end up in JSON strings, which means that they must be interpreted as a sequence of unicode characters - they are not just byte sequences. Likewise, because our URIs are %-encoded UTF-8, having opaque byte sequences in our URIs would require part of a URI to be parsed as UTF-8, and part as 8-bit data, which most URI parsers would not be happy with. As I see it there are two options here:
Postel's law should guide us here. My inclination is to restrict these IDs to unreserved URI characters (ie, -- @richvdh |
-- @richvdh |
Since the links are hard to find above: Proposals:
Other tracking issues:
|
"Grammar" might be too strong a word, but we should probably make explicit that the following IDs are entirely implementation-specific byte sequences. The originators are allowed to create them however they like, and the recipient has to send them back as they arrived.
Call IDs (as exposed infixed by MSC2746; now specced at https://spec.matrix.org/v1.7/client-server-api/#grammar-for-voip-idsm.call...
events)(Imported from https://matrix.org/jira/browse/SPEC-388)
(Reported by @richvdh)
The text was updated successfully, but these errors were encountered: