Registration without username not possible #111

Closed
opened 2021-07-18 17:34:07 +00:00 by kroeckx · 3 comments
kroeckx commented 2021-07-18 17:34:07 +00:00 (Migrated from gitlab.com)

One of the Sytest tests tries to see if you can register without supplying a username. Reading the specification, I think it should be possible.

The communication goes like this:

< POST /_matrix/client/r0/register {"password":"s3kr1t"}
> 401 Unauthorized {"flows":[{"stages":["m.login.dummy"]}],"params":null,"session":"6HC3[...]"}
< POST /_matrix/client/r0/register {"password":"s3kr1t","auth":{"session":"6HC3[...]","type":"m.login.dummy"}}
> 400 Bad Request {"errcode":"M_MISSING_PARAM","error":"M_MISSING_PARAM: Missing username field."}

I currently can't see why this should fail. I also suspect this error in generated by Ruma.

One of the Sytest tests tries to see if you can register without supplying a username. Reading the specification, I think it should be possible. The communication goes like this: ``` < POST /_matrix/client/r0/register {"password":"s3kr1t"} > 401 Unauthorized {"flows":[{"stages":["m.login.dummy"]}],"params":null,"session":"6HC3[...]"} < POST /_matrix/client/r0/register {"password":"s3kr1t","auth":{"session":"6HC3[...]","type":"m.login.dummy"}} > 400 Bad Request {"errcode":"M_MISSING_PARAM","error":"M_MISSING_PARAM: Missing username field."} ``` I currently can't see why this should fail. I also suspect this error in generated by Ruma.
timokoesters commented 2021-07-18 18:21:10 +00:00 (Migrated from gitlab.com)

Currently conduit only allows this if the client tries to register a guest account

Currently conduit only allows this if the client tries to register a guest account
Zeerooth commented 2022-04-04 22:04:58 +00:00 (Migrated from gitlab.com)

mentioned in merge request !340

mentioned in merge request !340
timokoesters commented 2022-06-18 11:13:38 +00:00 (Migrated from gitlab.com)

mentioned in commit 124471199c

mentioned in commit 124471199c646b611e40a61a7ae32760da88a6bc
Sign in to join this conversation.
No labels
Android
CS::needs customer feedback
CS::needs follow up
CS::needs on prem installation
CS::waiting
Chrome
Design:: Ready
Design:: in progress
Design::UX
E2EE
Edge
Firefox
GDPR
Iteration 13 IM
Linux
MacOS
Need::Discussion
Need::Steps to reproduce
Need::Upstream fix
Needs:: Planning
Needs::Dev-Team
Needs::More information
Needs::Priority
Needs::Product
Needs::Refinement
Needs::Severity
Priority::1-Critical
Priority::2-Max
Priority::3-Impending
Priority::4-High
Priority::5-Medium
Priority::6-Low
Priority::7-None
Progress::Backlog
Progress::Review
Progress::Started
Progress::Testing
Progress::Triage
Progress::Waiting
Reporter::Sentry
Safari
Target::Community
Target::Customer
Target::Internal
Target::PoC
Target::Security
Team:Customer-Success
Team:Design
Team:Infrastructure
Team:Instant-Messaging
Team:Product
Team:Workflows
Type::Bug
Type::Design
Type::Documentation
Type::Feature
Type::Improvement
Type::Support
Type::Tests
Windows
blocked
blocked-by-spec
cla-signed
conduit
contribution::advanced
contribution::easy
contribution::help needed
from::review
iOS
p::ti-tenant
performance
product::triage
proposal
refactor
release-blocker
s: dart_openapi_codegen
s::Famedly-Patient
s::Org-Directory
s::Passport-Generator
s::Requeuest
s:CRM
s:Famedly-App
s:Famedly-Web
s:Fhiroxide
s:Fhiroxide-cli
s:Fhiroxide-client
s:Fhirs
s:Hedwig
s:LISA
s:Matrix-Dart-SDK
s:Role-Manager
s:Synapse
s:User-Directory
s:WFS-Matrix
s:Workflow Engine
s:dtls
s:famedly-error
s:fcm-shared-isolate
s:matrix-api-lite
s:multiple-tab-detector
s:native-imaging
severity::1
severity::2
severity::3
severity::4
technical-debt
voip
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Matthias/conduit#111
No description provided.