Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request from GHSA-x345-32rc-8h85 | Richard van der Hoff | 2021-05-11 | 1 | -14/+47 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests for push rule pattern matching * tests for acl pattern matching * factor out common `re.escape` * Factor out common re.compile * Factor out common anchoring code * add word_boundary support to `glob_to_regex` * Use `glob_to_regex` in push rule evaluator NB that this drops support for character classes. I don't think anyone ever used them. * Improve efficiency of globs with multiple wildcards The idea here is that we compress multiple `*` globs into a single `.*`. We also need to consider `?`, since `*?*` is as hard to implement efficiently as `**`. * add assertion on regex pattern * Fix mypy * Simplify glob_to_regex * Inline the glob_to_regex helper function Signed-off-by: Dan Callahan <danc@element.io> * Moar comments Signed-off-by: Dan Callahan <danc@element.io> Co-authored-by: Dan Callahan <danc@element.io> | ||||
* | 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>` | ||||
* | Remove frozendict_json_encoder and support frozendicts everywhere | Richard van der Hoff | 2020-10-28 | 1 | -3/+21 |
| | | | | | | Not being able to serialise `frozendicts` is fragile, and it's annoying to have to think about which serialiser you want. There's no real downside to supporting frozendicts, so let's just have one json encoder. | ||||
* | Use slots in attrs classes where possible (#8296) | Patrick Cloke | 2020-09-14 | 1 | -1/+1 |
| | | | | | slots use less memory (and attribute access is faster) while slightly limiting the flexibility of the class attributes. This focuses on objects which are instantiated "often" and for short periods of time. | ||||
* | Merge tag 'v1.20.0rc3' into develop | Patrick Cloke | 2020-09-11 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | | | | | Synapse 1.20.0rc3 (2020-09-11) ============================== Bugfixes -------- - Fix a bug introduced in v1.20.0rc1 where the wrong exception was raised when invalid JSON data is encountered. ([\#8291](https://github.com/matrix-org/synapse/issues/8291)) | ||||
| * | Fix the exception that is raised when invalid JSON is encountered. (#8291) | Patrick Cloke | 2020-09-10 | 1 | -1/+1 |
| | | |||||
* | | Directly import json from the standard library. (#8259) | Patrick Cloke | 2020-09-08 | 1 | -1/+1 |
|/ | | | | | By importing from canonicaljson the simplejson module was still being used in some situations. After this change the std lib json is consistenty used throughout Synapse. | ||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -1/+1 |
| | |||||
* | Be stricter about JSON that is accepted by Synapse (#8106) | Patrick Cloke | 2020-08-19 | 1 | -2/+12 |
| | |||||
* | Reduce unnecessary whitespace in JSON. (#7372) | David Vo | 2020-08-07 | 1 | -0/+4 |
| | |||||
* | Fix some spelling mistakes / typos. (#7811) | Patrick Cloke | 2020-07-09 | 1 | -1/+1 |
| | |||||
* | move batch_iter to a separate module | Richard van der Hoff | 2020-01-16 | 1 | -17/+0 |
| | |||||
* | Add kwargs and doc | Brendan Abolivier | 2019-07-29 | 1 | -2/+4 |
| | |||||
* | Add ability to pass arguments to looping calls | Brendan Abolivier | 2019-07-29 | 1 | -2/+2 |
| | |||||
* | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -1/+1 |
| | |||||
* | Improve the backwards compatibility re-exports of synapse.logging.context ↵ | Amber Brown | 2019-07-05 | 1 | -5/+1 |
| | | | | | | | | (#5617) * Improve the backwards compatibility re-exports of synapse.logging.context. * reexport logformatter too | ||||
* | Move logging utilities out of the side drawer of util/ and into logging/ (#5606) | Amber Brown | 2019-07-04 | 1 | -4/+8 |
| | |||||
* | Fix a number of "Starting txn from sentinel context" warnings (#5605) | Richard van der Hoff | 2019-07-03 | 1 | -1/+7 |
| | | | | Fixes #5602, #5603 | ||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -14/+9 |
| | |||||
* | Anchor returned regex to start and end of string | Erik Johnston | 2018-10-19 | 1 | -2/+6 |
| | |||||
* | Add config option to control alias creation | Erik Johnston | 2018-10-19 | 1 | -0/+21 |
| | |||||
* | Remove unnecessary extra function call layer | Erik Johnston | 2018-10-08 | 1 | -16/+13 |
| | |||||
* | Use errback pattern and catch async failures | Erik Johnston | 2018-10-08 | 1 | -14/+29 |
| | |||||
* | Log looping call exceptions | Erik Johnston | 2018-10-05 | 1 | -1/+18 |
| | | | | | | | | If a looping call function errors, then it kills the loop entirely. Currently it throws away the exception logs, so we should make it actually log them. Fixes #3929 | ||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -0/+1 |
| | |||||
* | Remove all global reactor imports & pass it around explicitly (#3424) | Amber Brown | 2018-06-25 | 1 | -0/+3 |
| | |||||
* | Pass around the reactor explicitly (#3385) | Amber Brown | 2018-06-22 | 1 | -12/+20 |
| | |||||
* | Add batch_iter to utils | Adrian Tschira | 2018-05-19 | 1 | -0/+18 |
| | | | | | | | | | There's a frequent idiom I noticed where an iterable is split up into a number of chunks/batches. Unfortunately that method does not work with iterators like dict.keys() in python3. This implementation works with iterators. Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | Use deferred.addTimeout instead of time_bound_deferred | Richard van der Hoff | 2018-04-23 | 1 | -56/+0 |
| | | | | This doesn't feel like a wheel we need to reinvent. | ||||
* | fix vars named `l` | Richard van der Hoff | 2017-10-23 | 1 | -3/+3 |
| | | | | E741 says "do not use variables named ‘l’, ‘O’, or ‘I’". | ||||
* | replace 'except:' with 'except Exception:' | Richard van der Hoff | 2017-10-23 | 1 | -6/+6 |
| | | | | what could possibly go wrong | ||||
* | Instantiate DeferredTimedOutError correctly | Richard van der Hoff | 2017-05-02 | 1 | -1/+1 |
| | | | | | | Call `super` correctly, so that we correctly initialise the `errcode` field. Fixes https://github.com/matrix-org/synapse/issues/2179. | ||||
* | Fix time_bound_deferred to throw the right exception | Richard van der Hoff | 2017-03-23 | 1 | -4/+6 |
| | | | | | | Due to a failure to instantiate DeferredTimedOutError, time_bound_deferred would throw a CancelledError when the deferred timed out, which was rather confusing. | ||||
* | Correctly handle timeout errors | Erik Johnston | 2016-12-09 | 1 | -1/+6 |
| | |||||
* | Clean transactions based on time. Add HttpTransactionCache tests. | Kegan Dougal | 2016-11-14 | 1 | -1/+9 |
| | |||||
* | Use SynapseError 504 for Timeout errors | Erik Johnston | 2016-04-15 | 1 | -1/+2 |
| | |||||
* | Remove some unused functions (#711) | Mark Haines | 2016-04-08 | 1 | -3/+0 |
| | | | | | | | | * Remove some unused functions * get_room_events_stream is only used in tests * is_exclusive_room might actually be something we want | ||||
* | Initial cut | Erik Johnston | 2016-02-17 | 1 | -1/+1 |
| | |||||
* | Fix up logcontexts | Erik Johnston | 2016-02-08 | 1 | -4/+2 |
| | |||||
* | Fix flake8 warnings for new flake8 | Daniel Wagner-Hall | 2016-02-02 | 1 | -1/+1 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Track the cpu used in the main thread by each logging context | Mark Haines | 2015-12-03 | 1 | -2/+1 |
| | |||||
* | Run the background updates when starting synapse. | Mark Haines | 2015-11-10 | 1 | -0/+8 |
| | |||||
* | synapse/util/__init__.py:unwrap_deferred was unused | Mark Haines | 2015-09-22 | 1 | -28/+0 |
| | |||||
* | Refactor the notifier.wait_for_events code to be clearer. Add ↵ | Erik Johnston | 2015-06-18 | 1 | -2/+6 |
| | | | | _NotifierUserStream.new_listener that accpets a token to avoid races. | ||||
* | Awful idea for speeding up fetching of events | Erik Johnston | 2015-05-14 | 1 | -4/+4 |
| | |||||
* | Refactor _get_events | Erik Johnston | 2015-05-14 | 1 | -0/+28 |
| | |||||
* | Unwrap defer.gatherResults failures | Erik Johnston | 2015-05-12 | 1 | -0/+6 |
| | |||||
* | Fix up leak. Add warnings. | Erik Johnston | 2015-05-08 | 1 | -1/+2 |
| | |||||
* | Change the way we do logging contexts so that they survive divergences | Erik Johnston | 2015-05-08 | 1 | -3/+5 |
| | |||||
* | Consume errors in time_bound_deferred | Erik Johnston | 2015-02-17 | 1 | -2/+0 |
| | |||||
* | Fix so timing out connections to actually work. | Erik Johnston | 2015-02-11 | 1 | -9/+43 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2015-02-11 | 1 | -1/+9 |
|\ | | | | | | | timeout-federation-requests | ||||
| * | Add looping_call to Clock | Erik Johnston | 2015-02-09 | 1 | -1/+9 |
| | | |||||
* | | Move time_bound_deferred into Clock | Erik Johnston | 2015-02-11 | 1 | -1/+20 |
|/ | |||||
* | Update copyright notices | Mark Haines | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | Fix pep8 codestyle warnings | Mark Haines | 2014-11-20 | 1 | -0/+1 |
| | |||||
* | Sometimes there isn't a current logging context | Mark Haines | 2014-11-19 | 1 | -1/+1 |
| | |||||
* | Preserve logging context in a few more places, drop the logging context ↵ | Mark Haines | 2014-11-19 | 1 | -1/+6 |
| | | | | after it has been stashed to reduce potential for confusion | ||||
* | fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵ | Matthew Hodgson | 2014-09-03 | 1 | -1/+1 |
| | | | | hasn't been incorporated in time for launch. | ||||
* | add in whitespace after copyright statements to improve legibility | Matthew Hodgson | 2014-08-13 | 1 | -0/+1 |
| | |||||
* | Reference Matrix Home Server | matrix.org | 2014-08-12 | 1 | -0/+40 |