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

rooms without canonical aliases published in a group directory are unjoinable #7339

Closed
ara4n opened this issue Sep 14, 2018 · 4 comments
Closed
Assignees
Labels
A-Spaces Spaces, groups, communities P1 S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect X-Needs-Info This issue is blocked awaiting information from the reporter

Comments

@ara4n
Copy link
Member

ara4n commented Sep 14, 2018

as riot apparently ignores non-canonical aliases. we should surely fall back to non-canonical aliases if the canonical alias is missing

@ara4n ara4n added T-Defect P1 S-Major Severely degrades major functionality or product features, with no satisfactory workaround A-Spaces Spaces, groups, communities labels Sep 16, 2018
@ara4n ara4n self-assigned this Sep 16, 2018
@ara4n
Copy link
Member Author

ara4n commented Sep 19, 2018

So there are at least 5 problems here:

  • We do not default the canonical alias of a room to the first alias that is set.
  • Somehow Gnosis were able to publish rooms in their directory without setting an alias at all, which means they can't be joined over federation.
  • Apparently you can publish rooms in a group without canonical aliases, which means they can't be joined over federation
  • The groups API only ever returns a canonical alias for a room in your /groups/+group:example.com/rooms response, so if one isn't set, you can't join it over federation, even if it has aliases.
  • The JS SDK puts the result of the /groups/rooms API into a GroupRoomType object (but doesn't check the type), and then coerces that into a RoomShape object (without checking the type). The former doesn't have an aliases field; the latter does, but it's too late by that point.

It would be sufficient to fix the first 3 here, i think.

@turt2live
Copy link
Member

iirc the conclusion on the remainder of this is to fix the groups stuff relying on the canonical alias so much. This probably requires a change to the API to return any alias it can find, but also potentially minor changes in Riot to have it understand this.

@turt2live
Copy link
Member

It looks like matrix-org/matrix-react-sdk#2173 is the place that fixes a bunch of this. @ara4n what's the status on this?

@turt2live turt2live added the X-Needs-Info This issue is blocked awaiting information from the reporter label Nov 27, 2018
@t3chguy t3chguy self-assigned this Dec 15, 2020
@t3chguy
Copy link
Member

t3chguy commented May 12, 2021

This is fixed by Spaces landing in Beta in next Release

@t3chguy t3chguy closed this as completed May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Spaces Spaces, groups, communities P1 S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect X-Needs-Info This issue is blocked awaiting information from the reporter
Projects
None yet
Development

No branches or pull requests

3 participants