1
0
Commit Graph

12661 Commits

Author SHA1 Message Date
David Baker e750d031c8 Cast to int here too 2019-02-13 14:24:42 +00:00
David Baker efb77b87d1 Cast bacjup version to int when querying 2019-02-13 14:24:42 +00:00
David Baker b0ac23319a Convert version back to a string 2019-02-13 14:24:42 +00:00
David Baker 515a6cb0d3 news fragment 2019-02-13 14:24:42 +00:00
David Baker 8f46b61aed Try & make it work on postgres 2019-02-13 14:24:42 +00:00
David Baker f814a1ec5a Make e2e backup versions numeric in the DB
We were doing max(version) which does not do what we wanted
on a column of type TEXT.
2019-02-13 14:24:42 +00:00
Brendan Abolivier 7b28b058e1 Add a Content-Type header on POST requests to the federation client 2019-02-13 14:24:42 +00:00
Erik Johnston 06132f1f0b Add test to assert set_e2e_device_keys correctly returns False on no-op 2019-02-13 14:24:42 +00:00
Erik Johnston b8077ca8cd Lets convert bytes to unicode instead 2019-02-13 14:24:42 +00:00
Erik Johnston e56d0456cb Newsfile 2019-02-13 14:24:42 +00:00
Erik Johnston 755f42d769 Fix noop checks when updating device keys
Clients often reupload their device keys (for some reason) so its
important for the server to check for no-ops before sending out device
list update notifications.

The check is broken in python 3 due to the fact comparing bytes and
unicode always fails, and that we write bytes to the DB but get unicode
when we read.
2019-02-13 14:24:42 +00:00
Richard van der Hoff ef77ab59a7 fix parse_string docstring 2019-02-13 14:24:42 +00:00
Richard van der Hoff d26852e9d8 changelog 2019-02-13 14:24:42 +00:00
hera 1f8a82077e Fix encoding error for consent form on python3
The form was rendering this as "b'01234....'".

-- richvdh
2019-02-13 14:24:42 +00:00
Erik Johnston 14059e2300 pep8 2019-02-13 14:24:41 +00:00
Erik Johnston 3223f415e2 Add server health apis and server presence 2019-02-13 14:23:21 +00:00
Erik Johnston f57e71645a Missing file 2019-02-13 14:22:59 +00:00
Erik Johnston c400d9dcca Add backchatter 2019-02-13 14:22:58 +00:00
Erik Johnston ed43a63fcf Don't verify stuff 2019-02-13 14:22:18 +00:00
Erik Johnston e6896040c7 Merge branch 'erikj/thread_demo' of github.com:matrix-org/synapse into erikj/add_routing_hooks 2018-11-21 11:45:11 +00:00
Erik Johnston d0d3c63705 Fix threading when pulling in via get_missing_events 2018-11-21 10:45:35 +00:00
Erik Johnston 5ae1644d3d Send down new thread marker 2018-11-20 17:42:43 +00:00
Erik Johnston 115e4bb4c6 Fix threading 2018-11-20 17:04:19 +00:00
Erik Johnston 607ac7ea37 Lower all the timeouts 2018-11-20 13:32:47 +00:00
Erik Johnston 775441105a Reduce timeouts for sending transaction 2018-11-20 11:30:43 +00:00
Erik Johnston e644f49b46 Delta file 2018-11-19 15:09:07 +00:00
Erik Johnston 712caeba60 Add hooks in federation for funky event routing 2018-11-14 16:12:33 +00:00
Erik Johnston 956b47da2b Dont' log so aggressively 2018-11-14 15:32:33 +00:00
Erik Johnston 822fcc3bb8 Add concept of internal events 2018-11-13 15:33:54 +00:00
Erik Johnston 5daa2b9dbc Fix sync for archived rooms 2018-11-13 15:13:03 +00:00
Erik Johnston 08395c7f89 Implemented thread support for backfills 2018-11-13 14:56:38 +00:00
Erik Johnston c67953748d Add thread_id to filter 2018-11-13 10:34:38 +00:00
Erik Johnston 78fec6b3c9 Add flag to sync to exclude threads 2018-11-12 16:20:14 +00:00
Erik Johnston dfa830e61a Store and fetch thread IDs 2018-11-12 15:44:22 +00:00
Erik Johnston dc59ad5334 Remove hack to support rejoining rooms 2018-11-09 14:58:09 +00:00
Erik Johnston 30dd27afff Simplify to always drop events if server isn't in the room 2018-11-09 11:36:45 +00:00
Richard van der Hoff 3cecf5340d Update synapse/federation/federation_server.py
Co-Authored-By: erikjohnston <erikj@jki.re>
2018-11-09 11:28:25 +00:00
Richard van der Hoff 9bce065a53 Update synapse/federation/federation_server.py
Co-Authored-By: erikjohnston <erikj@jki.re>
2018-11-09 11:28:22 +00:00
Erik Johnston 94896d7ffe Newsfile 2018-11-08 12:30:25 +00:00
Erik Johnston 9417986f77 Drop PDUs of unknown rooms
When we receive events over federation we will need to know the room
version to be able to correctly handle them, e.g. once we start changing
event formats. Currently, we attempt to handle events in unknown rooms.
2018-11-08 12:11:20 +00:00
Amber Brown 264cb14402 Port hash_password to Python 3 (#4161)
* port hash_password

* changelog
2018-11-08 04:57:28 +11:00
Amber Brown b3708830b8 Fix URL preview bugs (type error when loading cache from db, content-type including quotes) (#4157) 2018-11-08 01:37:43 +11:00
Richard van der Hoff c8ba79327b Merge pull request #4155 from rubo77/purge-api
add purge_history.sh and purge_remote_media.sh scripts
2018-11-07 14:06:41 +00:00
rubo77 2904d133f3 add purge_history.sh and purge_remote_media.sh scripts to contrib/purge_api/
Signed-off-by: Ruben Barkow <github@r.z11.de>
2018-11-07 14:02:41 +01:00
Amber Brown e62f7f17b3 Remove some boilerplate in tests (#4156) 2018-11-07 03:00:00 +11:00
Travis Ralston 0f5e51f726 Add config variables for enabling terms auth and the policy name (#4142)
So people can still collect consent the old way if they want to.
2018-11-06 10:32:34 +00:00
Hubert Chathi f1087106cf handle empty backups according to latest spec proposal (#4123)
fixes #4056
2018-11-05 17:59:29 -05:00
Amber Brown efdcbbe46b Tests for user consent resource (#4140) 2018-11-06 05:53:44 +11:00
Amber Brown 5a63589e80 Add some tests for the HTTP pusher (#4149) 2018-11-06 05:53:24 +11:00
Erik Johnston bc80b3f454 Add helpers for getting prev and auth events (#4139)
* Add helpers for getting prev and auth events

This is in preparation for allowing the event format to change between
room versions.
2018-11-06 00:35:15 +11:00