`register_rejects_if_user_already_exists` does not account for implementations requiring auth before performing validation
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
在注册测试中找到 TestRegistration/parallel/POST_/register_rejects_if_user_already_exists,并阅读它如何处理 /register 响应。更新测试:如果返回交互式身份验证挑战,则完成该挑战,然后检查注册是否拒绝重复用户。测试同时涵盖直接拒绝,以及 UIA 挑战后拒绝,即为完成。
由索引模型根据 Issue 内容生成。
描述
TestRegistration/parallel/POST_/register_rejects_if_user_already_exists fails if the homeserver returns a UIA challenge instead of outright rejecting the request due to the duplicate user. Continuwuity, for example, still rejects the request as expected after completing UIA, but interactive auth is required before it is willing to progress further:
$ curl --json '{"username": "nex", "password": "hello world"}' 10.11.10.134:8008/_matrix/client/v3/register
{"flows":[{"stages":["m.login.registration_token"]}],"params":{},"session":"redacted"}% $ curl --json '{"username": "nex", "password": "hello world", "auth": {"type": "m.login.registration_token", "token": "redacted", "session": "redacted"}}' 10.11.10.134:8008/_matrix/client/v3/register
{"errcode":"M_USER_IN_USE","error":"Username is not available."}
There's no spec that defines what order these two things should be checked in, so the test should probably try to complete the challenge if it receives one.
- 主要语言
- Go
- 星标
- 102
- 派生
- 73
- 平均合并
- 3 天 10 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
matrix-org/complement 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
matrix-org/complement#957 ·
维护者通常 2 天内回复
-
`POST /register downcases capitals in usernames` enforces behaviour that spec defines as optional未关闭
难度 2/5 1-3 小时 新手友好度 78/100
matrix-org/complement#956 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
matrix-org/complement#954 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
matrix-org/complement#953 ·
维护者通常 2 天内回复
-
难度 1/5 1-3 小时 新手友好度 78/100
matrix-org/complement#952 ·
维护者通常 2 天内回复
查看 matrix-org/complement 的全部 Issue
相似的 Issue
-
agent-butler-finding bug
难度 2/5 1-3 小时 新手友好度 82/100
jordansmall/spindrift#6414 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
Icinga/icinga-kubernetes#294 ·
维护者通常 4 天内回复
-
kind/design sig/ui
难度 1/5 1 小时以内 新手友好度 92/100
kubermatic/dashboard#8449 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
filecoin-project/curio#1632 ·
维护者通常 1 天内回复