Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | kick the user_directory index when new users register | Matthew Hodgson | 2017-11-29 | 1 | -0/+8 |
| | |||||
* | untested WIP but might actually work | Matthew Hodgson | 2017-11-29 | 2 | -4/+56 |
| | |||||
* | Add user_directory_include_pattern config param to expand search results to ↵ | Matthew Hodgson | 2017-11-29 | 1 | -2/+2 |
| | | | | | | | | | | additional users Initial commit; this doesn't work yet - the LIKE filtering seems too aggressive. It also needs _do_initial_spam to be aware of prepopulating the whole user_directory_search table with all users... ...and it needs a handle_user_signup() or something to be added so that new signups get incrementally added to the table too. Committing it here as a WIP | ||||
* | Merge pull request #2686 from matrix-org/luke/as-flair | Luke Barnard | 2017-11-17 | 1 | -0/+11 |
|\ | | | | | Add automagical AS Publicised Group(s) | ||||
| * | Make sure we check AS groups for lookup on bulk | Luke Barnard | 2017-11-16 | 1 | -0/+5 |
| | | |||||
| * | Add automagical AS Publicised Group(s) | Luke Barnard | 2017-11-16 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | via registration file "users" namespace: ```YAML ... namespaces: users: - exclusive: true regex: '.*luke.*' group_id: '+all_the_lukes:hsdomain' ... ``` This is part of giving App Services their own groups for matching users. With this, ghost users will be given the appeareance that they are in a group and that they have publicised the fact, but _only_ from the perspective of the `get_publicised_groups_for_user` API. | ||||
* | | typo | Matthew Hodgson | 2017-11-17 | 1 | -1/+1 |
| | | |||||
* | | Fix auth handler #2678 | Jurek | 2017-11-16 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #2675 from matrix-org/rav/remove_broken_logcontext_funcs | Richard van der Hoff | 2017-11-15 | 2 | -4/+4 |
|\ | | | | | Remove preserve_context_over_{fn, deferred} | ||||
| * | Remove preserve_context_over_{fn, deferred} | Richard van der Hoff | 2017-11-14 | 2 | -4/+4 |
| | | | | | | | | | | Both of these functions ae known to leak logcontexts. Replace the remaining calls to them and kill them off. | ||||
* | | Reshuffle room list request code | Richard van der Hoff | 2017-11-14 | 1 | -27/+24 |
| | | | | | | | | | | | | I'm not entirely sure if this will actually help anything, but it simplifies the code and might give further clues about why room list search requests are blowing out the get_current_state_ids caches. | ||||
* | | Add a load of logging to the room_list handler | Richard van der Hoff | 2017-11-14 | 1 | -0/+13 |
|/ | | | | So we can see what it gets up to. | ||||
* | Revert "Allow upper-case characters in mxids" | Richard van der Hoff | 2017-11-09 | 1 | -3/+3 |
| | | | | This reverts commit b70b64690330c25cbd04c1b2cacf8276b566efc8. | ||||
* | Allow upper-case characters in mxids | Richard van der Hoff | 2017-11-09 | 1 | -3/+3 |
| | | | | Because we're never going to be able to fix this :'( | ||||
* | Have an explicit API to update room config | Erik Johnston | 2017-11-08 | 1 | -0/+1 |
| | |||||
* | Revert "Modify group room association API to allow modification of is_public" | Erik Johnston | 2017-11-08 | 1 | -2/+2 |
| | |||||
* | Merge pull request #2631 from xyzz/fix_appservice_event_backlog | Erik Johnston | 2017-11-08 | 1 | -5/+1 |
|\ | | | | | Fix appservices being backlogged and not receiving new events due to a bug in notify_interested_services | ||||
| * | Remove useless assignment in notify_interested_services | Ilya Zhuravlev | 2017-11-07 | 1 | -1/+0 |
| | | |||||
| * | Fix appservices being backlogged and not receiving new events due to a bug ↵ | Ilya Zhuravlev | 2017-11-02 | 1 | -4/+1 |
| | | | | | | | | in notify_interested_services | ||||
* | | Merge pull request #2649 from matrix-org/rav/fix_delta_on_state_res | Richard van der Hoff | 2017-11-08 | 1 | -20/+46 |
|\ \ | | | | | | | Fix bug in state group storage | ||||
| * | | s/items/iteritems/ | Richard van der Hoff | 2017-11-08 | 1 | -2/+2 |
| | | | |||||
| * | | Update deltas when doing auth resolution | Richard van der Hoff | 2017-11-07 | 1 | -3/+7 |
| | | | | | | | | | | | | | | | Fixes a bug where the persisted state groups were different to those actually being used after auth resolution. | ||||
| * | | factor out _update_context_for_auth_events | Richard van der Hoff | 2017-11-07 | 1 | -20/+42 |
| | | | | | | | | | | | | This is duplicated, so let's factor it out before fixing it | ||||
* | | | Merge pull request #2643 from matrix-org/matthew/user_dir_typos | Matthew Hodgson | 2017-11-07 | 1 | -2/+2 |
|\ \ \ | |/ / |/| | | Fix various embarrassing typos around user_directory and add some doc. | ||||
| * | | s/intial/initial/ | Matthew Hodgson | 2017-11-04 | 1 | -2/+2 |
| |/ | |||||
* | | Merge pull request #2636 from farialima/me-master | Erik Johnston | 2017-11-07 | 1 | -13/+8 |
|\ \ | |/ |/| | Fix for #2635: correctly update rooms avatar/display name when modified by admin | ||||
| * | removed unused import flagged by flake8a | Francois Granade | 2017-11-03 | 1 | -1/+0 |
| | | |||||
| * | Fix for issue 2635: correctly update rooms avatar/display name when modified ↵ | Francois Granade | 2017-11-03 | 1 | -12/+8 |
| | | | | | | | | by admin | ||||
* | | Factor _AccountHandler proxy out to ModuleApi | Richard van der Hoff | 2017-11-02 | 1 | -69/+3 |
| | | | | | | | | | | We're going to need to use this from places that aren't password auth, so let's move it to a proper class. | ||||
* | | Merge pull request #2624 from matrix-org/rav/password_provider_notify_logout | David Baker | 2017-11-02 | 1 | -2/+24 |
|\ \ | | | | | | | Notify auth providers on logout | ||||
| * | | Notify auth providers on logout | Richard van der Hoff | 2017-11-01 | 1 | -2/+24 |
| | | | | | | | | | | | | Provide a hook by which auth providers can be notified of logouts. | ||||
* | | | Merge pull request #2623 from matrix-org/rav/callbacks_for_auth_providers | David Baker | 2017-11-02 | 1 | -6/+11 |
|\ \ \ | | | | | | | | | Allow password_auth_providers to return a callback | ||||
| * | | | Fix user-interactive password auth | Richard van der Hoff | 2017-11-01 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | this got broken in the previous commit | ||||
| * | | | Allow password_auth_providers to return a callback | Richard van der Hoff | 2017-11-01 | 1 | -5/+8 |
| |/ / | | | | | | | | | | ... so that they have a way to record access tokens. | ||||
* | | | Merge pull request #2622 from matrix-org/rav/db_access_for_auth_providers | David Baker | 2017-11-02 | 1 | -0/+16 |
|\ \ \ | |/ / |/| | | Let auth providers get to the database | ||||
| * | | Let auth providers get to the database | Richard van der Hoff | 2017-10-31 | 1 | -0/+16 |
| | | | | | | | | | | | | Somewhat open to abuse, but also somewhat unavoidable :/ | ||||
* | | | Merge pull request #2620 from matrix-org/rav/auth_non_password | Richard van der Hoff | 2017-11-01 | 1 | -22/+96 |
|\ \ \ | | | | | | | | | Let password auth providers handle arbitrary login types | ||||
| * | | | Let password auth providers handle arbitrary login types | Richard van der Hoff | 2017-11-01 | 1 | -22/+96 |
| |/ / | | | | | | | | | | | | | Provide a hook where password auth providers can say they know about other login types, and get passed the relevant parameters | ||||
* | | | Merge remote-tracking branch 'origin/develop' into ↵ | David Baker | 2017-11-01 | 3 | -13/+8 |
|\ \ \ | | | | | | | | | | | | | rav/refactor_accesstoken_delete | ||||
| * \ \ | Merge pull request #2615 from matrix-org/rav/break_auth_device_dep | David Baker | 2017-11-01 | 1 | -9/+6 |
| |\ \ \ | | | | | | | | | | | Break dependency of auth_handler on device_handler | ||||
| | * | | | Break dependency of auth_handler on device_handler | Richard van der Hoff | 2017-11-01 | 1 | -9/+6 |
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm going to need to make the device_handler depend on the auth_handler, so I need to break this dependency to avoid a cycle. It turns out that the auth_handler was only using the device_handler in one place which was an edge case which we can more elegantly handle by throwing an error rather than fixing it up. | ||||
| * | | | Merge pull request #2613 from matrix-org/rav/kill_refresh_tokens | David Baker | 2017-11-01 | 1 | -2/+0 |
| |\ \ \ | | | | | | | | | | | Remove the last vestiges of refresh_tokens | ||||
| | * | | | Remove the last vestiges of refresh_tokens | Richard van der Hoff | 2017-10-31 | 1 | -2/+0 |
| | |/ / | |||||
| * / / | Modify group room association API to allow modification of is_public | Luke Barnard | 2017-10-31 | 1 | -2/+2 |
| |/ / | | | | | | | | | | also includes renamings to make things more consistent. | ||||
* / / | Move access token deletion into auth handler | Richard van der Hoff | 2017-11-01 | 3 | -5/+52 |
|/ / | | | | | | | | | | | | | Also move duplicated deactivation code into the auth handler. I want to add some hooks when we deactivate an access token, so let's bring it all in here so that there's somewhere to put it. | ||||
* | | Refactor some logic from LoginRestServlet into AuthHandler | Richard van der Hoff | 2017-10-31 | 1 | -28/+52 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm going to need some more flexibility in handling login types in password auth providers, so as a first step, move some stuff from LoginRestServlet into AuthHandler. In particular, we pass everything other than SAML, JWT and token logins down to the AuthHandler, which now has responsibility for checking the login type and fishing the password out of the login dictionary, as well as qualifying the user_id if need be. Ideally SAML, JWT and token would go that way too, but there's no real need for it right now and I'm trying to minimise impact. This commit *should* be non-functional. | ||||
* | | Merge pull request #2589 from matrix-org/rav/as_deactivate_account | Richard van der Hoff | 2017-10-27 | 1 | -1/+1 |
|\ \ | | | | | | | Allow ASes to deactivate their own users | ||||
| * | | Allow ASes to deactivate their own users | Richard van der Hoff | 2017-10-27 | 1 | -1/+1 |
| |/ | |||||
* | | Update room_list.py | Erik Johnston | 2017-10-26 | 1 | -1/+1 |
| | | |||||
* | | Do logcontexts outside ResponseCache | Erik Johnston | 2017-10-25 | 2 | -5/+8 |
| | | |||||
* | | Add logging and fix log contexts for publicRooms | Erik Johnston | 2017-10-25 | 1 | -0/+2 |
|/ | |||||
* | replace 'except:' with 'except Exception:' | Richard van der Hoff | 2017-10-23 | 8 | -17/+17 |
| | | | | what could possibly go wrong | ||||
* | Merge pull request #2561 from matrix-org/rav/id_checking | Richard van der Hoff | 2017-10-23 | 1 | -9/+6 |
|\ | | | | | Updates to ID checking | ||||
| * | Allow = in mxids and groupids | Richard van der Hoff | 2017-10-20 | 1 | -3/+2 |
| | | | | | | | | ... because the spec says we should. | ||||
| * | Disallow capital letters in userids | Richard van der Hoff | 2017-10-20 | 1 | -6/+4 |
| | | | | | | | | | | Factor out a common function for checking user ids and group ids, which forbids capitals. | ||||
* | | Remove pointless create() method | Richard van der Hoff | 2017-10-20 | 2 | -3/+3 |
|/ | | | | | It just calls the constructor, so we may as well kill it rather than having random codepaths. | ||||
* | _create_rererouter for get_invited_users_in_group | Luke Barnard | 2017-10-16 | 1 | -17/+2 |
| | |||||
* | Implement GET /groups/$groupId/invited_users | Luke Barnard | 2017-10-16 | 1 | -0/+17 |
| | |||||
* | Log a warning when no profile for invited member | Luke Barnard | 2017-10-16 | 1 | -2/+5 |
| | | | | And return empty profile | ||||
* | Merge pull request #2531 from matrix-org/dbkr/spamcheck_error_messages | David Baker | 2017-10-12 | 1 | -2/+6 |
|\ | | | | | Allow error strings from spam checker | ||||
| * | fix isinstance | David Baker | 2017-10-11 | 1 | -1/+1 |
| | | |||||
| * | Allow error strings from spam checker | David Baker | 2017-10-11 | 1 | -2/+6 |
| | | |||||
* | | Fix fetching remote summaries | Erik Johnston | 2017-10-11 | 1 | -2/+2 |
| | | |||||
* | | Merge pull request #2530 from matrix-org/rav/fix_receipt_logcontext | Richard van der Hoff | 2017-10-11 | 1 | -0/+4 |
|\ \ | | | | | | | fix a logcontext leak in read receipt handling | ||||
| * | | fix a logcontext leak in read receipt handling | Richard van der Hoff | 2017-10-11 | 1 | -0/+4 |
| | | | |||||
* | | | Fix attestations to check correct server name | Erik Johnston | 2017-10-11 | 1 | -10/+20 |
| |/ |/| | |||||
* | | Merge pull request #2466 from matrix-org/erikj/groups_merged | Erik Johnston | 2017-10-11 | 8 | -17/+584 |
|\ \ | | | | | | | Initial Group Implementation | ||||
| * \ | Merge branch 'develop' into erikj/groups_merged | David Baker | 2017-10-02 | 4 | -8/+121 |
| |\ \ | |||||
| * | | | Add remove room API | Erik Johnston | 2017-09-26 | 1 | -0/+1 |
| | | | | |||||
| * | | | Add is_publicised to group summary | Erik Johnston | 2017-09-26 | 1 | -25/+31 |
| | | | | |||||
| * | | | Ensure that creator of group sees group down /sync | Erik Johnston | 2017-09-19 | 2 | -4/+31 |
| | | | | |||||
| * | | | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/groups_merged | Erik Johnston | 2017-09-19 | 3 | -33/+163 |
| |\ \ \ | |||||
| * | | | | Add user profiles to summary from group server | Erik Johnston | 2017-08-25 | 1 | -0/+23 |
| | | | | | |||||
| * | | | | Fix typos and reinherit | Erik Johnston | 2017-08-25 | 1 | -12/+6 |
| | | | | | |||||
| * | | | | Split out profile handler to fix tests | Erik Johnston | 2017-08-25 | 6 | -13/+16 |
| | | | | | |||||
| * | | | | Add remote profile cache | Erik Johnston | 2017-08-25 | 2 | -5/+93 |
| | | | | | |||||
| * | | | | Fixup | Erik Johnston | 2017-08-11 | 1 | -9/+13 |
| | | | | | |||||
| * | | | | Add bulk group publicised lookup API | Erik Johnston | 2017-08-09 | 1 | -0/+42 |
| | | | | | |||||
| * | | | | Store whether the user wants to publicise their membership of a group | Erik Johnston | 2017-08-08 | 1 | -0/+4 |
| | | | | | |||||
| * | | | | Remove stale TODO comments | Erik Johnston | 2017-08-04 | 1 | -10/+0 |
| | | | | | |||||
| * | | | | Correctly add joins to correct segment | Erik Johnston | 2017-07-24 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | Merge pull request #2378 from matrix-org/erikj/group_sync_support | Erik Johnston | 2017-07-21 | 2 | -5/+80 |
| |\ \ \ \ | | | | | | | | | | | | | Add groups to sync stream | ||||
| | * | | | | Add notifier | Erik Johnston | 2017-07-20 | 1 | -0/+1 |
| | | | | | | |||||
| | * | | | | Fix replication. And notify | Erik Johnston | 2017-07-20 | 1 | -4/+16 |
| | | | | | | |||||
| | * | | | | Remember to cast to bool | Erik Johnston | 2017-07-20 | 1 | -1/+1 |
| | | | | | | |||||
| | * | | | | Add groups to sync stream | Erik Johnston | 2017-07-20 | 1 | -1/+63 |
| | | | | | | |||||
| * | | | | | Add update group profile API | Erik Johnston | 2017-07-20 | 1 | -0/+1 |
| |/ / / / | |||||
| * | | | | Comments | Erik Johnston | 2017-07-18 | 1 | -10/+19 |
| | | | | | |||||
| * | | | | Fix typos | Erik Johnston | 2017-07-18 | 1 | -2/+3 |
| | | | | | |||||
| * | | | | Update federation client pokes | Erik Johnston | 2017-07-18 | 1 | -13/+22 |
| | | | | | |||||
| * | | | | Add client apis | Erik Johnston | 2017-07-18 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | Comments | Erik Johnston | 2017-07-18 | 1 | -0/+3 |
| | | | | | |||||
| * | | | | Use transport client directly | Erik Johnston | 2017-07-18 | 1 | -18/+25 |
| | | | | | |||||
| * | | | | Add local group server support | Erik Johnston | 2017-07-17 | 1 | -0/+278 |
| | | | | | |||||
| * | | | | Merge pull request #2352 from matrix-org/erikj/group_server_split | Erik Johnston | 2017-07-12 | 1 | -8/+10 |
| |\ \ \ \ | | | | | | | | | | | | | Initial Group Server | ||||
| | * | | | | Initial group server implementation | Erik Johnston | 2017-07-10 | 1 | -8/+10 |
| | | | | | | |||||
* | | | | | | Merge pull request #2483 from jeremycline/unfreeze-ujson-dump | Erik Johnston | 2017-10-11 | 1 | -1/+2 |
|\ \ \ \ \ \ | | | | | | | | | | | | | | | Unfreeze event before serializing with ujson | ||||
| * | | | | | | Unfreeze event before serializing with ujson | Jeremy Cline | 2017-09-30 | 1 | -1/+2 |
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In newer versions of https://github.com/esnme/ultrajson, ujson does not serialize frozendicts (introduced in esnme/ultrajson@53f85b1). Although the PyPI version is still 1.35, Fedora ships with a build from commit esnme/ultrajson@2f1d487. This causes the serialization to fail if the distribution-provided package is used. This runs the event through the unfreeze utility before serializing it. Thanks to @ignatenkobrain for tracking down the root cause. fixes #2351 Signed-off-by: Jeremy Cline <jeremy@jcline.org> | ||||
* | | | | | | Merge pull request #2490 from matrix-org/erikj/drop_left_room_events | Erik Johnston | 2017-10-10 | 1 | -0/+22 |
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | Ignore incoming events for rooms that we have left | ||||
| * | | | | | Update comments | Erik Johnston | 2017-10-03 | 1 | -1/+1 |
| | | | | | | |||||
| * | | | | | Remove spurious line feed | Erik Johnston | 2017-10-03 | 1 | -1/+0 |
| | | | | | | |||||
| * | | | | | Ignore incoming events for rooms that we have left | Erik Johnston | 2017-10-03 | 1 | -0/+23 |
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When synapse receives an event for a room its not in over federation, it double checks with the remote server to see if it is in fact in the room. This is done so that if the server has forgotten about the room (usually as a result of the database being dropped) it can recover from it. However, in the presence of state resets in large rooms, this can cause a lot of work for servers that have legitimately left. As a hacky solution that supports both cases we drop incoming events for rooms that we have explicitly left. This means that we no longer support the case of servers having forgotten that they've rejoined a room, but that is sufficiently rare that we're not going to support it for now. | ||||
* | | | | | Fix up deferred handling in federation.py | Richard van der Hoff | 2017-10-06 | 1 | -24/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid preserve_context_over_deferred, which is broken * set consumeErrors=True on defer.gatherResults, to avoid spurious "unhandled failure" erros | ||||
* | | | | | Spam checking: add the invitee to user_may_invite | David Baker | 2017-10-05 | 2 | -6/+8 |
| | | | | | |||||
* | | | | | spam check room publishing | David Baker | 2017-10-04 | 1 | -0/+8 |
| | | | | | |||||
* | | | | | un-double indent | David Baker | 2017-10-04 | 1 | -1/+1 |
| | | | | | |||||
* | | | | | Add room creation checks to spam checker | David Baker | 2017-10-04 | 2 | -0/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Lets the spam checker deny attempts to create rooms and add aliases to them. | ||||
* | | | | | pass room id too | David Baker | 2017-10-03 | 2 | -2/+4 |
| | | | | | |||||
* | | | | | Federation was passing strings anyway | David Baker | 2017-10-03 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | so pass string everywhere | ||||
* | | | | | this shouldn't be debug | David Baker | 2017-10-03 | 1 | -2/+2 |
| | | | | | |||||
* | | | | | better logging | David Baker | 2017-10-03 | 1 | -4/+9 |
| | | | | | |||||
* | | | | | Skip spam check for admin users | David Baker | 2017-10-03 | 1 | -8/+8 |
| | | | | | |||||
* | | | | | Fix param name & lint | David Baker | 2017-10-03 | 1 | -2/+4 |
| | | | | | |||||
* | | | | | Allow spam checker to reject invites too | David Baker | 2017-10-03 | 2 | -6/+18 |
|/ / / / | |||||
* | | | | Fix /joined_members to work with AS users | Erik Johnston | 2017-09-28 | 1 | -11/+25 |
| | | | | |||||
* | | | | Fix bug where /joined_members didn't check user was in room | Erik Johnston | 2017-09-27 | 1 | -0/+31 |
| | | | | |||||
* | | | | Make the spam checker a module | David Baker | 2017-09-26 | 1 | -2/+3 |
| | | | | |||||
* | | | | Refactor to speed up incremental syncs | Erik Johnston | 2017-09-25 | 1 | -5/+18 |
| | | | | |||||
* | | | | Fix device list when rejoining room (#2461) | Erik Johnston | 2017-09-22 | 1 | -2/+14 |
| | | | | |||||
* | | | | Add a config option to block all room invites (#2457) | Richard van der Hoff | 2017-09-19 | 2 | -0/+25 |
| | | | | | | | | | | | | | | | | | | | | - allows sysadmins the ability to lock down their servers so that people can't send their users room invites. | ||||
* | | | | add some comments to on_exchange_third_party_invite_request | Richard van der Hoff | 2017-09-19 | 1 | -0/+11 |
| | | | | |||||
* | | | | PoC for filtering spammy events (#2456) | Richard van der Hoff | 2017-09-19 | 1 | -1/+7 |
| |_|/ |/| | | | | | Demonstration of how you might add some hooks to filter out spammy events. | ||||
* | | | Fix overzealous kicking of guest users (#2453) | Richard van der Hoff | 2017-09-19 | 1 | -1/+1 |
| | | | | | | | | | We should only kick guest users if the guest access event is authorised. | ||||
* | | | Don't filter out current state events from timeline | Erik Johnston | 2017-09-18 | 1 | -0/+7 |
| | | | |||||
* | | | Correctly handle leaving room in /key/changes | Erik Johnston | 2017-09-18 | 1 | -13/+12 |
| | | | |||||
* | | | Fix typo | Erik Johnston | 2017-09-15 | 1 | -1/+1 |
| | | | |||||
* | | | Actually hook leave notifs up | Erik Johnston | 2017-09-14 | 1 | -2/+3 |
| | | | |||||
* | | | Handle joining/leaving rooms in /keys/changes | Erik Johnston | 2017-09-13 | 1 | -1/+38 |
| | | | |||||
* | | | Get left rooms | Erik Johnston | 2017-09-13 | 1 | -3/+32 |
| | | | |||||
* | | | In sync handle device lists for newly joined/left rooms | Erik Johnston | 2017-09-12 | 1 | -2/+10 |
| | | | |||||
* | | | Add left section to /keys/changes | Erik Johnston | 2017-09-08 | 2 | -7/+17 |
| | | | |||||
* | | | Send down device list change notif when member leaves/rejoins room | Erik Johnston | 2017-09-07 | 2 | -13/+53 |
| | | | |||||
* | | | Use less DB for device list handling in sync | Erik Johnston | 2017-07-12 | 1 | -8/+7 |
| |/ |/| | |||||
* | | Don't compute push actions for backfilled events | Erik Johnston | 2017-07-11 | 1 | -1/+1 |
|/ | |||||
* | Fix bug where pusherpool didn't start and broke some rooms | Erik Johnston | 2017-07-06 | 2 | -2/+5 |
| | | | | | | | | Since we didn't instansiate the PusherPool at start time it could fail at run time, which it did for some users. This may or may not fix things for those users, but it should happen at start time and stop the server from starting. | ||||
* | Improve the error handling for bad invites received over federation | Mark Haines | 2017-06-30 | 1 | -2/+17 |
| | |||||
* | Use an ExpiringCache for storing registration sessions | Erik Johnston | 2017-06-29 | 1 | -11/+10 |
| | | | | | This is because pruning them was a significant performance drain on matrix.org | ||||
* | Merge pull request #2307 from matrix-org/erikj/user_ip_batch | Erik Johnston | 2017-06-27 | 1 | -2/+2 |
|\ | | | | | Batch upsert user ips | ||||
| * | Fix up client ips to read from pending data | Erik Johnston | 2017-06-27 | 1 | -2/+2 |
| | | |||||
* | | Remove unused variables | Erik Johnston | 2017-06-26 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2017-06-26 | 4 | -13/+52 |
|\| | | | | | | | erikj/ensure_round_trip | ||||
| * | Make some more params configurable | Erik Johnston | 2017-06-22 | 1 | -5/+8 |
| | | |||||
| * | Typo. ARGH. | Erik Johnston | 2017-06-22 | 1 | -1/+1 |
| | | |||||
| * | Fix thinko in unhandled user spam | Erik Johnston | 2017-06-22 | 1 | -2/+2 |
| | | |||||
| * | Don't work out users who share room with appservice users | Erik Johnston | 2017-06-21 | 1 | -2/+11 |
| | | |||||
| * | Handle all cases of sending membership events | Erik Johnston | 2017-06-19 | 1 | -0/+5 |
| | | |||||
| * | Change to create new room and join other users | Erik Johnston | 2017-06-19 | 1 | -4/+17 |
| | | |||||
| * | Add shutdown room API | Erik Johnston | 2017-06-19 | 2 | -0/+9 |
| | | |||||
* | | Reject local events that don't round trip the DB | Erik Johnston | 2017-06-19 | 1 | -0/+9 |
|/ | |||||
* | Initial worker impl | Erik Johnston | 2017-06-16 | 1 | -6/+13 |
| | |||||
* | Include users who share room with requester in user directory | Erik Johnston | 2017-06-15 | 1 | -2/+2 |
| | |||||
* | Implement updating users who share rooms on the fly | Erik Johnston | 2017-06-15 | 1 | -23/+125 |
| | |||||
* | Implement initial population of users who share rooms table | Erik Johnston | 2017-06-15 | 1 | -2/+76 |
| | |||||
* | Fix user directory insertion due to missing room_id | Erik Johnston | 2017-06-13 | 1 | -3/+7 |
| | |||||
* | Don't assume existance of events when updating user directory | Erik Johnston | 2017-06-13 | 1 | -3/+6 |
| | |||||
* | Merge pull request #2266 from matrix-org/erikj/host_in_room | Erik Johnston | 2017-06-12 | 1 | -3/+3 |
|\ | | | | | Change is_host_joined to use current_state table | ||||
| * | Change is_host_joined to use current_state table | Erik Johnston | 2017-06-09 | 1 | -3/+3 |
| | | | | | | | | | | | | This bypasses a bug where using the state groups to figure out if a host is in a room sometimes errors if the servers isn't in the room. (For example when the server rejected an invite to a remote room) | ||||
* | | Comment | Erik Johnston | 2017-06-09 | 1 | -0/+2 |
| | | |||||
* | | Mark remote invite rejections as outliers | Erik Johnston | 2017-06-09 | 1 | -0/+1 |
|/ | |||||
* | Merge pull request #2258 from matrix-org/erikj/user_dir | Erik Johnston | 2017-06-07 | 1 | -0/+3 |
|\ | | | | | Don't start user_directory handling on workers | ||||
| * | Don't start user_directory handling on workers | Erik Johnston | 2017-06-07 | 1 | -0/+3 |
| | | |||||
* | | Merge pull request #2248 from matrix-org/erikj/state_fixup | Erik Johnston | 2017-06-07 | 1 | -7/+5 |
|\ \ | |/ |/| | Faster cache for get_joined_hosts | ||||
| * | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/state_fixup | Erik Johnston | 2017-06-07 | 1 | -0/+429 |
| |\ | |||||
| * | | Fix typing tests | Erik Johnston | 2017-05-26 | 1 | -7/+5 |
| | | | |||||
* | | | Add some logging to user directory | Erik Johnston | 2017-06-07 | 1 | -0/+7 |
| |/ |/| | |||||
* | | Handle profile updates in user directory | Erik Johnston | 2017-06-01 | 1 | -0/+25 |
| | | |||||
* | | Split the table in two | Erik Johnston | 2017-06-01 | 1 | -27/+50 |
| | | |||||
* | | Comments | Erik Johnston | 2017-06-01 | 1 | -3/+3 |
| | | |||||
* | | Check if host is still in room | Erik Johnston | 2017-06-01 | 1 | -0/+11 |
| | | |||||
* | | Fix removing users | Erik Johnston | 2017-06-01 | 1 | -0/+5 |
| | | |||||
* | | Bug fixes and logging | Erik Johnston | 2017-06-01 | 1 | -1/+21 |
| | | | | | | | | | | - Check if room is public when a user joins before adding to user dir - Fix typo of field name "content.join_rules" -> "content.join_rule" | ||||
* | | Comment briefly on how we keep user_directory up to date | Erik Johnston | 2017-05-31 | 1 | -0/+10 |
| | | |||||
* | | Lifts things into separate function | Erik Johnston | 2017-05-31 | 1 | -56/+54 |
| | | |||||
* | | Typos | Erik Johnston | 2017-05-31 | 1 | -8/+8 |
| | | |||||
* | | Fix tests | Erik Johnston | 2017-05-31 | 1 | -2/+2 |
| | | |||||
* | | Pull max id from correct table | Erik Johnston | 2017-05-31 | 1 | -4/+2 |
| | | |||||
* | | Handle the server leaving a public room | Erik Johnston | 2017-05-31 | 1 | -3/+20 |
| | | |||||
* | | Add comments | Erik Johnston | 2017-05-31 | 1 | -41/+120 |
| | | |||||
* | | Add search | Erik Johnston | 2017-05-31 | 1 | -0/+3 |
| | | |||||
* | | Update room column when room becomes unpublic | Erik Johnston | 2017-05-31 | 1 | -2/+21 |
| | | |||||
* | | Add call later | Erik Johnston | 2017-05-31 | 1 | -0/+2 |
| | | |||||
* | | Start later | Erik Johnston | 2017-05-31 | 1 | -1/+4 |
| | | |||||
* | | Don't go round in circles | Erik Johnston | 2017-05-31 | 1 | -4/+2 |
| | | |||||
* | | Add user_directory to database | Erik Johnston | 2017-05-31 | 1 | -0/+218 |
|/ | |||||
* | Merge pull request #2247 from matrix-org/erikj/auth_event | Erik Johnston | 2017-05-24 | 1 | -6/+14 |
|\ | | | | | Only store event_auth for state events | ||||
| * | Only store event_auth for state events | Erik Johnston | 2017-05-24 | 1 | -6/+14 |
| | | |||||
* | | Add count of one time keys to sync stream | Erik Johnston | 2017-05-19 | 1 | -0/+11 |
|/ | |||||
* | Store ActionGenerator in HomeServer | Erik Johnston | 2017-05-19 | 2 | -5/+3 |
| | |||||
* | Faster push rule calculation via push specific cache | Erik Johnston | 2017-05-17 | 1 | -2/+3 |
| | | | | | We add a push rule specific cache that ensures that we can reuse calculated push rules appropriately when a user join/leaves. | ||||
* | Merge pull request #2228 from matrix-org/erikj/speed_up_get_hosts | Erik Johnston | 2017-05-16 | 1 | -1/+2 |
|\ | | | | | Speed up get_joined_hosts | ||||
| * | Speed up get_joined_hosts | Erik Johnston | 2017-05-16 | 1 | -1/+2 |
| | | |||||
* | | Make presence use cached users/hosts in room | Erik Johnston | 2017-05-16 | 1 | -3/+3 |
|/ | |||||
* | Modify condition on empty localpart | Luke Barnard | 2017-05-10 | 1 | -1/+1 |
| | |||||
* | Modify register/available to be GET with query param | Luke Barnard | 2017-05-10 | 1 | -0/+7 |
| | | | | | | | - GET is now the method for register/available - a query parameter "username" is now used Also, empty usernames are now handled with an error message on registration or via register/available: `User ID cannot be empty` | ||||
* | Merge pull request #2208 from matrix-org/erikj/ratelimit_overrid | Erik Johnston | 2017-05-10 | 4 | -18/+36 |
|\ | | | | | Add per user ratelimiting overrides | ||||
| * | Add per user ratelimiting overrides | Erik Johnston | 2017-05-10 | 4 | -18/+36 |
| | | |||||
* | | Replace some instances of preserve_context_over_deferred | Richard van der Hoff | 2017-05-09 | 1 | -3/+3 |
| | | |||||
* | | Do some logging when one-time-keys get claimed | Richard van der Hoff | 2017-05-09 | 1 | -0/+10 |
| | | | | | | | | | | might help us figure out if https://github.com/vector-im/riot-web/issues/3868 has happened. | ||||
* | | Allow clients to upload one-time-keys with new sigs | Richard van der Hoff | 2017-05-09 | 1 | -13/+57 |
|/ | | | | | | | When a client retries a key upload, don't give an error if the signature has changed (but the key is the same). Fixes https://github.com/vector-im/riot-android/issues/1208, hopefully. | ||||
* | Merge pull request #2190 from matrix-org/erikj/mark_remote_as_back_more | Erik Johnston | 2017-05-05 | 1 | -7/+0 |
|\ | | | | | Always mark remotes as up if we receive a signed request from them | ||||
| * | Remove redundant reset of destination timers | Erik Johnston | 2017-05-05 | 1 | -7/+0 |
| | | |||||
* | | Comment | Erik Johnston | 2017-05-05 | 1 | -0/+6 |
| | | |||||
* | | Add comment and TODO | Erik Johnston | 2017-05-05 | 1 | -0/+6 |
| | | |||||
* | | Handle exceptions thrown in handling remote device list updates | Erik Johnston | 2017-05-05 | 1 | -1/+16 |
|/ | |||||
* | Merge pull request #2147 from matrix-org/dbkr/http_request_propagate_error | David Baker | 2017-05-03 | 1 | -1/+10 |
|\ | | | | | Propagate errors sensibly from proxied IS requests | ||||
| * | Revert accidental commit | David Baker | 2017-04-26 | 1 | -4/+4 |
| | | |||||
| * | Merge remote-tracking branch 'origin/develop' into ↵ | David Baker | 2017-04-26 | 2 | -34/+23 |
| |\ | | | | | | | | | | dbkr/http_request_propagate_error | ||||
| * | | Use CodeMessageException subclass instead | David Baker | 2017-04-25 | 1 | -10/+19 |
| | | | | | | | | | | | | | | | Parse json errors from get_json client methods and throw special errors. | ||||
| * | | Merge remote-tracking branch 'origin/develop' into ↵ | David Baker | 2017-04-21 | 1 | -0/+64 |
| |\ \ | | | | | | | | | | | | | dbkr/http_request_propagate_error | ||||
| * | | | Propagate errors sensibly from proxied IS requests | David Baker | 2017-04-21 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | When we're proxying Matrix endpoints, parse out Matrix error responses and turn them into SynapseErrors so they can be propagated sensibly upstream. | ||||
* | | | | Merge pull request #2170 from matrix-org/erikj/fed_hole_state | Erik Johnston | 2017-05-03 | 1 | -21/+12 |
|\ \ \ \ | | | | | | | | | | | Don't fetch state for missing events that we fetched | ||||
| * | | | | Merge together redundant calculations/logging | Erik Johnston | 2017-05-03 | 1 | -9/+2 |
| | | | | | |||||
| * | | | | Fixup | Erik Johnston | 2017-04-28 | 1 | -10/+4 |
| | | | | | |||||
| * | | | | Remove unncessary call in _get_missing_events_for_pdu | Erik Johnston | 2017-04-28 | 1 | -13/+11 |
| | | | | | |||||
| * | | | | Don't fetch state for missing events that we fetched | Erik Johnston | 2017-04-28 | 1 | -0/+6 |
| | | | | | |||||
* | | | | | Add more granular event send metrics | Erik Johnston | 2017-05-02 | 2 | -2/+9 |
|/ / / / | |||||
* | | | | Merge pull request #2163 from matrix-org/erikj/fix_invite_state | Erik Johnston | 2017-04-27 | 1 | -6/+3 |
|\ \ \ \ | | | | | | | | | | | Fix invite state to always include all events | ||||
| * | | | | Fix invite state to always include all events | Erik Johnston | 2017-04-26 | 1 | -6/+3 |
| | |_|/ | |/| | | |||||
* | | | | Typo | Erik Johnston | 2017-04-27 | 1 | -1/+1 |
| | | | | |||||
* | | | | Add some extra logging for edge cases of federation | Erik Johnston | 2017-04-27 | 1 | -2/+22 |
|/ / / | |||||
* | | | Remove redundant try/except clauses | Richard van der Hoff | 2017-04-21 | 1 | -23/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `except SynapseError` clauses were pointless because the wrapped functions would never throw a `SynapseError` (they either throw a `CodeMessageException` or a `RuntimeError`). The `except CodeMessageException` is now also pointless because the caller treats all exceptions equally, so we may as well just throw the `CodeMessageException`. | ||||
* | | | Broaden the conditions for locally_rejecting invites | Richard van der Hoff | 2017-04-21 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The logic for marking invites as locally rejected was all well and good, but didn't happen when the remote server returned a 500, or wasn't reachable, or had no DNS, or whatever. Just expand the except clause to catch everything. Fixes https://github.com/matrix-org/synapse/issues/761. | ||||
* | | | Remove redundant function | Richard van der Hoff | 2017-04-21 | 1 | -10/+5 |
| |/ |/| | | | | | | | inline `reject_remote_invite`, which only existed to make tracing the callflow more difficult. | ||||
* | | m.read_marker -> m.fully_read (#2128) | Luke Barnard | 2017-04-18 | 1 | -4/+4 |
| | | | | | | | | | | | | Also: - change the REST endpoint to have a "S" on the end (so it's now /read_markers) - change the content of the m.read_up_to event to have the key "event_id" instead of "marker". | ||||
* | | Merge pull request #2120 from matrix-org/luke/read-markers | Luke Barnard | 2017-04-13 | 1 | -0/+64 |
|\ \ | |/ |/| | Implement Read Marker API | ||||
| * | Simplify is_event_after logic | Luke Barnard | 2017-04-12 | 1 | -2/+3 |
| | | |||||
| * | Only notify user, not entire room | Luke Barnard | 2017-04-12 | 1 | -3/+1 |
| | | |||||
| * | Remove comment, simplify null-guard | Luke Barnard | 2017-04-12 | 1 | -4/+1 |
| | | |||||
| * | Handle no previous RM | Luke Barnard | 2017-04-12 | 1 | -1/+4 |
| | | |||||
| * | flake8 | Luke Barnard | 2017-04-11 | 1 | -1/+0 |
| | | |||||
| * | Refactor event ordering check to events store | Luke Barnard | 2017-04-11 | 1 | -28/+4 |
| | | |||||
| * | Copyright | Luke Barnard | 2017-04-11 | 1 | -1/+1 |
| | | |||||
| * | flake8 | Luke Barnard | 2017-04-11 | 1 | -2/+1 |
| | | |||||
| * | Finish implementing RM endpoint | Luke Barnard | 2017-04-11 | 1 | -39/+48 |
| | | | | | | | | | | - This change causes a 405 to be sent if "m.read_marker" is set via /account_data - This also fixes-up the RM endpoint so that it actually Works. | ||||
| * | Initial commit of RM server-side impl | lukebarnard | 2017-04-11 | 1 | -0/+82 |
| | | | | | | | | (See https://docs.google.com/document/d/1UWqdS-e1sdwkLDUY0wA4gZyIkRp-ekjsLZ8k6g_Zvso/edit#heading=h.lndohpg8at5u) | ||||
* | | Merge pull request #2115 from matrix-org/erikj/dedupe_federation_repl | Erik Johnston | 2017-04-12 | 1 | -67/+76 |
|\ \ | | | | | | | Reduce federation replication traffic | ||||
| * | | Reuse get_interested_parties | Erik Johnston | 2017-04-12 | 1 | -16/+5 |
| | | | |||||
| * | | Move get_interested_parties | Erik Johnston | 2017-04-11 | 1 | -35/+34 |
| | | | |||||
| * | | Comments | Erik Johnston | 2017-04-11 | 1 | -2/+3 |
| | | | |||||
| * | | Move get_interested_remotes back to presence handler | Erik Johnston | 2017-04-11 | 1 | -3/+49 |
| | | | |||||
| * | | Reduce federation presence replication traffic | Erik Johnston | 2017-04-10 | 1 | -40/+14 |
| |/ | | | | | | | | | | | | | | | This is mainly done by moving the calculation of where to send presence updates from the presence handler to the transaction queue, so we only need to send the presence event (and not the destinations) across the replication connection. Before we were duplicating by sending the full state across once per destination. | ||||
* | | Merge branch 'master' of github.com:matrix-org/synapse into develop | Erik Johnston | 2017-04-11 | 1 | -4/+4 |
|\ \ | |/ |/| | |||||
| * | When we do an invite rejection, save the signed leave event to the db | Richard van der Hoff | 2017-04-07 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | During a rejection of an invite received over federation, we ask a remote server to make us a `leave` event, then sign it, then send that with `send_leave`. We were saving the *unsigned* version of the event (which has a different event id to the signed version) to our db (and sending it to the clients), whereas other servers in the room will have seen the *signed* version. We're not aware of any actual problems that caused, except that it makes the database confusing to look at and generally leaves the room in a weird state. | ||||
* | | Merge pull request #2103 from matrix-org/erikj/no-double-encode | Erik Johnston | 2017-04-07 | 1 | -3/+1 |
|\ \ | | | | | | | Don't double encode replication data | ||||
| * | | Don't double json encode typing replication data | Erik Johnston | 2017-04-05 | 1 | -3/+1 |
| | | | |||||
* | | | Use iteritems | Erik Johnston | 2017-04-06 | 1 | -2/+2 |
|/ / | |||||
* | | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2017-04-04 | 2 | -28/+33 |
|\ \ | | | | | | | | | | erikj/repl_tcp_server | ||||
| * \ | Merge pull request #2095 from matrix-org/rav/cull_log_preserves | Richard van der Hoff | 2017-04-03 | 2 | -25/+20 |
| |\ \ | | |/ | |/| | Cull spurious PreserveLoggingContexts | ||||
| | * | Remove spurious yield | Richard van der Hoff | 2017-04-03 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | In `MessageHandler`, remove `yield` on call to `Notifier.on_new_room_event`: it doesn't return anything anyway. | ||||
| | * | Remove more spurious `PreserveLoggingContext`s | Richard van der Hoff | 2017-04-03 | 1 | -24/+19 |
| | | | | | | | | | | | | | | | Remove `PreserveLoggingContext` around calls to `Notifier.on_new_room_event`; there is no problem if the logcontext is set when calling it. |