summary refs log tree commit diff
path: root/synapse/handlers/federation.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #193 from matrix-org/erikj/bulk_persist_eventErik Johnston2015-07-141-106/+121
|\ | | | | Add bulk insert events API
| * Add bulk insert events APIErik Johnston2015-06-251-106/+121
| |
* | Add commentErik Johnston2015-07-091-0/+4
| |
* | Rename key and values for m.room.history_visibility. Support 'invited' valueErik Johnston2015-07-061-14/+20
| |
* | Filter and redact events that the other server doesn't have permission to ↵Erik Johnston2015-07-031-0/+44
|/ | | | see during backfill
* Merge pull request #176 from matrix-org/erikj/backfill_authErik Johnston2015-06-031-1/+46
|\ | | | | Improve backfill.
| * Add a timeoutErik Johnston2015-06-021-0/+1
| |
| * Handle the fact we might be missing auth eventsErik Johnston2015-06-021-15/+19
| |
| * Add some loggingErik Johnston2015-06-021-0/+5
| |
| * Correctly look up auth_eventsErik Johnston2015-06-021-9/+12
| |
| * Don't process events we've already processed. Remember to process state eventsErik Johnston2015-06-021-0/+22
| |
| * Correctly pass in auth_eventsErik Johnston2015-06-011-1/+11
| |
* | Don't needlessly compute contextErik Johnston2015-06-031-2/+4
|/
* Actually fetch state for new backwards extremeties when backfilling.Erik Johnston2015-05-201-61/+103
|
* Don't apply new room join hack if depth > 5Erik Johnston2015-05-191-3/+6
|
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/join_perfErik Johnston2015-05-191-10/+15
|\
| * Merge branch 'notifier_unify' into notifier_performanceMark Haines2015-05-141-0/+2
| |\
| * | Don't bother checking for updates if the stream token hasn't advanced for a userMark Haines2015-05-131-10/+15
| | |
* | | Do work in parellel when joining a roomErik Johnston2015-05-181-19/+50
| |/ |/|
* | Don't talk to yourself when backfillingErik Johnston2015-05-121-0/+2
|/
* Merge pull request #144 from matrix-org/erikj/logging_contextMark Haines2015-05-121-13/+19
|\ | | | | Preserving logging contexts
| * Unwrap defer.gatherResults failuresErik Johnston2015-05-121-1/+2
| |
| * Fix up leak. Add warnings.Erik Johnston2015-05-081-12/+17
| |
* | s/backfil/backfill/Erik Johnston2015-05-121-4/+4
| |
* | Typos everywhereErik Johnston2015-05-121-1/+1
| |
* | And another typo.Erik Johnston2015-05-121-3/+3
| |
* | Err, gatherResults doesn't take a dict...Erik Johnston2015-05-121-4/+7
| |
* | Handle the case where the other side is unreachable when backfillingErik Johnston2015-05-121-14/+42
| |
* | Initial hack at wiring together pagination and backfillErik Johnston2015-05-111-2/+106
|/
* That wasn't a deferredErik Johnston2015-05-011-1/+1
|
* Remove inlineCallbacks from non-generatorErik Johnston2015-05-011-2/+0
|
* Remove some run_on_reactorsErik Johnston2015-05-011-2/+0
|
* Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-04-081-4/+36
|\
| * typoErik Johnston2015-04-081-1/+1
| |
| * Don't yield on notifying all listenersErik Johnston2015-04-081-4/+36
| |
* | Sanitize TransactionStoreErik Johnston2015-03-231-1/+1
|/
* Clean out event_forward_extremities table when the server rejoins the roomErik Johnston2015-03-181-0/+2
|
* Remove concept of context.auth_events, instead use context.current_stateErik Johnston2015-03-161-5/+3
|
* Merge branch 'develop' of github.com:matrix-org/synapse into batched_get_pduErik Johnston2015-02-231-1/+1
|\
| * Add missing comma so that it generates a dict and not a setErik Johnston2015-02-201-1/+1
| |
* | Implement and use new batched get missing pduErik Johnston2015-02-231-0/+23
| |
* | Initial stab at implementing a batched get_missing_pdus requestErik Johnston2015-02-191-4/+5
|/
* Change some debug logging to infoErik Johnston2015-02-171-2/+4
|
* resolve_events expect lists, not dictsErik Johnston2015-02-151-1/+1
|
* Fix wrong variable nameErik Johnston2015-02-131-1/+1
|
* pyflakesErik Johnston2015-02-131-1/+1
|
* When we see a difference in current state, actually use state conflict ↵Erik Johnston2015-02-131-0/+34
| | | | resolution algorithm
* Remove more debug loggingErik Johnston2015-02-111-2/+0
|
* Remove debug loggingErik Johnston2015-02-111-10/+0
|
* Don't unfreeze when using FreezeEvent.get_dict, as we are using a ↵Erik Johnston2015-02-111-1/+14
| | | | JSONEncoder that understands FrozenDict
* Explicitly list the RejectedReasons that we can proveErik Johnston2015-02-061-1/+6
|
* Don't query auth if the only difference is events that were rejected due to ↵Erik Johnston2015-02-061-56/+72
| | | | auth.
* Make seen_ids a setErik Johnston2015-02-061-1/+3
|
* Handle the fact the list.remove raises if element doesn't existErik Johnston2015-02-061-4/+10
|
* Pass through list of room hosts from room alias query to federation so that ↵Erik Johnston2015-02-051-7/+13
| | | | it can retry against different room hosts
* Merge branch 'signature_failures' of github.com:matrix-org/synapse into ↵Erik Johnston2015-02-041-1/+3
|\ | | | | | | federation_client_retries
| * Change context.auth_events to what the auth_events would be bases on ↵Erik Johnston2015-02-041-1/+3
| | | | | | | | context.current_state, rather than based on the auth_events from the event.
* | Apply sanity to the transport client interface. Convert 'make_join' and ↵Erik Johnston2015-02-041-2/+2
|/ | | | 'send_join' to accept iterables of destinations
* Rearrange persist_event so that do all the queries that need to be done ↵Erik Johnston2015-02-041-0/+2
| | | | before returning early if we have already persisted that event.
* Neaten the handling of state and auth_chain up a bitErik Johnston2015-02-031-27/+30
|
* Don't completely die if get auth_chain or querying auth_chain requests failErik Johnston2015-02-031-63/+72
|
* Set combinations is | and not +Erik Johnston2015-02-031-2/+2
|
* SpellingErik Johnston2015-02-031-1/+1
|
* Give exception better messageErik Johnston2015-02-031-1/+1
|
* Add FIXME note.Erik Johnston2015-02-031-0/+2
|
* Return rejected events if asked for it over federation.Erik Johnston2015-02-031-0/+1
|
* Try to ensure we don't persist an event we have already persisted. In ↵Erik Johnston2015-02-031-14/+28
| | | | 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.
* Resign events when we return them via /query_auth/Erik Johnston2015-01-301-0/+9
|
* Fix bug where accepting invite over federation didn't work. Add logging.Erik Johnston2015-01-301-8/+49
|
* Only auth_events with event if event in event.auth_eventsErik Johnston2015-01-301-1/+3
|
* Fix bug where we superfluously asked for current state. Change API of ↵Erik Johnston2015-01-301-33/+18
| | | | /query_auth/ so that we don't duplicate events in the response.
* Update the current state of an event if we update auth events.Erik Johnston2015-01-301-1/+3
|
* Fix regression where we no longer correctly handled the case of gaps in our ↵Erik Johnston2015-01-301-2/+6
| | | | event graph
* Initial implementation of auth conflict resolutionErik Johnston2015-01-291-75/+132
|
* Start implementing auth conflict resErik Johnston2015-01-281-35/+176
|
* Replace hs.parse_userid with UserID.from_stringMark Haines2015-01-231-6/+7
|
* Finish renaming "context" to "room_id" in federation codebaseMark Haines2015-01-161-5/+5
|
* PEP8 and pyflakes warningsKegan Dougal2015-01-071-1/+1
|
* SYN-154: Better error messages when joining an unknown room by ID.Kegan Dougal2015-01-071-2/+2
| | | | | | The simple fix doesn't work here because room creation also involves unknown room IDs. The check relies on the presence of m.room.create for rooms being created, whereas bogus room IDs have no state events at all.
* Update copyright noticesMark Haines2015-01-061-1/+1
|
* Supply auth_chain along with current state in '/state/', fetch auth events ↵Mark Haines2014-12-181-23/+32
| | | | from a remote server if we are missing some of them
* Don't yield on sending the event accross federation.Mark Haines2014-12-181-2/+2
|
* Fix where we pulled in event.state_events from hotfixes branchErik Johnston2014-12-161-1/+1
|
* Merge branch 'hotfixes-v0.5.4a' of github.com:matrix-org/synapse into ↵Erik Johnston2014-12-161-2/+6
|\ | | | | | | release-v0.6.0
| * Add FIXMEErik Johnston2014-12-161-0/+1
| |
| * Fix bug where we did not send the full auth chain to people that joined over ↵Erik Johnston2014-12-161-2/+5
| | | | | | | | federation
* | Make error messages slightly more helpfulErik Johnston2014-12-161-5/+5
| |
* | Construct the EventContext in the state handler rather than constructing one ↵Mark Haines2014-12-161-10/+4
| | | | | | | | and then immediately calling state_handler.annotate_context_with_state
* | clean up coding style a bitMark Haines2014-12-161-7/+4
| |
* | Kill off synapse.api.events.*Erik Johnston2014-12-161-11/+11
| |
* | Add fixme to raising of AuthError in federation landErik Johnston2014-12-161-0/+1
| |
* | Fix federation testErik Johnston2014-12-111-1/+1
| |
* | Fix public room joining by making sure replaces_state never points to itself.Erik Johnston2014-12-111-7/+7
| |
* | Fix bug where we clobbered old state group valuesErik Johnston2014-12-101-0/+9
| |
* | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-101-0/+7
|\ \
| * | fix a million stupid bugs and make it actually workMatthew Hodgson2014-12-081-1/+2
| | |
| * | actually reset retry schedule if we can successfuly talk to itMatthew Hodgson2014-12-081-0/+6
| |/
* | Fix AttributeErrorErik Johnston2014-12-101-1/+1
| |
* | Try and figure out how and why signatures are being changed.Erik Johnston2014-12-101-3/+51
| |
* | Fix joining from an inviteErik Johnston2014-12-091-2/+0
| |
* | More bug fixesErik Johnston2014-12-081-16/+23
| |
* | Various typos and bug fixes.Erik Johnston2014-12-081-59/+38
| |
* | Start making more things use EventContext rather than event.*Erik Johnston2014-12-051-8/+11
| |
* | Convert rest and handlers to use new event structureErik Johnston2014-12-041-9/+10
| |
* | Begin converting things to use the new Event structureErik Johnston2014-12-041-7/+2
|/
* Fix bugs when joining a remote room that has dodgy event graphs. This should ↵Erik Johnston2014-11-271-28/+55
| | | | also fix the number of times a HS will trigger a GET /event/
* on_receive_pdu takes more argsErik Johnston2014-11-271-3/+3
|
* Change the way we get missing auth and state eventsErik Johnston2014-11-271-16/+61
|
* Re-sign events when we return them via federation as a temporary hack to ↵Erik Johnston2014-11-271-0/+11
| | | | work around the problem where we reconstruct events differently than when they were signed
* Add a workaround for bug where some initial join events don't reference ↵Erik Johnston2014-11-261-1/+7
| | | | creation events in their auth_events
* Catch exceptions when trying to add an entry to rooms tablesErik Johnston2014-11-261-6/+11
|
* Correctly handle the case where we get an event for an unknown room, which ↵Erik Johnston2014-11-261-28/+44
| | | | turns out we are actually in
* Fix bugs in invite/join dances.Erik Johnston2014-11-251-52/+92
| | | | | We now do more implement more of the auth on the events so that we don't reject valid events.
* We don't always want to Auth get_persisted_pduErik Johnston2014-11-241-7/+8
|
* Fix pep8 codestyle warningsMark Haines2014-11-201-2/+4
|
* Add a few missing yields, Move deferred lists inside PreserveLoggingContext ↵Mark Haines2014-11-201-2/+2
| | | | because they don't interact well with the logging contexts
* These lines aren't doing anythingMark Haines2014-11-171-5/+0
|
* Merge PDUs and Events into one objectMark Haines2014-11-141-43/+22
|
* Fix PDU and event signaturesMark Haines2014-11-141-2/+3
|
* Validate signatures on incoming eventsMark Haines2014-11-141-2/+35
|
* Add a few more comments to the federation handlerErik Johnston2014-11-121-0/+32
|
* Fix bugs with invites/joins across federatiom.Erik Johnston2014-11-121-9/+3
| | | | | Both in terms of auth and not trying to fetch missing PDUs for invites, joins etc.
* Rename annotate_state_groups to annotate_event_with_stateErik Johnston2014-11-111-7/+7
|
* Fix bug where we /always/ created a new state groupErik Johnston2014-11-111-1/+2
|
* PEP8Erik Johnston2014-11-101-1/+4
|
* Add auth to the various server-server APIsErik Johnston2014-11-101-2/+13
|
* Fix backfill to work. Add auth to backfill requestErik Johnston2014-11-101-5/+5
|
* Notify users about invites.Erik Johnston2014-11-101-1/+4
|
* Use current state to get room hosts, rather than querying the databaseErik Johnston2014-11-071-4/+17
|
* Add '/event_auth/' federation apiErik Johnston2014-11-071-0/+5
|
* Implement invite part of invite join danceErik Johnston2014-11-071-0/+37
|
* Return auth chain when handling send_joinErik Johnston2014-11-071-3/+12
|
* Fix joining over federationErik Johnston2014-11-071-0/+1
|
* Update to use replaces_state rather than prev_stateErik Johnston2014-11-061-2/+4
|
* Implement new replace_state and changed prev_stateErik Johnston2014-11-061-3/+1
| | | | | `prev_state` is now a list of previous state ids, similiar to prev_events. `replace_state` now points to what we think was replaced.
* Fix auth checks to all use the given old_event_stateErik Johnston2014-11-051-3/+3
|
* Don't bother lockingErik Johnston2014-11-041-6/+5
|
* On AuthError, raise a FederationErrorErik Johnston2014-11-041-1/+9
|
* Remove unused importsErik Johnston2014-11-041-4/+2
|
* Rename PDU fields to match that of events.Erik Johnston2014-11-031-7/+5
|
* Actually don't store any PDUsErik Johnston2014-10-311-0/+22
|
* Move the impl of backfill to use events.Erik Johnston2014-10-311-1/+26
|
* Convert event ids to be of the form :example.comErik Johnston2014-10-301-2/+5
|
* Make federation return the old current state, so that we can use it to do authErik Johnston2014-10-301-5/+23
|
* Start filling out and using new events tablesErik Johnston2014-10-291-39/+51
|
* It doesn't want a dictErik Johnston2014-10-171-2/+0
|
* Fix bug where people could join private roomsErik Johnston2014-10-171-2/+8
|
* Use state groups to get current state. Make join dance actually work.Erik Johnston2014-10-171-21/+53
|
* Finish implementing the new join dance.Erik Johnston2014-10-171-97/+84
|
* Start implementing the invite/join dance. Continue moving auth to use ↵Erik Johnston2014-10-161-8/+75
| | | | event.state_events
* Begin making auth use event.old_state_eventsErik Johnston2014-10-151-2/+9
|
* SYN-46: An invite received from fedearation didn't wake up the event stream ↵Erik Johnston2014-09-251-1/+9
| | | | for the invited user.
* Correctly handle receiving 'missing' Pdus from federation, rather than just ↵Erik Johnston2014-09-151-7/+5
| | | | discarding them.
* Improve logging in federation handler.Erik Johnston2014-09-151-1/+3
|
* Error code must be an integerErik Johnston2014-09-031-1/+1
|
* Import SynapseErrorErik Johnston2014-09-031-0/+1
|
* Handle timeouts slightly nicer.Erik Johnston2014-09-031-1/+5
|
* Don't do auth for change_membership in federation handler, it doesn't work ↵Erik Johnston2014-09-031-2/+3
| | | | and federation doesn't do auth in general either. Add a hacky timeout when trying to join a remote room.
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* Fix FederationHandler to event.originMark Haines2014-08-281-1/+1
|
* Remove get_state_for_room function from federation handlerMark Haines2014-08-281-15/+11
|
* Fix pyflakes warningsMark Haines2014-08-281-3/+1
|
* Merge backfill_ and backfill in federation handlerMark Haines2014-08-281-18/+5
|
* Merge branch 'develop' into storage_transactionsMark Haines2014-08-271-1/+1
|\ | | | | | | | | | | Conflicts: synapse/handlers/room.py synapse/storage/stream.py
| * Remove store_id from notifier.on_new_room_event calls.Erik Johnston2014-08-271-1/+1
| |
* | add _get_room_member, fix datastore methodsMark Haines2014-08-271-2/+3
| |
* | Fill out prev_events before calling persist_eventMark Haines2014-08-271-59/+11
| |
* | Fold federation/handler into handlers/federationMark Haines2014-08-261-8/+134
|/
* Use state_key rather than target_user_idMark Haines2014-08-261-1/+1
|
* Fix pyflakes errorsMark Haines2014-08-261-1/+1
|
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Kegan Dougal2014-08-261-2/+27
|\ | | | | | | client_server_url_rename
| * Wait for getting a Join in response to an invite/join dance.Erik Johnston2014-08-211-2/+27
| |
* | Removed member list servlet: now using generic state paths.Kegan Dougal2014-08-261-1/+1
|/
* Better handle the edge cases of trying to remote join roomsErik Johnston2014-08-201-0/+78
|
* Print out stacktrace when we failed to persist event.Erik Johnston2014-08-191-1/+1
|
* Add a 'backfill room' buttonErik Johnston2014-08-191-3/+18
|
* add in whitespace after copyright statements to improve legibilityMatthew Hodgson2014-08-131-0/+1
|
* Reference Matrix Home Servermatrix.org2014-08-121-0/+74