Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge different Resource implementation classes (#7732) | Erik Johnston | 2020-07-03 | 1 | -8/+2 |
| | |||||
* | Convert some of the media REST code to async/await (#7110) | Patrick Cloke | 2020-03-20 | 1 | -30/+24 |
| | |||||
* | Fix typo in _select_thumbnail | Brendan Abolivier | 2020-01-22 | 1 | -1/+1 |
| | |||||
* | Fixup synapse.rest to pass mypy (#6732) | Erik Johnston | 2020-01-20 | 1 | -7/+7 |
| | |||||
* | Remove usage of deprecated logger.warn method from codebase (#6271) | Andrew Morgan | 2019-10-31 | 1 | -2/+2 |
| | | | Replace every instance of `logger.warn` with `logger.warning` as the former is deprecated. | ||||
* | Make the http server handle coroutine-making REST servlets (#5475) | Amber Brown | 2019-06-29 | 1 | -15/+12 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -39/+81 |
| | |||||
* | Fix error when downloading thumbnail with width/height param missing (#5258) | Aaron Raimist | 2019-05-29 | 1 | -2/+2 |
| | | | | | | | Fix error when downloading thumbnail with width/height param missing Fixes #2748 Signed-off-by: Aaron Raimist <aaron@raim.ist> | ||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -5/+6 |
| | |||||
* | Set Server header in SynapseRequest | Richard van der Hoff | 2018-05-10 | 1 | -1/+0 |
| | | | | | | | | | | | | (instead of everywhere that writes a response. Or rather, the subset of places which write responses where we haven't forgotten it). This also means that we don't have to have the mysterious version_string attribute in anything with a request handler. Unfortunately it does mean that we have to pass the version string wherever we instantiate a SynapseSite, which has been c&ped 150 times, but that is code that ought to be cleaned up anyway really. | ||||
* | Remove redundant request_handler decorator | Richard van der Hoff | 2018-05-10 | 1 | -10/+13 |
| | | | | | | This is needless complexity; we might as well use the wrapper directly. Also rename wrap_request_handler->wrap_json_request_handler. | ||||
* | Merge pull request #2791 from matrix-org/erikj/media_storage_refactor | Erik Johnston | 2018-02-05 | 1 | -1/+2 |
|\ | | | | | Ensure media is in local cache before thumbnailing | ||||
| * | Ensure media is in local cache before thumbnailing | Erik Johnston | 2018-01-18 | 1 | -1/+2 |
| | | |||||
* | | Fix typo in thumbnail resource causing access times to be incorrect | Erik Johnston | 2018-01-18 | 1 | -2/+2 |
| | | |||||
* | | Update last access time when thumbnails are viewed | Erik Johnston | 2018-01-17 | 1 | -0/+2 |
|/ | |||||
* | Fix typo | Erik Johnston | 2018-01-16 | 1 | -7/+10 |
| | |||||
* | Fix up log lines | Erik Johnston | 2018-01-16 | 1 | -6/+9 |
| | |||||
* | Correctly use server_name/file_id when generating/fetching remote thumbnails | Erik Johnston | 2018-01-16 | 1 | -3/+3 |
| | |||||
* | Log when we respond with 404 | Erik Johnston | 2018-01-16 | 1 | -1/+7 |
| | |||||
* | Fix thumbnailing remote files | Erik Johnston | 2018-01-16 | 1 | -2/+2 |
| | |||||
* | Merge pull request #2767 from matrix-org/erikj/media_storage_refactor | Erik Johnston | 2018-01-16 | 1 | -47/+65 |
|\ | | | | | Refactor MediaRepository to separate out storage | ||||
| * | Make ThumbnailResource use MediaStorage | Erik Johnston | 2018-01-09 | 1 | -47/+65 |
| | | |||||
* | | Reinstate media download on thumbnail request | Richard van der Hoff | 2018-01-12 | 1 | -0/+5 |
|/ | | | | | We need to actually download the remote media when we get a request for a thumbnail. | ||||
* | Remove dead TODO | Erik Johnston | 2018-01-09 | 1 | -2/+0 |
| | |||||
* | Remove dead code related to default thumbnails | Erik Johnston | 2018-01-09 | 1 | -73/+3 |
| | |||||
* | Store URL cache preview downloads seperately | Erik Johnston | 2017-06-23 | 1 | -6/+22 |
| | | | | This makes it easier to clear old media out at a later date | ||||
* | Add API to quarantine media | Erik Johnston | 2017-06-19 | 1 | -2/+2 |
| | |||||
* | Set CORs headers on responses from the media repo | Mark Haines | 2016-11-02 | 1 | -1/+2 |
| | |||||
* | Report per request metrics for all of the things using request_handler | Mark Haines | 2016-04-28 | 1 | -1/+2 |
| | |||||
* | Move MediaRepository to media_repository module | Erik Johnston | 2016-04-19 | 1 | -1/+1 |
| | |||||
* | Split out BaseMediaResource into MediaRepository | Erik Johnston | 2016-04-19 | 1 | -20/+31 |
| | | | | | | | | | This is so that a single MediaRepository can be shared across all resources, rather than having a "copy" per resource. In particular this allows us to guard against both the thumbnail and download resource triggering a download of remote content at the same time. | ||||
* | comment out 2c838f6459db35ad9812a83184d85a06ca5d940a due to risk of ↵ | Matthew Hodgson | 2016-04-14 | 1 | -16/+16 |
| | | | | https://en.wikipedia.org/wiki/Billion_laughs attacks - thanks @torhve | ||||
* | how was _respond_default_thumbnail ever meant to work? | Matthew Hodgson | 2016-04-02 | 1 | -0/+2 |
| | |||||
* | pass back SVGs as their own thumbnails | Matthew Hodgson | 2016-04-02 | 1 | -0/+20 |
| | |||||
* | Only use cropped thumbnails when asked for a cropped thumbnail. | Mark Haines | 2016-01-07 | 1 | -1/+1 |
| | | | | Even though ones cropped with scale might be technically valid. | ||||
* | Allow guests to upgrade their accounts | Daniel Wagner-Hall | 2016-01-05 | 1 | -1/+1 |
| | |||||
* | Use larger thumbnail rather than smaller. | Erik Johnston | 2016-01-05 | 1 | -4/+13 |
| | |||||
* | Make a config option for whether to generate new thumbnail sizes dynamically | Mark Haines | 2015-08-12 | 1 | -7/+18 |
| | |||||
* | Fix remote thumbnailing | Erik Johnston | 2015-07-23 | 1 | -6/+10 |
| | |||||
* | Always return a thumbnail of the requested size. | Erik Johnston | 2015-07-23 | 1 | -2/+79 |
| | | | | | | Before, we returned a thumbnail that was at least as big (if possible) as the requested size. Now, if we don't have a thumbnail of the given size we generate (and persist) one of that size. | ||||
* | Pick larger than desired thumbnail for 'crop' | Erik Johnston | 2015-07-23 | 1 | -1/+2 |
| | |||||
* | If user supplies filename in URL when downloading from media repo, use that ↵ | Erik Johnston | 2015-07-03 | 1 | -1/+1 |
| | | | | name in Content Disposition | ||||
* | Combine the request wrappers in rest/media/v1 and http/server into a single ↵ | Mark Haines | 2015-04-21 | 1 | -7/+9 |
| | | | | wrapper decorator | ||||
* | Move rest APIs back under the rest directory | Mark Haines | 2015-01-22 | 1 | -0/+193 |