Return a 404 if no valid thumbnail is found. (#9163)
If no thumbnail of the requested type exists, return a 404 instead of erroring. This doesn't quite match the spec (which does not define what happens if no thumbnail can be found), but is consistent with what Synapse already does.
Showing
- changelog.d/9163.bugfix 1 addition, 0 deletionschangelog.d/9163.bugfix
- synapse/rest/media/v1/_base.py 3 additions, 0 deletionssynapse/rest/media/v1/_base.py
- synapse/rest/media/v1/thumbnail_resource.py 155 additions, 81 deletionssynapse/rest/media/v1/thumbnail_resource.py
- tests/rest/media/v1/test_media_storage.py 24 additions, 1 deletiontests/rest/media/v1/test_media_storage.py
changelog.d/9163.bugfix
0 → 100644
Please register or sign in to comment