Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

If the HS doesn't think there are any users in a room, perhaps it should have the (default) option of automatically deleting any aliases that refer to it (SYN-7) #1201

Open
matrixbot opened this issue Sep 15, 2014 · 6 comments
Labels
A-Room-Directory O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Blocks non-critical functionality, workarounds exist. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@matrixbot
Copy link
Member

(Imported from https://matrix.org/jira/browse/SYN-7)

(Reported by @ara4n)

@matrixbot
Copy link
Member Author

Jira watchers: @ara4n

@matrixbot matrixbot added z-p4 (Deprecated Label) z-feature (Deprecated Label) labels Nov 7, 2016
@matrixbot matrixbot changed the title If the HS doesn't think there are any users in a room, perhaps it should have the (default) option of autoexpiring the alias from its directory? (SYN-7) If the HS doesn't think there are any users in a room, perhaps it should have the (default) option of autoexpiring the alias from its directory? (https://github.com/matrix-org/synapse/issues/1201) Nov 7, 2016
@matrixbot matrixbot changed the title If the HS doesn't think there are any users in a room, perhaps it should have the (default) option of autoexpiring the alias from its directory? (https://github.com/matrix-org/synapse/issues/1201) If the HS doesn't think there are any users in a room, perhaps it should have the (default) option of autoexpiring the alias from its directory? (SYN-7) Nov 7, 2016
@ShadowJonathan
Copy link
Contributor

Is this specific to a HS having no users from itself in a room, or when a HS receives the last leave event?

I think that there are usecases for leaving empty rooms with aliases around, e.g. some automated client could join a room, dump some data, and then leave, and then do this with thousands of likewise rooms. Or someone can simply make a mistake of leaving their own room (getting automatic admin permission is discussed in https://github.com/matrix-org/matrix-doc/issues/652), to then be able to rejoin it again. Other reasons could be one of privacy/obscurity, to hide a room inside an alias on a homeserver, to leave it, and only come back when required.

@MadLittleMods
Copy link
Contributor

This is probably more important to a large shared homeserver like matrix.org where people create rooms which die and the alias is forever locked up.

Perhaps this is better addressed by a dormant alias policy and some release request system to reclaim aliases.

Generally like @ShadowJonathan mentioned, this doesn't seem that applicable to everything. I was even tempted to close this out until I thought of the matrix.org use case.

@MadLittleMods MadLittleMods added T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. A-Room-Directory labels Nov 18, 2021
@ShadowJonathan
Copy link
Contributor

Yeah, i think that this is mainly an admin question, maybe this should be implementable/doable through the module interface?

@DMRobertson DMRobertson added P4 (OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patches and removed z-feature (Deprecated Label) z-p4 (Deprecated Label) labels Nov 18, 2021
@richvdh
Copy link
Member

richvdh commented May 23, 2022

this isn't immediately about the room directory: the first problem is to remove the alias, which should in turn update the room directory (though see also #6346).

@richvdh richvdh changed the title If the HS doesn't think there are any users in a room, perhaps it should have the (default) option of autoexpiring the alias from its directory? (SYN-7) If the HS doesn't think there are any users in a room, perhaps it should have the (default) option of automatically deleting any aliases that refer to it (SYN-7) May 23, 2022
@richvdh
Copy link
Member

richvdh commented May 23, 2022

Fixing this might also help with the situation where a /join fails because you're attempting to join a room through a server that is no longer in the room.

@DMRobertson DMRobertson added O-Uncommon Most users are unlikely to come across this or unexpected workflow A-Room-Directory S-Minor Blocks non-critical functionality, workarounds exist. and removed P4 (OBSOLETE: use S- labels.) Okay backlog: will not schedule, will accept patches labels Aug 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Room-Directory O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Blocks non-critical functionality, workarounds exist. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

No branches or pull requests

5 participants