Commit Graph

692 Commits (d0aee697ac0587c005bc1048f5036979331f1101)

Author SHA1 Message Date
Erik Johnston 8c652a2b5f When we see a difference in current state, actually use state conflict resolution algorithm 10 years ago
Erik Johnston 38df10b99e Remove unused function 10 years ago
Erik Johnston 963256638d Correctly handle all the places that can throw exceptions 10 years ago
Erik Johnston 76935078d1 Remove more debug logging 10 years ago
Erik Johnston ed877d6585 Remove debug logging 10 years ago
Erik Johnston ddb816cf60 Don't unfreeze when using FreezeEvent.get_dict, as we are using a JSONEncoder that understands FrozenDict 10 years ago
Erik Johnston cc0532a4bf Explicitly list the RejectedReasons that we can prove 10 years ago
Erik Johnston e890ce223c Don't query auth if the only difference is events that were rejected due to auth. 10 years ago
Erik Johnston c78b5fb1f1 Make seen_ids a set 10 years ago
Erik Johnston 3737329d9b Handle the fact the list.remove raises if element doesn't exist 10 years ago
Erik Johnston e1515c3e91 Pass through list of room hosts from room alias query to federation so that it can retry against different room hosts 10 years ago
Erik Johnston ae46f10fc5 Apply sanity to the transport client interface. Convert 'make_join' and 'send_join' to accept iterables of destinations 10 years ago
Erik Johnston 650e32d455 Change context.auth_events to what the auth_events would be bases on context.current_state, rather than based on the auth_events from the event. 10 years ago
Erik Johnston c0462dbf15 Rearrange persist_event so that do all the queries that need to be done before returning early if we have already persisted that event. 10 years ago
Erik Johnston 7dd1c5c542 Neaten the handling of state and auth_chain up a bit 10 years ago
Erik Johnston 6efd4d1649 Don't completely die if get auth_chain or querying auth_chain requests fail 10 years ago
Erik Johnston 77a076bd25 Set combinations is | and not + 10 years ago
Erik Johnston fed29251d7 Spelling 10 years ago
Erik Johnston 06c34bfbae Give exception better message 10 years ago
Erik Johnston 4ff2273b30 Add FIXME note. 10 years ago
Erik Johnston 51969f9e5f Return rejected events if asked for it over federation. 10 years ago
Erik Johnston e7ca813dd4 Try to ensure we don't persist an event we have already persisted. In persist_event check if we already have the event, if so then update instead of replacing so that we don't cause a bump of the stream_ordering. 10 years ago
Erik Johnston 4c0da49d7c Resign events when we return them via /query_auth/ 10 years ago
Erik Johnston 2cd29dbdd9 Fix bug where accepting invite over federation didn't work. Add logging. 10 years ago
Erik Johnston b724a809c4 Only auth_events with event if event in event.auth_events 10 years ago
Erik Johnston a70a801184 Fix bug where we superfluously asked for current state. Change API of /query_auth/ so that we don't duplicate events in the response. 10 years ago
Erik Johnston 0c2d245fdf Update the current state of an event if we update auth events. 10 years ago
Erik Johnston c1d860870b Fix regression where we no longer correctly handled the case of gaps in our event graph 10 years ago
Erik Johnston 78015948a7 Initial implementation of auth conflict resolution 10 years ago
Erik Johnston 0ef5bfd6a9 Start implementing auth conflict res 10 years ago
Mark Haines 5759bec43c Replace hs.parse_userid with UserID.from_string 10 years ago
Mark Haines 5fed042640 Finish renaming "context" to "room_id" in federation codebase 10 years ago
Kegan Dougal 333836ff92 PEP8 and pyflakes warnings 10 years ago
Kegan Dougal 9cb4f75d53 SYN-154: Better error messages when joining an unknown room by ID. 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Mark Haines 041ac476a5 Supply auth_chain along with current state in '/state/', fetch auth events from a remote server if we are missing some of them 10 years ago
Mark Haines dea5d4b03b Don't yield on sending the event accross federation. 10 years ago
Erik Johnston f3788e3c78 Test some ideas that might help performance a bit 10 years ago
Erik Johnston 21cab3a7ec Fix where we pulled in event.state_events from hotfixes branch 10 years ago
Erik Johnston 3defd5b3ee Add FIXME 10 years ago
Erik Johnston 96779d2490 Fix bug where we did not send the full auth chain to people that joined over federation 10 years ago
Erik Johnston 2d7716d4d0 Make error messages slightly more helpful 10 years ago
Mark Haines c3eae8a88c Construct the EventContext in the state handler rather than constructing one and then immediately calling state_handler.annotate_context_with_state 10 years ago
Mark Haines 3c7857e49b clean up coding style a bit 10 years ago
Erik Johnston 3c77d13aa5 Kill off synapse.api.events.* 10 years ago
Erik Johnston 6a1da99fab Add fixme to raising of AuthError in federation land 10 years ago
Erik Johnston d3eb12c7b8 Fix federation test 10 years ago
Erik Johnston 0b04369238 Fix public room joining by making sure replaces_state never points to itself. 10 years ago
Erik Johnston 1d2a0040cf Fix bug where we clobbered old state group values 10 years ago
Erik Johnston 02db1fd2e7 Fix AttributeError 10 years ago