- Jan 29, 2019
-
-
Erik Johnston authored
-
Erik Johnston authored
`.user_id` is proxed to `.sender` in FrozenEvent, so this has no functional change
-
Erik Johnston authored
-
Erik Johnston authored
This is so that everything is done in one place, making it easier to change the event format based on room version
-
Erik Johnston authored
-
Erik Johnston authored
Split up event validation between event and builder
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
This bug was introduced in PR #4470, commit 678a92cb
-
Amber Brown authored
* fix obvious problem :| * changelog
-
Erik Johnston authored
Refactor event signing to work on dicts
-
Richard van der Hoff authored
two reasons for this. One, it saves a bunch of boilerplate. Two, it squashes unicode to IDNA-in-a-`str` (even on python 3) in a way that it turns out we rely on to give consistent behaviour between python 2 and 3.
-
- Jan 28, 2019
-
-
Erik Johnston authored
Pass through room version to event auth
-
Erik Johnston authored
-
Amber Brown authored
* load cert * changelog * fix
-
Erik Johnston authored
-
Erik Johnston authored
The validator was being run on the EventBuilder objects, and so the validator only checked a subset of fields. With the upcoming EventBuilder refactor even fewer fields will be there to validate. To get around this we split the validation into those that can be run against an EventBuilder and those run against a fully fledged event.
-
Erik Johnston authored
-
Erik Johnston authored
This is in preparation for making EventBuilder format agnostic, which means event signing should be done against the event dict rather than the EventBuilder object.
-
Amber Brown authored
-
Andrew Morgan authored
Migrate direct message and tag state on room upgrade
-
Andrew Morgan authored
-
Andrew Morgan authored
-
Andrew Morgan authored
-
Aaron Raimist authored
* Remove --process-dependency-links from UPGRADE.rst Signed-off-by:
Aaron Raimist <aaron@raim.ist> * Add changelog Signed-off-by:
Aaron Raimist <aaron@raim.ist>
-
Richard van der Hoff authored
Refactoring in MatrixFederationAgent
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
We don't want to be doing .well-known lookups on these guys.
-
Richard van der Hoff authored
This is going to get too big and unmanageable.
-
Richard van der Hoff authored
Turns out that the library does a better job of parsing URIs than our reinvented wheel. Who knew. There are two things going on here. The first is that, unlike parse_server_name, URI.fromBytes will strip off square brackets from IPv6 literals, which means that it is valid input to ClientTLSOptionsFactory and HostnameEndpoint. The second is that we stay in `bytes` throughout (except for the argument to ClientTLSOptionsFactory), which avoids the weirdness of (sometimes) ending up with idna-encoded values being held in `unicode` variables. TBH it probably would have been ok but it made the tests fragile.
-
- Jan 25, 2019
-
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
Require event format version to parse or create events
-
Erik Johnston authored
Disable native upsert on sqlite
-
Erik Johnston authored
-
Richard van der Hoff authored
If you use double-quotes here, you have to escape your backslashes. It's much easier with single-quotes. (Note that the existing double-backslashes are already interpreted by python's """ parsing.)
-
Richard van der Hoff authored
Move the Host header logic down here so that (a) it is used if we reuse the agent elsewhere, and (b) we can mess about with it with .well-known.
-
Andrew Morgan authored
-