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

Add a test for an event with an invalid signature #821

Merged
merged 5 commits into from
Mar 4, 2020

Conversation

clokep
Copy link
Member

@clokep clokep commented Feb 26, 2020

This reproduces the issue in matrix-org/synapse#6978.

Note that I created this test by copying, so it is a bit duplicative. I'm unsure how much of it is worth keeping.

On current develop (sans matrix-org/synapse#6996) this fails on the log_if_fail "send_join event", $event; line.

@clokep
Copy link
Member Author

clokep commented Feb 26, 2020

These fail, as expected, until matrix-org/synapse#6996 is merged into develop.

@clokep clokep requested a review from a team February 26, 2020 17:59
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally looks good, just a few nits

tests/50federation/30room-join.pl Outdated Show resolved Hide resolved
tests/50federation/30room-join.pl Outdated Show resolved Hide resolved
tests/50federation/30room-join.pl Outdated Show resolved Hide resolved
tests/50federation/30room-join.pl Outdated Show resolved Hide resolved
@clokep
Copy link
Member Author

clokep commented Feb 28, 2020

Next run of these should succeed since the fix is now merged to develop. 👍

@clokep clokep force-pushed the clokep/repro-send-join-error branch from 1063c24 to c136fe7 Compare March 2, 2020 16:53
@clokep
Copy link
Member Author

clokep commented Mar 2, 2020

This is now hitting #819.

@clokep clokep requested a review from richvdh March 2, 2020 20:13
@clokep
Copy link
Member Author

clokep commented Mar 2, 2020

This is ready for review, but includes the changes from #823 to fix the build. I can rebase them out if that gets merged first.

@clokep clokep force-pushed the clokep/repro-send-join-error branch 2 times, most recently from ed7c8e5 to 7d45396 Compare March 3, 2020 15:04
@clokep clokep changed the title Add a test for an event from a different origin. Add a test for an event with an invalid signature Mar 3, 2020
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm other than the nits below!

tests/50federation/30room-join.pl Outdated Show resolved Hide resolved
tests/50federation/30room-join.pl Outdated Show resolved Hide resolved
@clokep clokep force-pushed the clokep/repro-send-join-error branch from 2b3c87c to 2ed42bc Compare March 4, 2020 15:41
@clokep clokep merged commit 7c8890f into develop Mar 4, 2020
@clokep clokep deleted the clokep/repro-send-join-error branch March 4, 2020 16:25
anoadragon453 added a commit that referenced this pull request Mar 24, 2020
…ease-v1.12.x

* origin/release-v1.12.0:
  Missing bits
  Use r0 instead of 'unstable' for joined_members|rooms
  Add test to optionally keep other sessions when modifying a user's password. (#832)
  Remove tests that call query_auth endpoint. (#827)
  Add tests for validating alt_aliases of a canonical alias event. (#824)
  Update the haproxy config to route fallback auth and register to the same worker. (#828)
  Add tests for a user with sufficient power level removing an alias. (#818)
  Add a test for an event with an invalid signature (#821)
  Fix race in self signing key tests. (#822)
  Use retry_until_success instead of repeat_until_true.
  Attempt to deflake a test.
  Fix frontend proxy worker binding to wrong port. (#823)
  Stop checking for aliases in the public room list.
  Attempt to deflake a sytest (#816)
  Fix formatting from review.
  Support running Dendrite in more than 1 sqlite db file
  Add tests for moving alt_aliases to an upgraded room.
  Support running dendrite in sqlite
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