synapse-product/synapse
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
..
_scripts Remove shebang line from module files (#10415) 2021-07-29 21:34:14 +01:00
api Set room version 8 as preferred for restricted rooms. (#10571) 2021-08-20 07:17:50 -04:00
app Remove the unused public_room_list_stream (#10565) 2021-08-17 14:02:50 +01:00
appservice Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
config Set room version 8 as preferred for restricted rooms. (#10571) 2021-08-20 07:17:50 -04:00
crypto Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
events Clean up some logging in the federation event handler (#10591) 2021-08-16 13:19:02 +01:00
federation Attempt to pull from the legacy spaces summary API over federation. (#10583) 2021-08-17 08:19:12 -04:00
groups Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
handlers Merge pull request from GHSA-3x4c-pq33-4w3q 2021-08-31 10:09:58 +01:00
http Experimental support for MSC3266 Room Summary API. (#10394) 2021-08-16 14:49:12 +00:00
logging Fix PeriodicallyFlushingMemoryHandler inhibiting application shutdown (#10517) 2021-08-03 14:28:30 +01:00
metrics [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00
module_api Allow modules to run looping call on all instances (#10638) 2021-08-18 10:21:11 +00:00
push Remove shebang line from module files (#10415) 2021-07-29 21:34:14 +01:00
replication Remove the unused public_room_list_stream (#10565) 2021-08-17 14:02:50 +01:00
res/templates 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
rest Mount /_synapse/admin/v1/users/{userId}/media admin API on media workers only (#10628) 2021-08-18 13:25:12 +01:00
server_notices Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Add type hints to state handler. (#10482) 2021-07-26 12:49:53 -04:00
static Add initial support for a "pick your IdP" page (#9017) 2021-01-05 11:25:28 +00:00
storage Allow /createRoom to be run on workers (#10564) 2021-08-17 14:33:16 +01:00
streams Add a return type to parse_string. (#10438) 2021-07-21 09:47:56 -04:00
util Manhole: wrap coroutines in defer.ensureDeferred automatically (#10602) 2021-08-16 18:11:48 +01:00
__init__.py 1.41.0 2021-08-24 15:31:55 +01:00
event_auth.py Support MSC3289: Room version 8 (#10449) 2021-08-09 10:46:39 +02:00
notifier.py Generics for ObservableDeferred (#10491) 2021-07-28 19:55:50 +00:00
python_dependencies.py Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
server.py Experimental support for MSC3266 Room Summary API. (#10394) 2021-08-16 14:49:12 +00:00
types.py Add get_userinfo_by_id method to ModuleApi (#9581) 2021-08-04 10:40:25 +00:00
visibility.py [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00