forked-synapse/synapse/handlers
reivilibre 52c7a51cfc
Merge pull request from GHSA-3x4c-pq33-4w3q
* Add some tests to characterise the problem

Some failing. Current states:

  RoomsMemberListTestCase
test_get_member_list ...
[OK]
test_get_member_list_mixed_memberships ...
[OK]
test_get_member_list_no_permission ...
[OK]
test_get_member_list_no_permission_former_member ...
[OK]
test_get_member_list_no_permission_former_member_with_at_token ...
[FAIL]
test_get_member_list_no_room ...
[OK]
test_get_member_list_no_permission_with_at_token ...
[FAIL]

* Correct the tests

* Check user is/was member before divulging room membership

* Pull out only the 1 membership event we want.

* Update tests/rest/client/v1/test_rooms.py

Co-authored-by: Erik Johnston <erik@matrix.org>

* Fixup tests (following apply review suggestion)

Co-authored-by: Erik Johnston <erik@matrix.org>
2021-08-31 10:09:58 +01:00
..
ui_auth Add missing type hints to handlers and fix a Spam Checker type hint. (#9896) 2021-04-29 07:17:28 -04:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
_base.py Fix import of the default SAML mapping provider. (#10477) 2021-07-27 11:34:15 -04:00
account_data.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
account_validity.py Add a module type for account validity (#9884) 2021-07-16 18:11:53 +02:00
admin.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00
appservice.py Only return an appservice protocol if it has a service providing it. (#10532) 2021-08-05 08:22:14 -04:00
auth.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
cas.py [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00
deactivate_account.py Port "Allow users to click account renewal links multiple times without hitting an 'Invalid Token' page #74" from synapse-dinsic (#9832) 2021-04-19 19:16:34 +01:00
device.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00
devicemessage.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00
directory.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00
e2e_keys.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00
e2e_room_keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
event_auth.py Clarify error message when joining a restricted room. (#10572) 2021-08-11 14:31:39 -04:00
events.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00
federation.py Clean up some logging in the federation event handler (#10591) 2021-08-16 13:19:02 +01:00
groups_local.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00
identity.py Send unstable-prefixed room_type in store-invite IS API requests (#10435) 2021-08-04 13:39:57 -04:00
initial_sync.py Support for MSC2285 (hidden read receipts) (#10413) 2021-07-28 10:05:11 +02:00
message.py Merge pull request from GHSA-3x4c-pq33-4w3q 2021-08-31 10:09:58 +01:00
oidc.py [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00
pagination.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00
password_policy.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
presence.py Do not remove status_msg when user going offline (#10550) 2021-08-09 16:21:04 +00:00
profile.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00
read_marker.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
receipts.py Handle string read receipt data (#10606) 2021-08-16 12:22:38 +01:00
register.py [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00
room_list.py Fix exceptions in logs when failing to get remote room list (#10541) 2021-08-06 14:05:41 +01:00
room_member_worker.py Implement knock feature (#6739) 2021-06-09 19:39:51 +01:00
room_member.py Send unstable-prefixed room_type in store-invite IS API requests (#10435) 2021-08-04 13:39:57 -04:00
room_summary.py Experimental support for MSC3266 Room Summary API. (#10394) 2021-08-16 14:49:12 +00:00
room.py Make historical events discoverable from backfill for servers without any scrollback history (MSC2716) (#10245) 2021-07-28 10:46:37 -05:00
saml.py [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00
search.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00
send_email.py Fix incompatibility with Twisted < 21. (#10713) 2021-08-27 16:33:41 +01:00
set_password.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
sso.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00
state_deltas.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
stats.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00
sync.py Make sync response cache time configurable. (#10513) 2021-08-03 14:45:04 +01:00
typing.py Include room ID in ignored EDU log messages (#10507) 2021-08-03 13:35:49 +00:00
user_directory.py Use inline type hints in handlers/ and rest/. (#10382) 2021-07-16 18:22:36 +01:00