-
Notifications
You must be signed in to change notification settings - Fork 56
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
Mjolnir storing aliases for watched_lists
account data (and possibly also protected rooms)
#404
Comments
Hello, I shouldn't really have to come back here but
This is intentionally fatal. If you start mjolnir without the complete set of watched lists, you will undo any entries to |
That sounds problematic. What do you mean "undo"? Is this something that would be resolved next time we start Mjölnir (if it manages to resolve the aliases)? Note that the alternative is not starting Mjölnir at all, which is pretty bad, since it also blocks users from fixing the issue in the first place. |
Some background to this issue. When you use
Each policy list has rules that mjolnir fetches when it starts. Some of these rules will be of the type
It allows the user to be acutely aware that there is an issue. The real way to prevent the issue is to ensure that aliases are not stored in |
All your points are valid and generally, I agree that crashing on startup is better than hobbling. However, if Mjölnir won't start at all, it's also not possible to migrate.
Note that this is not silent, there is now an error message during startup, it just won't block startup. |
It shouldn't do this because resolving aliases is unreliable, and it should already be joined to the room for it to end up in the account data for
watched_lists
(the same doesn't really apply for protected rooms, since they can be removed silently and the admin of mjolnir will need to know about that). It should only store the room id forwatched_lists
(in a matrix.to url though i don't really know the context for why it does that in the first place since these urls don't have any via params, making them useless)The example here is that
@mahdi1234:matrix.org
couldn't resolve#public-servers-bans:aria-net.org
(presumably the server died) and so mjolnir couldn't start.The text was updated successfully, but these errors were encountered: