mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-02 01:34:10 +01:00
Spec for MSC4277: Harmonizing the reporting endpoints
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
parent
a6da9443da
commit
60f4e5d61d
1
changelogs/client_server/newsfragments/2311.feature
Normal file
1
changelogs/client_server/newsfragments/2311.feature
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
`/_matrix/client/v3/rooms/{roomId}/report` and `/_matrix/client/v3/rooms/{roomId}/report/{eventId}` may respond with HTTP 200 regardless of the reported subject's existence or add a random delay when generating responses as per [MSC4277](https://github.com/matrix-org/matrix-spec-proposals/pull/4277).
|
||||||
1
changelogs/client_server/newsfragments/2311.removal
Normal file
1
changelogs/client_server/newsfragments/2311.removal
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
The `score` request parameter on `/_matrix/client/v3/rooms/{roomId}/report/{eventId}` was removed as per [MSC4277](https://github.com/matrix-org/matrix-spec-proposals/pull/4277).
|
||||||
|
|
@ -25,6 +25,15 @@ paths:
|
||||||
the appropriate people. How such information is delivered is left up to
|
the appropriate people. How such information is delivered is left up to
|
||||||
implementations. The caller is not required to be joined to the room to
|
implementations. The caller is not required to be joined to the room to
|
||||||
report it.
|
report it.
|
||||||
|
|
||||||
|
Clients could infer whether a reported room exists based on the 404 response.
|
||||||
|
Homeservers that wish to conceal this information MAY return 200 responses
|
||||||
|
regardless of the existence of the reported room.
|
||||||
|
|
||||||
|
Furthermore, it might be possible for clients to deduce whether a reported
|
||||||
|
room exists by timing the response. This is because only a report for an
|
||||||
|
existing room will require the homeserver to do further processing. To
|
||||||
|
combat this, homeservers MAY add a random delay when generating a response.
|
||||||
operationId: reportRoom
|
operationId: reportRoom
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
|
|
@ -52,6 +61,11 @@ paths:
|
||||||
security:
|
security:
|
||||||
- accessTokenQuery: []
|
- accessTokenQuery: []
|
||||||
- accessTokenBearer: []
|
- accessTokenBearer: []
|
||||||
|
x-changedInMatrixVersion:
|
||||||
|
1.18: |
|
||||||
|
Servers MAY deny room ID enumeration by using the 200 response
|
||||||
|
regardless of the existence of the reported room and/or by adding
|
||||||
|
a random delay when generating responses.
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The room has been reported successfully.
|
description: The room has been reported successfully.
|
||||||
|
|
@ -91,6 +105,10 @@ paths:
|
||||||
the appropriate people. The caller must be joined to the room to report
|
the appropriate people. The caller must be joined to the room to report
|
||||||
it.
|
it.
|
||||||
|
|
||||||
|
Clients could infer whether a reported event exists based on the 404 response.
|
||||||
|
Homeservers that wish to conceal this information MAY return 200 responses
|
||||||
|
regardless of the existence of the reported event.
|
||||||
|
|
||||||
Furthermore, it might be possible for clients to deduce whether a reported
|
Furthermore, it might be possible for clients to deduce whether a reported
|
||||||
event exists by timing the response. This is because only a report for an
|
event exists by timing the response. This is because only a report for an
|
||||||
existing event will require the homeserver to do further processing. To
|
existing event will require the homeserver to do further processing. To
|
||||||
|
|
@ -117,15 +135,9 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
example: {
|
example: {
|
||||||
"score": -100,
|
|
||||||
"reason": "this makes me sad"
|
"reason": "this makes me sad"
|
||||||
}
|
}
|
||||||
properties:
|
properties:
|
||||||
score:
|
|
||||||
type: integer
|
|
||||||
description: |-
|
|
||||||
The score to rate this content as where -100 is most offensive
|
|
||||||
and 0 is inoffensive.
|
|
||||||
reason:
|
reason:
|
||||||
type: string
|
type: string
|
||||||
description: The reason the content is being reported.
|
description: The reason the content is being reported.
|
||||||
|
|
@ -136,6 +148,10 @@ paths:
|
||||||
x-changedInMatrixVersion:
|
x-changedInMatrixVersion:
|
||||||
1.8: |
|
1.8: |
|
||||||
This endpoint now requires the user to be joined to the room.
|
This endpoint now requires the user to be joined to the room.
|
||||||
|
1.18: |
|
||||||
|
The `score` request parameter was removed. Additionally, servers
|
||||||
|
may deny event ID enumeration by using the 200 response
|
||||||
|
regardless of the existence of the reported event.
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The event has been reported successfully.
|
description: The event has been reported successfully.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue