Skip to content

Conversation

@aine-etke
Copy link
Member

When uploading a CSV without MXIDs (due to the #29), synapse-admin will generate random MXIDs, but for some reason, the bulk registration will attempt to put "mxid into mxid".

Let's assume the desired MXID is @user:example.com. Bulk registration (again, with random MXID generation, I was not able to test with ids from csv due to mentioned above issue, but they may be affected as well) will check the existence of @user:example.com, and then will attempt to create @@user:example.com:example.com. So it looks like it just takes whatever value the generator func returns (full MXID) and concatenates it into @${MXID_FROM_GENERATOR_OR_WHATEVER}:${base_url}.

That's entirely wrong - it should check if the input (either returned from generator, or from csv) is full MXID (@user:example.com) or localpart (user) and correctly return full MXID in both cases

fixes #30

@aine-etke aine-etke merged commit 6957cb1 into main Sep 17, 2024
1 check passed
@aine-etke aine-etke deleted the fix-bulk-registration-mxid branch October 25, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Bulk registration invalid MXID in requests

1 participant