synapse/changelog.d
Eric Eastwood 84facf769e
Fix /messages throwing a 500 when querying for non-existent room (#12683)
Fix https://github.com/matrix-org/synapse/issues/12678

Complement test added:  https://github.com/matrix-org/complement/pull/369

**Before:** 500 internal server error

**After:** According to the [spec](https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3roomsroomidmessages), calling `/messages` against a non-existent `room_id` should throw a 403 forbidden (since you're not part of the room). This also matches the behavior before https://github.com/matrix-org/synapse/pull/12370 which regressed Synapse to the 500 behavior.
```json
{
    "errcode": "M_FORBIDDEN",
    "error": "User @test:my.synapse.server not in room !dne:my.synapse.server, and room previews are disabled"
}
```
2022-05-10 23:39:14 -05:00
..
.gitignore Correct attrs package name in requirements (#3492) 2018-07-07 10:46:59 +10:00
12477.misc Add some type hints to datastore. (#12477) 2022-05-10 14:07:48 -04:00
12586.misc Add @cancellable decorator, for use on request handlers (#12586) 2022-05-10 14:05:22 +01:00
12588.misc Add ability to cancel disconnected requests to SynapseRequest (#12588) 2022-05-10 14:06:08 +01:00
12630.misc Add helper class for testing request cancellation (#12630) 2022-05-10 14:06:56 +01:00
12676.misc Add class-diagrams and notes for push. (#12676) 2022-05-10 07:43:34 -04:00
12677.misc Move free functions into PushRuleEvaluatorForEvent. (#12677) 2022-05-10 07:54:30 -04:00
12679.misc Stop writing to event_reference_hashes (#12679) 2022-05-10 15:35:08 +01:00
12683.bugfix Fix /messages throwing a 500 when querying for non-existent room (#12683) 2022-05-10 23:39:14 -05:00
12689.misc Refactor EventContext (#12689) 2022-05-10 19:43:13 +00:00
12694.misc Capture the Deferred for request cancellation in _AsyncResource (#12694) 2022-05-10 20:39:05 +01:00
12695.misc Fix incorrect type hint in filtering code. (#12695) 2022-05-10 14:10:22 -04:00