matrix-org / matrix-org/complement
sytest "Can delete canonical alias" is enforcing "MAY" wording in the spec as mandatory
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 99
- Fork
- 72
- Merge medio
- 4g 1h
- PR unite (30g)
- 8
Descrizione
Sytest "Can delete canonical alias" checks if the server automatically removes an alias from a `m.room.canonical_alias` event if it is deleted via the `/directory/` API.
However, it is probably wrong to enforce this behaviour in two different ways;
First, the spec talks only about `alt_aliases` being automatically updated, see the [following text](https://spec.matrix.org/v1.1/client-server-api/#get_matrixclientv3roomsroomidaliases);
> Note: Servers **may** choose to update the `alt_aliases` for the `m.room.canonical_alias` state event in the room when an alias is removed. Servers which choose to update the canonical alias event are recommended to, in addition to their other relevant permission checks, delete the alias and return a successful response even if the user does not have permission to update the `m.room.canonical_alias` event.
This does not mention anything about the `alias` part of the state event.
Secondly, this is a **MAY** recommendation, which, in the words of [RFC2119](https://datatracker.ietf.org/doc/html/rfc2119);
> This word, or the adjective "OPTIONAL", mean that an item is truly optional.
---
Thus, in my opinion, this sytest shouldn't become a *compliance*-testing complement test, but i'd like some input on this.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con il test sytest "Can delete canonical alias" e confronta la sua asserzione con il testo collegato della specifica Matrix e le linee guida RFC2119. Determina se il test tratta il comportamento opzionale MAY come obbligatorio; il lavoro è completato quando l’aspettativa del test di conformità corrisponde al requisito indicato nella specifica.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- go
- Ambito
- testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100