Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use direct references for configuration variables (part 5). (#10897) | Patrick Cloke | 2021-09-24 | 1 | -1/+1 |
| | |||||
* | Add reactor to `SynapseRequest` and fix up types. (#10868) | Erik Johnston | 2021-09-24 | 1 | -8/+7 |
| | |||||
* | Convert media repo's FileInfo to attrs. (#10785) | Patrick Cloke | 2021-09-14 | 1 | -35/+42 |
| | | | | This is mostly an internal change, but improves type hints in the media code. | ||||
* | Fix error when selecting between thumbnails with the same quality (#10684) | Sean | 2021-08-25 | 1 | -9/+17 |
| | | | Fixes #10318 | ||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -1/+0 |
| | | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` | ||||
* | Import HomeServer from the proper module. (#9665) | Patrick Cloke | 2021-03-23 | 1 | -1/+1 |
| | |||||
* | Use the proper Request in type hints. (#9515) | Patrick Cloke | 2021-03-01 | 1 | -1/+1 |
| | | | | This also pins the Twisted version in the mypy job for CI until proper type hints are fixed throughout Synapse. | ||||
* | Return a 404 if we don't have the original file | Erik Johnston | 2021-02-19 | 1 | -0/+7 |
| | |||||
* | Regenerate exact thumbnails if missing | Erik Johnston | 2021-02-18 | 1 | -1/+48 |
| | |||||
* | Return a 404 if no valid thumbnail is found. (#9163) | Patrick Cloke | 2021-01-21 | 1 | -81/+155 |
| | | | | | | 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. | ||||
* | Add type hints to media rest resources. (#9093) | Patrick Cloke | 2021-01-15 | 1 | -27/+54 |
| | |||||
* | Do not error when thumbnailing invalid files (#8236) | Patrick Cloke | 2020-09-09 | 1 | -2/+3 |
| | | | | 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. | ||||
* | 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 |