-
- Downloads
Do not error when thumbnailing invalid files (#8236)
If a file cannot be thumbnailed for some reason (e.g. the file is empty), then catch the exception and convert it to a reasonable error message for the client.
Showing
- changelog.d/8236.bugfix 1 addition, 0 deletionschangelog.d/8236.bugfix
- synapse/rest/media/v1/media_repository.py 61 additions, 8 deletionssynapse/rest/media/v1/media_repository.py
- synapse/rest/media/v1/thumbnail_resource.py 3 additions, 2 deletionssynapse/rest/media/v1/thumbnail_resource.py
- synapse/rest/media/v1/thumbnailer.py 12 additions, 2 deletionssynapse/rest/media/v1/thumbnailer.py
- tests/rest/media/v1/test_media_storage.py 29 additions, 10 deletionstests/rest/media/v1/test_media_storage.py
changelog.d/8236.bugfix
0 → 100644
Please register or sign in to comment