Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unnecessary pass statements. (#12206) | Patrick Cloke | 2022-03-11 | 1 | -1/+0 |
| | |||||
* | Prevent the media store from writing outside of the configured directory | Sean Quah | 2021-11-19 | 1 | -1/+17 |
| | | | | | Also tighten validation of server names by forbidding invalid characters in IPv6 addresses and empty domain labels. | ||||
* | Add reactor to `SynapseRequest` and fix up types. (#10868) | Erik Johnston | 2021-09-24 | 1 | -3/+4 |
| | |||||
* | Add missing type hints to non-client REST servlets. (#10817) | Patrick Cloke | 2021-09-15 | 1 | -9/+15 |
| | | | | Including admin, consent, key, synapse, and media. All REST servlets (the synapse.rest module) now require typed method definitions. | ||||
* | Convert media repo's FileInfo to attrs. (#10785) | Patrick Cloke | 2021-09-14 | 1 | -37/+57 |
| | | | | This is mostly an internal change, but improves type hints in the media code. | ||||
* | Use inline type hints in `handlers/` and `rest/`. (#10382) | Jonathan de Jong | 2021-07-16 | 1 | -1/+1 |
| | |||||
* | 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>` | ||||
* | Use the proper Request in type hints. (#9515) | Patrick Cloke | 2021-03-01 | 1 | -8/+10 |
| | | | | This also pins the Twisted version in the mypy job for CI until proper type hints are fixed throughout Synapse. | ||||
* | Fix some typos. | Patrick Cloke | 2021-02-12 | 1 | -1/+1 |
| | |||||
* | Return a 404 if no valid thumbnail is found. (#9163) | Patrick Cloke | 2021-01-21 | 1 | -0/+3 |
| | | | | | | 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 | -31/+45 |
| | |||||
* | Add X-Robots-Tag header to stop crawlers from indexing media (#8887) | Aaron Raimist | 2020-12-08 | 1 | -0/+5 |
| | | | | | | | Fixes / related to: https://github.com/matrix-org/synapse/issues/6533 This should do essentially the same thing as a robots.txt file telling robots to not index the media repo. https://developers.google.com/search/reference/robots_meta_tag Signed-off-by: Aaron Raimist <aaron@raim.ist> | ||||
* | Don't bother responding to client requests that have already disconnected ↵ | Andrew Morgan | 2020-10-06 | 1 | -0/+6 |
| | | | | | | | | | | (#8465) This PR ports the quick fix from https://github.com/matrix-org/synapse/pull/2796 to further methods which handle media, URL preview and `/key/v2/server` requests. This prevents a harmless `ERROR` that comes up in the logs when we were unable to respond to a client request when the client had already disconnected. In this case we simply bail out if the client has already done so. This is the 'simple fix' as suggested by https://github.com/matrix-org/synapse/issues/5304#issuecomment-574740003. Fixes https://github.com/matrix-org/synapse/issues/6700 Fixes https://github.com/matrix-org/synapse/issues/5304 | ||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -2/+2 |
| | |||||
* | Convert the remaining media repo code to async / await. (#7947) | Patrick Cloke | 2020-07-27 | 1 | -3/+5 |
| | |||||
* | Convert more of the media code to async/await (#7873) | Patrick Cloke | 2020-07-24 | 1 | -7/+8 |
| | |||||
* | Replace all remaining six usage with native Python 3 equivalents (#7704) | Dagfinn Ilmari Mannsåker | 2020-06-16 | 1 | -2/+1 |
| | |||||
* | remove miscellaneous PY2 code | Richard van der Hoff | 2020-05-15 | 1 | -18/+9 |
| | |||||
* | Set charset to utf-8 when adding headers for certain text content types (#7044) | The Stranjer | 2020-03-17 | 1 | -1/+24 |
| | | | | Fixes #7043 | ||||
* | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) | Patrick Cloke | 2020-02-21 | 1 | -21/+19 |
| | | | | Ensure good comprehension hygiene using flake8-comprehensions. | ||||
* | Log responder we are using. (#6139) | Michael Kaye | 2019-10-07 | 1 | -1/+1 |
| | | | This prevents us logging "Responding to media request with responder %s". | ||||
* | Move logging utilities out of the side drawer of util/ and into logging/ (#5606) | Amber Brown | 2019-07-04 | 1 | -4/+2 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -20/+37 |
| | |||||
* | Prevent "producer not unregistered" message (#5009) | Amber Brown | 2019-04-24 | 1 | -0/+4 |
| | |||||
* | Remove periods from copyright headers (#5046) | Andrew Morgan | 2019-04-11 | 1 | -1/+1 |
| | |||||
* | fix incorrect encoding of filenames with spaces in (#2090) | Matthew Hodgson | 2019-03-11 | 1 | -3/+51 |
| | | | | fixes https://github.com/vector-im/riot-web/issues/3155 | ||||
* | Fix parsing of Content-Disposition headers (#4763) | Richard van der Hoff | 2019-02-27 | 1 | -20/+65 |
| | | | | | | | | | | | * Fix parsing of Content-Disposition headers TIL: filenames in content-dispostion headers can contain semicolons, and aren't %-encoded. * fix python2 incompatibility * Fix docstrings | ||||
* | Don't log stack trace when client has gone away during media download (#4738) | Erik Johnston | 2019-02-25 | 1 | -2/+9 |
| | | | | | | | | * Don't log stack trace when client has gone away during media download * Newsfile * Fixup newsfile | ||||
* | Fix Content-Disposition in media repository (#4176) | Amber Brown | 2018-11-15 | 1 | -25/+97 |
| | |||||
* | Port rest/ to Python 3 (#3823) | Amber Brown | 2018-09-12 | 1 | -15/+15 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -11/+8 |
| | |||||
* | Fix logcontext leak in media repo | Richard van der Hoff | 2018-05-02 | 1 | -0/+1 |
| | | | | Make FileResponder.write_to_consumer uphold the logcontext contract | ||||
* | Use six.moves.urlparse | Adrian Tschira | 2018-04-15 | 1 | -1/+1 |
| | | | | | | The imports were shuffled around a bunch in py3 Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | Fix up comments | Erik Johnston | 2018-01-12 | 1 | -2/+2 |
| | |||||
* | Make Responder a context manager | Erik Johnston | 2018-01-12 | 1 | -6/+8 |
| | |||||
* | Comments | Erik Johnston | 2018-01-12 | 1 | -5/+4 |
| | |||||
* | Add some helper classes | Erik Johnston | 2018-01-09 | 1 | -0/+73 |
| | |||||
* | Split out add_file_headers | Erik Johnston | 2018-01-09 | 1 | -28/+42 |
| | |||||
* | replace 'except:' with 'except Exception:' | Richard van der Hoff | 2017-10-23 | 1 | -1/+1 |
| | | | | what could possibly go wrong | ||||
* | Fix a logcontext leak in the media repo | Richard van der Hoff | 2017-10-23 | 1 | -1/+4 |
| | |||||
* | Move MediaRepository to media_repository module | Erik Johnston | 2016-04-19 | 1 | -0/+110 |