mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 14:34:23 -04:00
Do not return allowed_room_ids from /hierarchy response. (#12175)
This field is only to be used in the Server-Server API, and not the Client-Server API, but was being leaked when a federation response was used in the /hierarchy API.
This commit is contained in:
parent
d8bab6793c
commit
ca9234a9eb
3 changed files with 17 additions and 2 deletions
|
@ -172,6 +172,9 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
|
|||
result_room_ids = []
|
||||
result_children_ids = []
|
||||
for result_room in result["rooms"]:
|
||||
# Ensure federation results are not leaking over the client-server API.
|
||||
self.assertNotIn("allowed_room_ids", result_room)
|
||||
|
||||
result_room_ids.append(result_room["room_id"])
|
||||
result_children_ids.append(
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue