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

Grammar for room aliases (SPEC-391) #176

Open
matrixbot opened this issue Apr 19, 2016 · 8 comments
Open

Grammar for room aliases (SPEC-391) #176

matrixbot opened this issue Apr 19, 2016 · 8 comments
Labels
feature Suggestion for a significant extension which needs considerable consideration

Comments

@matrixbot
Copy link
Member

Room aliases are intended to be

  • human-readable
  • unique

They have some structure: #<alias>:<homeserver>.

We need to specify a grammar for them, including which characters they may contain, and how they should be interpreted. Can they contain punctuation or whitespace characters? Should they be allowed to contain non-ascii characters, and if so, how should they be normalised? Should they be case-insensitive, and if so, in what locale?

(Imported from https://matrix.org/jira/browse/SPEC-391)

(Reported by @richvdh)

@matrixbot
Copy link
Member Author

Jira watchers: @richvdh

@matrixbot
Copy link
Member Author

matrixbot commented Apr 19, 2016

Links exported from Jira:

relates to SPEC-1

@matrixbot
Copy link
Member Author

From [~matthew]:

My thoughts for room alises and user ids: "utf8, with a blacklist of explicitly disallowed characters (all whitespace, *, /, :, ., any others we want to reserve). you're not allowed to mix charsets (fsvo charset), and possibly deny other homomorph attacks eg l v I".
IDs are compared case insensitively.

oh, and no zero length ids

-- @richvdh

@matrixbot
Copy link
Member Author

From [~eternaleye]:

The zero-width joiner, in particular, is needed to construct the letterforms of some languages that Unicode does not support sufficiently.

-- @richvdh

@matrixbot
Copy link
Member Author

https://github.com/matrix-org/matrix-doc/blob/human-id-rules/drafts/human-id-rules.rst proposes:

-- @richvdh

@matrixbot matrixbot changed the title Grammar for room aliases Grammar for room aliases (SPEC-391) Oct 31, 2016
@matrixbot matrixbot added the feature Suggestion for a significant extension which needs considerable consideration label Nov 7, 2016
@turt2live turt2live self-assigned this Sep 6, 2018
@turt2live turt2live removed their assignment Sep 14, 2018
@aaronraimist
Copy link
Contributor

It seems like this really needs to be addressed soon. I think room aliases should be lowercase only like user IDs otherwise it just creates confusion as to what room you are joining and "forces" you to add multiple similar aliases with different capitalization.

@Half-Shot
Copy link
Contributor

The proposal is matrix-org/matrix-spec-proposals#1607 ?

@aaronraimist
Copy link
Contributor

aaronraimist commented Mar 17, 2019

Thanks! It would have been nice if someone would have linked to it from here when it was proposed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Suggestion for a significant extension which needs considerable consideration
Projects
None yet
Development

No branches or pull requests

4 participants