anonymousland-synapse/synapse/rest/media/v1
Michael Telatynski e8ac9ac8ca
Fix /upload 500'ing when presented a very large image (#10029)
* Fix /upload 500'ing when presented a very large image

Catch DecompressionBombError and re-raise as ThumbnailErrors

* Set PIL's MAX_IMAGE_PIXELS to match homeserver.yaml

to get it to bomb out quicker, to load less into memory
in the case of super large images

* Add changelog entry for 10029
2021-05-21 18:31:59 +02:00
..
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
_base.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
config_resource.py remove HomeServer.get_config (#9815) 2021-04-14 19:09:08 +01:00
download_resource.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
filepath.py Remove various bits of compatibility code for Python <3.6 (#9879) 2021-04-27 13:13:07 +01:00
media_repository.py Fix /upload 500'ing when presented a very large image (#10029) 2021-05-21 18:31:59 +02:00
media_storage.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
preview_url_resource.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
storage_provider.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
thumbnail_resource.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
thumbnailer.py Fix /upload 500'ing when presented a very large image (#10029) 2021-05-21 18:31:59 +02:00
upload_resource.py Improved validation for received requests (#9817) 2021-04-23 19:20:44 +01:00