From 0b4d1c0237f200ceaf542e3588d85b6000625b52 Mon Sep 17 00:00:00 2001 From: Srinjoy Sen Chowdhury <116475469+AllMightLegend@users.noreply.github.com> Date: Wed, 30 Oct 2024 16:00:05 +0530 Subject: [PATCH] Add 403 error response to federation/v1/state_ids (#1926) fixes #1912 by adding a 403 error response to /_matrix/federation/v1/state_ids/{roomId} Signed-off-by: Srinjoy Sen Chowdhury --- .../server_server/newsfragments/1926.clarification | 1 + data/api/server-server/events.yaml | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 changelogs/server_server/newsfragments/1926.clarification diff --git a/changelogs/server_server/newsfragments/1926.clarification b/changelogs/server_server/newsfragments/1926.clarification new file mode 100644 index 000000000..172bea678 --- /dev/null +++ b/changelogs/server_server/newsfragments/1926.clarification @@ -0,0 +1 @@ +Add 403 error response to `/_matrix/federation/v1/state_ids/{roomId}`. diff --git a/data/api/server-server/events.yaml b/data/api/server-server/events.yaml index 9087df971..30e228301 100644 --- a/data/api/server-server/events.yaml +++ b/data/api/server-server/events.yaml @@ -140,6 +140,19 @@ paths: required: - auth_chain_ids - pdu_ids + "403": + description: |- + The requesting host is not in the room, or is excluded from the room via `m.room.server_acl`. + content: + application/json: + schema: + $ref: ../client-server/definitions/errors/error.yaml + examples: + response: + value: { + "errcode": "M_FORBIDDEN", + "error": "You do not have permission to access the state at the requested event." + } "404": description: |- The given `event_id` was not found or the server doesn't know about the state at