Skip to content
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

Fix null prev_events and auth_events fields from being sent to homeservers #46

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

anoadragon453
Copy link
Member

When performing a /send_join request, Complement was responding with 'null' entries for prev_events and auth_events inside of the state events. Instead of null, these should've been empty arrays. It came down to nil slices being inserted into interfaces and json.Marshal turning those into null values instead. Synapse choked on this, leading to the need to track down the bug.

Thanks to @kegsay who tracked down the causes so quickly!

…rvers

When performing a send_join request, Synapse was receiving 'null' entries for prev_events
and auth_events inside of events. Instead, it should've received empty arrays. Synapse
choked on this, leading to the need to track down the bug.
@kegsay kegsay merged commit 8eeba3d into master Dec 4, 2020
@anoadragon453 anoadragon453 deleted the anoa/fix_null_prev_auth_events branch December 4, 2020 18:12
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.

2 participants