summary refs log tree commit diff
path: root/synapse/handlers (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Register a user account for the AS when the AS registers. Add 'sender' ↵Kegan Dougal2015-02-091-1/+7
| | | | column to AS table.
* Add errcodes for appservice registrations.Kegan Dougal2015-02-061-4/+7
|
* Pyflakes: unused variable.Kegan Dougal2015-02-061-1/+1
|
* Grant ASes the ability to delete aliases in their own namespace.Kegan Dougal2015-02-061-5/+23
|
* Grant ASes the ability to create alias in their own namespace.Kegan Dougal2015-02-061-12/+31
| | | | | | Add a new errcode type M_EXCLUSIVE when users try to create aliases inside AS namespaces, and when ASes try to create aliases outside their own namespace.
* Add m.login.application_service registration procedure.Kegan Dougal2015-02-051-0/+20
| | | | | This allows known application services to register any user ID under their own user namespace(s).
* Dependency inject ApplicationServiceApi when creating ↵Kegan Dougal2015-02-052-4/+6
| | | | ApplicationServicesHandler.
* Prevent user IDs in AS namespaces being created/deleted by humans.Kegan Dougal2015-02-051-0/+16
|
* Prevent aliases in AS namespaces being created/deleted by users. Check with ↵Kegan Dougal2015-02-051-9/+33
| | | | ASes when queried for room aliases via federation.
* Merge branch 'develop' into application-servicesKegan Dougal2015-02-054-90/+143
|\
| * Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2015-02-051-5/+12
| |\ | | | | | | | | | federation_client_retries
| | * SYN-202: Log as WARN the 404 'Presence information not visible' errors ↵Erik Johnston2015-02-051-5/+12
| | | | | | | | | | | | instead of as ERROR since they were spamming the logs
| * | Pass through list of room hosts from room alias query to federation so that ↵Erik Johnston2015-02-052-14/+18
| | | | | | | | | | | | 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
| * | | When returning lists of servers from alias lookups, put the current server ↵Erik Johnston2015-02-041-1/+10
| |/ / | | | | | | | | | first in the list
| * | 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.
* | Fix user query checks. HS>AS pushing now works.Kegan Dougal2015-02-051-13/+31
| |
* | Glue AS work to general event notifications. Add more exception handling ↵Kegan Dougal2015-02-051-14/+25
| | | | | | | | when poking ASes.
* | Add unknown room alias check. Call it from directory_handler.get_associationKegan Dougal2015-02-052-43/+61
| |
* | Add unknown user ID check. Use store.get_aliases_for_room(room_id) when ↵Kegan Dougal2015-02-051-5/+19
| | | | | | | | searching for services by alias.
* | Add hs_token column and generate a different token f.e application service.Kegan Dougal2015-02-051-3/+6
| |
* | Impl push_bulk functionKegan Dougal2015-02-051-1/+1
| |
* | Modify API for SimpleHttpClient.get_json and update usages.Kegan Dougal2015-02-042-37/+52
| | | | | | | | | | | | | | | | | | | | Previously, this would only return the HTTP body as JSON, and discard other response information (e.g. the HTTP response code). This has now been changed to throw a CodeMessageException on a non-2xx response, with the response code and body, which can then be parsed as JSON. Affected modules include: - Registration/Login (when using an email for IS auth)
* | Add query_user/alias APIs.Kegan Dougal2015-02-041-10/+16
| |
* | Begin to add unit tests for appservice glue and regex testing.Kegan Dougal2015-02-041-2/+6
| |
* | Add stub ApplicationServiceApi and glue it with the handler.Kegan Dougal2015-02-041-3/+15
| |
* | Add appservice package and move ApplicationService into it.Kegan Dougal2015-02-031-1/+3
| |
* | Implement restricted namespace checks. Begin fleshing out the main hook for ↵Kegan Dougal2015-02-031-0/+19
| | | | | | | | notifying application services.
* | Add namespace constants. Add restrict_to option to limit namespace checks.Kegan Dougal2015-02-031-10/+15
| |
* | Implement regex checks for app services.Kegan Dougal2015-02-031-2/+23
| | | | | | | | | | Expose handler.get_services_for_event which manages the checks for all services.
* | Implement txns for AS (un)registration.Kegan Dougal2015-02-021-1/+2
| |
* | Merge branch 'develop' into application-servicesKegan Dougal2015-02-027-154/+848
|\| | | | | | | | | | | Conflicts: synapse/handlers/__init__.py synapse/storage/__init__.py
| * Resign events when we return them via /query_auth/Erik Johnston2015-01-301-0/+9
| |
| * Return empty list rather than None when there are no emphemeral events for a ↵Mark Haines2015-01-301-1/+1
| | | | | | | | room
| * Fix bug where accepting invite over federation didn't work. Add logging.Erik Johnston2015-01-301-8/+49
| |
| * Merge pull request #43 from matrix-org/rejectionsErik Johnston2015-01-301-119/+310
| |\ | | | | | | Rejections
| | * 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.
| | * Merge branch 'develop' of github.com:matrix-org/synapse into rejectionsErik Johnston2015-01-305-43/+75
| | |\ | | | | | | | | | | | | | | | | | | | | Conflicts: synapse/storage/__init__.py synapse/storage/schema/delta/v12.sql
| | * | 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
| | | |
| * | | Add doc string for __nonzero__ overrides for sync results, raise not ↵Mark Haines2015-01-301-1/+8
| | | | | | | | | | | | | | | | implemented if the client attempts to do a gapless sync
| * | | Check if the user has joined the room between incremental syncsMark Haines2015-01-301-4/+27
| | | |
| * | | Pass client info to the sync_configMark Haines2015-01-301-2/+3
| | | |
| * | | Fix token formattingMark Haines2015-01-301-3/+3
| | | |
| * | | Filter the recent events before applying the limit when doing an initial syncMark Haines2015-01-301-11/+10
| | | |
| * | | Filter the recent events before applying the limit when doing an incremental ↵Mark Haines2015-01-301-15/+38
| | | | | | | | | | | | | | | | sync with a gap
| * | | Update todo for the filtering on syncMark Haines2015-01-291-1/+2
| | | |
| * | | Fix indentMark Haines2015-01-291-1/+1
| | | |
| * | | Move typing notifs to an "emphermal" event list on the room objectMark Haines2015-01-291-5/+7
| | | |
| * | | Fix check for empty room updateMark Haines2015-01-291-1/+1
| | | |
| * | | Fix v2 initial syncMark Haines2015-01-291-1/+2
| | | |
| * | | Use get_room_events_stream to get changes to the rooms if the number of ↵Mark Haines2015-01-291-11/+45
| | | | | | | | | | | | | | | | changes is small
| * | | Remove typing TODOMark Haines2015-01-291-1/+0
| | | |
| * | | Add typing notifications to syncMark Haines2015-01-291-9/+21
| | | |
| * | | Merge branch 'develop' into client_v2_syncMark Haines2015-01-284-34/+51
| |\ \ \ | | | |/ | | |/|
| | * | Merge pull request #36 from matrix-org/device_id_from_access_tokenMark Haines2015-01-281-1/+11
| | |\ \ | | | | | | | | | | Extract the device id and token id from the access token when autheniticating users
| | | * | Extract the id token of the token when authing users, include the token and ↵Mark Haines2015-01-281-1/+11
| | | | | | | | | | | | | | | | | | | | device_id in the internal meta data for the event along with the transaction id when sending events
| | * | | Merge branch 'master' into developDavid Baker2015-01-281-1/+1
| | |\ \ \
| | | * | | Add matrix.org as a trusted ID server because it's now passed through on ↵David Baker2015-01-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | ports 80/443 and the web client defaults to that now. Fixes email validation (including signing up with an email address).
| | * | | | Merge branch 'develop' into pushersDavid Baker2015-01-289-47/+68
| | |\ \ \ \ | | | | |/ / | | | |/| | | | | | | | | | | | | | | | | | | | Conflicts: synapse/handlers/events.py synapse/server.py
| | * | | | Reset badge count to zero when last active time is bumpedDavid Baker2015-01-281-0/+5
| | | | | |
| | * | | | Oops, remove debuggingDavid Baker2015-01-271-1/+0
| | | | | |
| | * | | | or of course we could just return the deferredDavid Baker2015-01-271-2/+1
| | | | | |
| | * | | | Need a defer.inlineCallbacks here as we yield in it: otherwise nothing in ↵David Baker2015-01-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | the cb gets executed.
| | * | | | Unbreak bad presence merge - don't add these blocks together with an and: ↵David Baker2015-01-271-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | they're different things.
| | * | | | Merge branch 'develop' into pushersDavid Baker2015-01-224-12/+14
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: synapse/rest/__init__.py
| | * | | | | Don't make the pushers' event streams cause people to appear onlineDavid Baker2015-01-151-21/+22
| | | | | | |
| * | | | | | Fix FormattingMark Haines2015-01-271-8/+5
| | | | | | |
| * | | | | | Wait for events if the incremental sync is empty and a timeout is givenMark Haines2015-01-271-7/+12
| | | | | | |
| * | | | | | Start implementing incremental initial syncMark Haines2015-01-271-25/+208
| | | | | | |
| * | | | | | Start implementing the non-incremental sync portion of the v2 /sync APIMark Haines2015-01-262-25/+64
| | | | | | |
| * | | | | | Merge branch 'develop' into client_v2_syncMark Haines2015-01-263-9/+24
| |\ \ \ \ \ \ | | | |_|/ / / | | |/| | | |
| * | | | | | Add handler for /sync APIMark Haines2015-01-261-0/+110
| | |_|_|_|/ | |/| | | |
* | | | | | Add basic application_services SQL, and hook up parts of the appservice ↵Kegan Dougal2015-01-281-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | store to read from it.
* | | | | | Log when ASes are registered/unregistered.Kegan Dougal2015-01-271-0/+2
| | | | | |
* | | | | | Use ApplicationService when registering.Kegan Dougal2015-01-271-8/+5
| | | | | |
* | | | | | Add stub methods, TODOs and docstrings for application services.Kegan Dougal2015-01-271-3/+22
| | | | | |
* | | | | | Add appservice handler and store. Glue together rest > handler > store.Kegan Dougal2015-01-272-0/+51
| |/ / / / |/| | | |
* | | | | Pass the current time to serialize event, rather than passing anMark Haines2015-01-263-9/+24
|/ / / / | | | | | | | | | | | | | | | | | | | | HS and getting a clock from it and calling time_msec on the clock. Remove the serialize_event method from the HS since it is no longer needed.
* | | | Replace hs.parse_roomalias with RoomAlias.from_stringMark Haines2015-01-231-1/+2
| | | |
* | | | Replace hs.parse_roomid with RoomID.from_stringMark Haines2015-01-231-2/+0
| | | |
* | | | Replace hs.parse_userid with UserID.from_stringMark Haines2015-01-238-35/+42
| |/ / |/| |
* | | Finish renaming "context" to "room_id" in federation codebaseMark Haines2015-01-162-8/+6
| | |
* | | Remove temporary debug logging that was accidentally committedMark Haines2015-01-161-2/+0
| | |
* | | Don't try to cancel already-expired timers - SYN-230Paul "LeoNerd" Evans2015-01-131-2/+8
|/ /
* | Use float rather than integer divisions to turn msec into sec - so timeouts ↵Paul "LeoNerd" Evans2015-01-121-1/+1
| | | | | | | | under 1000msec will actually work
* | Make typing notification timeouts print a (debug) logging messagePaul "LeoNerd" Evans2015-01-121-1/+7
| |
* | Add raw query param for scrollback.Kegan Dougal2015-01-081-2/+5
| |
* | Return the raw federation event rather than adding extra keys for federation ↵Kegan Dougal2015-01-082-4/+5
| | | | | | | | data.
* | Add missing continuation indent.Erik Johnston2015-01-081-1/+2
| |
* | Add 'raw' query parameter to expose the event graph and signatures to savvy ↵Kegan Dougal2015-01-082-4/+9
| | | | | | | | clients.
* | PEP8 and pyflakes warningsKegan Dougal2015-01-072-2/+4
| |
* | SYN-154: Tweak how the m.room.create check is done.Kegan Dougal2015-01-071-2/+11
| | | | | | | | | | Don't perform the check in auth.is_host_in_room but instead do it in _do_join and also assert that there are no m.room.members in the room before doing so.
* | SYN-154: Better error messages when joining an unknown room by ID.Kegan Dougal2015-01-072-5/+7
|/ | | | | | 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.
* RoomsForUser now has sender instead of user_idErik Johnston2015-01-061-1/+1
|
* Merge branch 'erikj-perf' of github.com:matrix-org/synapse into developErik Johnston2015-01-061-5/+5
|\
| * We don't need the full events for get_rooms_for_user_where_membership_isErik Johnston2015-01-061-5/+5
| |
* | Merge pull request #28 from matrix-org/erikj-perfMark Haines2015-01-061-8/+5
|\| | | | | Database performance improvements.
| * Add RoomMemberStore.get_users_in_room, so that we can get the list of joined ↵Erik Johnston2015-01-061-8/+5
| | | | | | | | users without having to retrieve the full events
* | Update copyright noticesMark Haines2015-01-0613-13/+13
|/
* Rate limit display names and avatar urls per request rather than per event.Kegan Dougal2014-12-191-2/+4
|
* Set a state_key for the topic and room name, otherwise they won't be treated ↵Mark Haines2014-12-191-0/+2
| | | | as room state
* bump_presence_active_time when sending a message eventMark Haines2014-12-191-0/+6
|
* Don't ratelimit room create eventsMark Haines2014-12-192-3/+4
|
* Set display name when joining via aliasMark Haines2014-12-191-0/+5
|
* s/user_id/sender/Mark Haines2014-12-191-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
| |
* | Merge branch 'release-v0.6.0' into developMark Haines2014-12-161-0/+5
|\ \
| * | Enable rate limiting for all eventsErik Johnston2014-12-161-0/+5
| | |
* | | Remove send_message since nothing was calling it. Remove Snapshot because ↵Mark Haines2014-12-161-38/+0
| | | | | | | | | | | | only send_message was using it
* | | Construct the EventContext in the state handler rather than constructing one ↵Mark Haines2014-12-162-19/+6
| | | | | | | | | | | | and then immediately calling state_handler.annotate_context_with_state
* | | clean up coding style a bitMark Haines2014-12-164-12/+8
|/ /
* | Kill off synapse.api.events.*Erik Johnston2014-12-164-30/+25
| |
* | Add fixme to raising of AuthError in federation landErik Johnston2014-12-161-0/+1
| |
* | User.is_mine is no longer a thing. Use hs.is_mine instead.Erik Johnston2014-12-151-1/+1
| |
* | Rename MessageHandler.handle_event. Add a few comments.Erik Johnston2014-12-155-7/+24
| |
* | Get current member state from current_state snapshot. Fix leave test.Erik Johnston2014-12-151-3/+3
| |
* | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-152-20/+112
|\ \ | | | | | | | | | | | | Conflicts: tests/handlers/test_room.py
| * | Still send typing notifications to myself if I'm the only one in the room ↵Paul "LeoNerd" Evans2014-12-151-2/+1
| | | | | | | | | | | | (it's a lonely life...)
| * | Send list of typing user IDs as 'user_ids' list within 'content', so that ↵Paul "LeoNerd" Evans2014-12-121-1/+3
| | | | | | | | | | | | m.typing stream events have a toplevel content, for consistency with others
| * | When users leave rooms mark them as no longer typing in themPaul "LeoNerd" Evans2014-12-111-0/+8
| | |
| * | Add a 'user_left_room' distributor signal analogous to 'user_joined_room'Paul "LeoNerd" Evans2014-12-111-0/+7
| | |
| * | Actually auth-check to ensure people can only send typing notifications for ↵Paul "LeoNerd" Evans2014-12-111-0/+4
| | | | | | | | | | | | rooms they're actually in
| * | Add a sprinkling of logger.debug() into typing notification handlerPaul "LeoNerd" Evans2014-12-111-0/+8
| | |
| * | Initial hack at unit tests of room typing REST APIPaul "LeoNerd" Evans2014-12-111-0/+7
| | |
| * | Avoid cyclic dependency in handler setupPaul "LeoNerd" Evans2014-12-101-4/+10
| | |
| * | Hook up the event stream to typing notificationsPaul "LeoNerd" Evans2014-12-101-2/+22
| | |
| * | Store serial numbers per room for typing event stream purposesPaul "LeoNerd" Evans2014-12-101-13/+28
| | |
| * | First hack at implementing timeouts in typing notification handlerPaul "LeoNerd" Evans2014-12-101-3/+19
| | |
* | | Validate message, topic and name event contentsErik Johnston2014-12-121-1/+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
| | |
* | | .from_string() no longer takes a HSErik Johnston2014-12-101-2/+2
| | |
* | | Remove dead codeErik Johnston2014-12-101-2/+0
| | |
* | | Add some basic event validationErik Johnston2014-12-101-2/+6
| | |
* | | Fix bug where we clobbered old state group valuesErik Johnston2014-12-101-0/+9
| | |
* | | Fix bug when uploading state with empty state_keyErik Johnston2014-12-102-76/+5
| | |
* | | 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
| | |
* | | Make depth increase.Erik Johnston2014-12-101-1/+1
| | |
* | | Try and figure out how and why signatures are being changed.Erik Johnston2014-12-103-9/+53
| | |
* | | PEP8Erik Johnston2014-12-091-1/+1
| | |
* | | Fix joining from an inviteErik Johnston2014-12-093-16/+17
| | |
* | | Remove unused snapshotErik Johnston2014-12-091-2/+0
| | |
* | | Remove unused importErik Johnston2014-12-091-2/+1
| | |
* | | More bug fixesErik Johnston2014-12-082-19/+31
| | |
* | | More bug fixesErik Johnston2014-12-083-10/+13
| | |
* | | More bug fixesErik Johnston2014-12-082-3/+7
| | |
* | | Fix registrationErik Johnston2014-12-081-2/+4
| | |
* | | Various typos and bug fixes.Erik Johnston2014-12-082-62/+43
| | |
* | | Start making more things use EventContext rather than event.*Erik Johnston2014-12-052-99/+84
| | |
* | | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-041-5/+7
|\| |
| * | @log_function on PresenceStream's get_new_events_for_user()Paul "LeoNerd" Evans2014-12-031-1/+3
| | |
| * | Store any incoming presence push in the local cache anyway, even if there's ↵Paul "LeoNerd" Evans2014-12-031-4/+4
| |/ | | | | | | no interested observers (yet *hint*) (SYN-115)
* | Convert rest and handlers to use new event structureErik Johnston2014-12-046-116/+111
| |
* | Begin converting things to use the new Event structureErik Johnston2014-12-043-19/+56
| |
* | WIP for new way of managing events.Erik Johnston2014-12-031-0/+51
| |
* | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-032-1/+10
|\|
| * Extra verbosity on logging of received presence infoPaul "LeoNerd" Evans2014-12-021-0/+5
| |
| * Squash room_ids list to a set() to remove duplicates - with TODO marker as I ↵Paul "LeoNerd" Evans2014-12-021-1/+5
| | | | | | | | have no idea /why/ the dups are happening in the first place
* | Change DomainSpecificString so that it doesn't use a HomeServer objectErik Johnston2014-12-026-41/+44
|/
* 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
* Attempt to fix bug where we 500d an event stream due to trying to cancel a ↵Erik Johnston2014-11-261-3/+9
| | | | timer twice
* 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-253-54/+94
| | | | | 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
|
* Return 404 M_NOT_FOUND when trying to look up a room alias that doesn't existMark Haines2014-11-211-12/+24
|
* SYN-58: Allow passing explicit limit=0 to initialSync to request no messages ↵Paul "LeoNerd" Evans2014-11-201-1/+1
| | | | at all; missing still implies default 10
* Fix pep8 and pyflakes warningsMark Haines2014-11-202-4/+10
|
* Merge branch 'develop' into http_client_refactorDavid Baker2014-11-209-48/+64
|\
| * Fix pep8 codestyle warningsMark Haines2014-11-204-9/+13
| |
| * Add a few missing yields, Move deferred lists inside PreserveLoggingContext ↵Mark Haines2014-11-208-40/+52
| | | | | | | | because they don't interact well with the logging contexts
* | Separate out the matrix http client completely because just about all of its ↵David Baker2014-11-202-10/+16
| | | | | | | | code it now separate from the simple case we need for standard HTTP(S)
* | Oops, I removed this param.David Baker2014-11-201-2/+0
| |
* | Refactor the HTTP clients a little.David Baker2014-11-202-5/+5
|/
* SYN-153: Fix formatting of federation error messageMark Haines2014-11-201-1/+1
|
* Don't add a 'prev' key to m.room.member messagesErik Johnston2014-11-192-4/+0
|
* Initialise UserPresenceCache instances to always contain a 'presence' keyPaul "LeoNerd" Evans2014-11-191-4/+2
|
* SYN-153: Raise 404 if room alias is not foundMark Haines2014-11-191-4/+8
|
* Preserve logging context in a few more places, drop the logging context ↵Mark Haines2014-11-191-3/+5
| | | | after it has been stashed to reduce potential for confusion
* Remove unused variableMark Haines2014-11-181-1/+1
|
* Rename message handler's new snapshot_room to room_initial_sync() as that ↵Paul "LeoNerd" Evans2014-11-181-1/+1
| | | | better suits its purpose
* Merge remote-tracking branch 'origin/develop' into room-initial-syncPaul "LeoNerd" Evans2014-11-182-45/+42
|\
| * SYN-149: Enable auth for events added during room creation since they should ↵Mark Haines2014-11-181-1/+1
| | | | | | | | pass auth checks
| * SYN-149: Send join event immediately after the room create eventMark Haines2014-11-182-26/+26
| |
| * Split out sending the room alias events from creating the alias so that we ↵Mark Haines2014-11-182-19/+16
| | | | | | | | can do them in the right point when creating a room
* | Include room members' presence in room initialSyncPaul "LeoNerd" Evans2014-11-181-1/+22
| |
* | Added ability to .get_state() from the PresenceHandler by returning a ↵Paul "LeoNerd" Evans2014-11-181-2/+15
| | | | | | | | complete m.presence event
* | Don't expect all _user_cachemap entries to definitely contain a ↵Paul "LeoNerd" Evans2014-11-181-3/+3
| | | | | | | | "last_active" key
* | Include 'messages' snapshot in room initialSyncPaul "LeoNerd" Evans2014-11-181-1/+20
| |
* | Merge branch 'develop' into room-initial-syncPaul "LeoNerd" Evans2014-11-176-297/+579
|\| | | | | | | | | Conflicts: synapse/handlers/message.py
| * SYN-148: Add the alias after creating the roomMark Haines2014-11-171-9/+9
| |
| * 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-122-11/+11
| | | | | | | | | | Both in terms of auth and not trying to fetch missing PDUs for invites, joins etc.
| * PEP8ifyErik Johnston2014-11-111-9/+12
| |
| * Only allow people in a room to look up room state.Erik Johnston2014-11-111-34/+4
| |
| * Rename annotate_state_groups to annotate_event_with_stateErik Johnston2014-11-112-8/+8
| |
| * Fix bug where we /always/ created a new state groupErik Johnston2014-11-111-1/+2
| |
| * Add an EventValidator. Fix bugs in auth ++ storageErik Johnston2014-11-101-4/+7
| |
| * 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-072-7/+32
| |
| * Add '/event_auth/' federation apiErik Johnston2014-11-071-0/+5
| |
| * Implement invite part of invite join danceErik Johnston2014-11-073-21/+61
| |
| * Return auth chain when handling send_joinErik Johnston2014-11-071-3/+12
| |
| * Fix joining over federationErik Johnston2014-11-072-53/+2
| |
| * Start implementing auth chainsErik Johnston2014-11-071-2/+57
| |
| * Amalgamate all power levels.Erik Johnston2014-11-061-36/+16
| | | | | | | | | | Remove concept of reqired power levels, something similiar can be done using the new power level event.
| * Update to use replaces_state rather than prev_stateErik Johnston2014-11-061-2/+4
| |
| * Implement new replace_state and changed prev_stateErik Johnston2014-11-065-32/+10
| | | | | | | | | | `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-052-8/+17
| |
| * Fix room handler testsErik Johnston2014-11-041-1/+0
| |
| * 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
| |
| * Sign events we create.Erik Johnston2014-11-031-0/+9
| |
| * Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2014-11-031-2/+1
| |\ | | | | | | | | | federation_authorization