summary refs log tree commit diff
path: root/synapse/rest/media/v1/media_repository.py (follow)
Commit message (Expand)AuthorAgeFilesLines
* Refactor media modules. (#15146)Patrick Cloke2023-02-271-1112/+0
* Respond with proper error responses on unknown paths. (#14621)Patrick Cloke2022-12-081-2/+2
* Remove redundant types from comments. (#14412)Patrick Cloke2022-11-161-2/+2
* Add a `MXCUri` class to make working with mxc uri's easier. (#13162)Andrew Morgan2022-09-151-2/+4
* Drop support for calling `/_matrix/client/v3/rooms/{roomId}/invite` without a...Jacek KuĊ›nierz2022-08-311-1/+0
* Prevent local quarantined media from being claimed by media retention (#12972)Andrew Morgan2022-06-071-6/+16
* Fix potential thumbnail memory leaks. (#12932)Erik Johnston2022-06-011-124/+141
* Add config options for media retention (#12732)Andrew Morgan2022-05-311-1/+70
* Refactor and convert `Linearizer` to async (#12357)Sean Quah2022-04-051-3/+3
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-1/+1
* Convert all namedtuples to attrs. (#11665)Patrick Cloke2021-12-301-6/+13
* Handle missing Content-Type header when accessing remote media (#11200)Shay2021-11-011-1/+11
* Use direct references for configuration variables (part 5). (#10897)Patrick Cloke2021-09-241-8/+12
* Add reactor to `SynapseRequest` and fix up types. (#10868)Erik Johnston2021-09-241-3/+7
* Use direct references for configuration variables (part 4). (#10893)Patrick Cloke2021-09-231-1/+3
* Add missing type hints to non-client REST servlets. (#10817)Patrick Cloke2021-09-151-2/+6
* Convert media repo's FileInfo to attrs. (#10785)Patrick Cloke2021-09-141-18/+22
* Admin API to delete media for a specific user (#10558)Dirk Klimpel2021-08-111-2/+4
* Use inline type hints in `handlers/` and `rest/`. (#10382)Jonathan de Jong2021-07-161-5/+5
* Fix /upload 500'ing when presented a very large image (#10029)Michael Telatynski2021-05-211-0/+2
* More robust handling of the Content-Type header for thumbnail generation (#9788)rkfg2021-04-141-0/+3
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
* Import HomeServer from the proper module. (#9665)Patrick Cloke2021-03-231-1/+1
* Convert Requester to attrs (#9586)Richard van der Hoff2021-03-101-1/+2
* Use the proper Request in type hints. (#9515)Patrick Cloke2021-03-011-1/+1
* Regenerate exact thumbnails if missingErik Johnston2021-02-181-1/+1
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-5/+21
* Fix some typos.Patrick Cloke2021-02-121-4/+4
* Add type hints to media rest resources. (#9093)Patrick Cloke2021-01-151-21/+29
* Apply an IP range blacklist to push and key revocation requests. (#8821)Patrick Cloke2020-12-021-1/+1
* Fix race for concurrent downloads of remote media. (#8682)Erik Johnston2020-10-301-60/+105
* Add an admin api to delete local media. (#8519)Dirk Klimpel2020-10-261-1/+71
* fix a logging error in thumbnailer (#8435)Richard van der Hoff2020-10-011-1/+1
* Discard an empty upload_name before persisting an uploaded file (#7905)Will Hunt2020-09-291-3/+4
* Do not error when thumbnailing invalid files (#8236)Patrick Cloke2020-09-091-8/+61
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
* Convert the remaining media repo code to async / await. (#7947)Patrick Cloke2020-07-271-44/+61
* Fetch from the r0 media path instead of the unspecced v1. (#7714)Patrick Cloke2020-06-171-4/+4
* Replace iteritems/itervalues/iterkeys with native versions. (#7692)Patrick Cloke2020-06-151-3/+1
* Convert some of the media REST code to async/await (#7110)Patrick Cloke2020-03-201-61/+49
* Fixup synapse.rest to pass mypy (#6732)Erik Johnston2020-01-201-1/+2
* Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2019-10-311-5/+7
* fix thumbnail storage location (#5915)L0ric02019-09-021-1/+1
* Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2019-08-301-2/+2
* Don't load the media repo when configured to use an external media repo (#5754)Amber Brown2019-08-131-1/+5
* Replace returnValue with return (#5736)Amber Brown2019-07-231-9/+9
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-6/+6
* Run Black. (#5482)Amber Brown2019-06-201-102/+113
* Don't log exception when failing to fetch remote content.Erik Johnston2019-06-071-2/+4
* Fix image orientation when generating thumbnail (#5039)PauRE2019-05-161-0/+9
* Refactor request sending to have better excpetions (#4358)Erik Johnston2019-01-081-3/+4
* Fix Content-Disposition in media repository (#4176)Amber Brown2018-11-151-38/+10
* Delete the disused & unspecced identicon functionality (#4106)Amber Brown2018-10-291-2/+0
* Correctly account for cpu usage by background threads (#4074)Richard van der Hoff2018-10-231-10/+14
* Port rest/ to Python 3 (#3823)Amber Brown2018-09-121-12/+17
* Add GET media/v1/config (#3184)Will Hunt2018-08-161-1/+2
* Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-101-1/+1
* Refactor code for turning HttpResponseException into SynapseErrorRichard van der Hoff2018-08-011-1/+1
* Fix some looping_call calls which were broken in #3604Richard van der Hoff2018-07-261-1/+1
* Wrap a number of things that run in the backgroundRichard van der Hoff2018-07-251-1/+7
* run isortAmber Brown2018-07-091-25/+26
* Pass around the reactor explicitly (#3385)Amber Brown2018-06-221-1/+2
* replace some iteritems with sixAdrian Tschira2018-05-191-1/+2
* Use six.moves.urlparseAdrian Tschira2018-04-151-1/+1
* Merge pull request #2791 from matrix-org/erikj/media_storage_refactorErik Johnston2018-02-051-9/+11
|\
| * Ensure media is in local cache before thumbnailingErik Johnston2018-01-181-9/+11
* | Add federation_domain_whitelist option (#2820)Matthew Hodgson2018-01-221-2/+17
* | Merge pull request #2812 from matrix-org/erikj/media_storage_provider_configErik Johnston2018-01-181-12/+6
|\ \
| * | Make storage providers more configurableErik Johnston2018-01-181-12/+6
| |/
* / Keep track of last access time for local mediaErik Johnston2018-01-171-7/+25
|/
* Add docstringErik Johnston2018-01-171-1/+1
* Use local varsErik Johnston2018-01-161-6/+2
* Change _generate_thumbnails to take media_typeErik Johnston2018-01-161-5/+6
* Move setting of file_id up to callerErik Johnston2018-01-161-11/+10
* Fix up log linesErik Johnston2018-01-161-1/+1
* Correctly use server_name/file_id when generating/fetching remote thumbnailsErik Johnston2018-01-161-2/+5
* Log when we respond with 404Erik Johnston2018-01-161-0/+1
* Fix thumbnailing remote filesErik Johnston2018-01-161-0/+28
* Fix up commentsErik Johnston2018-01-121-5/+14
* Remove unnecessary conditionErik Johnston2018-01-121-4/+1
* Make class var localErik Johnston2018-01-121-3/+3
* CommentsErik Johnston2018-01-121-5/+34
* Add StorageProvider conceptErik Johnston2018-01-091-5/+24
* Make PreviewUrlResource use MediaStorageErik Johnston2018-01-091-1/+3
* Make ThumbnailResource use MediaStorageErik Johnston2018-01-091-1/+3
* Use MediaStorage for remote mediaErik Johnston2018-01-091-104/+145
* Use MediaStorage for local filesErik Johnston2018-01-091-96/+72
* replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-231-1/+1
* Fix typo in thumbnail generationErik Johnston2017-10-191-2/+5
* fix thumbnailing (#2548)Krombel2017-10-171-2/+2
* Add try/finally block to close t_byte_sourceErik Johnston2017-10-131-24/+41
* Remove old commentErik Johnston2017-10-131-1/+0
* Don't reuse source but instead copy from primary media store to backupErik Johnston2017-10-131-20/+8
* PEP8Erik Johnston2017-10-131-1/+1
* Move type into keyErik Johnston2017-10-131-3/+3
* CommentErik Johnston2017-10-131-1/+1
* Remove spurious additionErik Johnston2017-10-131-4/+0
* Remove unnecessary diffErik Johnston2017-10-131-3/+1
* s/write_to_file/write_to_file_and_backup/Erik Johnston2017-10-131-5/+5
* Fix upErik Johnston2017-10-131-33/+29
* Fix up thumbnailing functionErik Johnston2017-10-131-68/+59
* Fix typoErik Johnston2017-10-131-1/+1
* Fix up commentsErik Johnston2017-10-131-2/+26
* Move makedirs to threadErik Johnston2017-10-131-2/+1
* Use make_deferred_yieldableErik Johnston2017-10-131-7/+7
* Don't close prematurely..Erik Johnston2017-10-121-2/+5
* getvalue closes bufferErik Johnston2017-10-121-11/+10
* Get len before closeErik Johnston2017-10-121-6/+11
* Don't close file prematurelyErik Johnston2017-10-121-6/+16
* Copy everything to backupErik Johnston2017-10-121-41/+68
* TypoErik Johnston2017-10-121-1/+1
* Remove dead codeErik Johnston2017-10-121-3/+0
* Fix typosErik Johnston2017-10-121-20/+26
* Fix typoErik Johnston2017-10-121-1/+1
* Basic implementation of backup media storeErik Johnston2017-10-121-115/+106
* Store URL cache preview downloads seperatelyErik Johnston2017-06-231-8/+22
* Add API to quarantine mediaErik Johnston2017-06-191-0/+2
* Throw exception when not retrying when downloading mediaErik Johnston2017-06-131-0/+1
* Don't log exceptions for NotRetryingDestinationErik Johnston2017-05-151-1/+3
* Address review commentsRichard van der Hoff2017-03-141-15/+17
* Fix routing loop when fetching remote mediaRichard van der Hoff2017-03-131-4/+26
* Fix dynamic thumbnails aspectJurek2017-02-241-0/+3
* Log which files we saved attachments to in the media_repositoryMark Haines2017-01-101-0/+4
* Name linearizer's for better logsErik Johnston2017-01-091-1/+1
* Remove raceErik Johnston2016-06-291-11/+0
* Implement purge_media_cache admin APIErik Johnston2016-06-291-20/+58
* Track approximate last access time for remote mediaErik Johnston2016-06-291-0/+24
* 502 on /thumbnail when can't contact remote serverErik Johnston2016-06-091-4/+10
* Move MediaRepository to media_repository moduleErik Johnston2016-04-191-1/+384
* Split out BaseMediaResource into MediaRepositoryErik Johnston2016-04-191-4/+8
* Sanitize the optional dependencies for spider APIErik Johnston2016-04-131-5/+1
* Add url_preview_enabled config option to turn on/off preview_url endpoint. de...Matthew Hodgson2016-04-081-1/+6
* pep8Matthew Hodgson2016-04-031-1/+0
* initial WIP of a tentative preview_url endpoint - incomplete, untested, exper...Matthew Hodgson2016-01-241-0/+3
* copyrightsMatthew Hodgson2016-01-071-1/+1
* thou shalt specify a content-lengthMatthew Hodgson2015-02-071-0/+1
* Add a media/v1/identicon resource for generating identicons using pydenticonMark Haines2015-02-021-0/+2
* Move rest APIs back under the rest directoryMark Haines2015-01-221-0/+77