Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2016-11-03 | Remove spurious comment | Erik Johnston | 1 | -2/+2 | |
2016-11-03 | Replace postgres GIN with GIST | Erik Johnston | 3 | -1/+45 | |
This is because GIN can be slow to write too, especially when the table gets large. | |||||
2016-11-03 | Don't error on non-ascii passwords | David Baker | 1 | -1/+1 | |
2016-11-02 | Set CORs headers on responses from the media repo | Mark Haines | 3 | -7/+22 | |
2016-11-01 | Bump version and changelog | Erik Johnston | 2 | -1/+7 | |
2016-11-01 | Continue to clean up received_transactions | Erik Johnston | 1 | -0/+14 | |
2016-11-01 | Change API to use properties instead of rows | Erik Johnston | 1 | -1/+1 | |
2016-10-31 | Removed unused stuff | Erik Johnston | 1 | -163/+3 | |
2016-10-31 | Increase batching of sent transaction inserts | Erik Johnston | 1 | -1/+1 | |
This should further reduce the number of individual inserts, transactions and updates that are required for keeping sent_transactions up to date. | |||||
2016-10-31 | Use new tables | Erik Johnston | 7 | -89/+87 | |
2016-10-31 | Add details of renamed metrics | Paul "LeoNerd" Evans | 1 | -0/+34 | |
2016-10-31 | Migrate old profile data | Erik Johnston | 3 | -26/+128 | |
2016-10-28 | Remove long-deprecated instructions about promethesus console; also fix for ↵ | Paul "LeoNerd" Evans | 1 | -33/+8 | |
modern config file format | |||||
2016-10-28 | Changelog formattting v0.18.2-rc5 | Erik Johnston | 1 | -0/+1 | |
2016-10-28 | Bump changelog and version | Mark Haines | 2 | -1/+8 | |
2016-10-27 | Set up the process collector during metrics __init__; that way all ↵ | Paul "LeoNerd" Evans | 2 | -2/+3 | |
split-process workers have it | |||||
2016-10-27 | Pass the Metrics group into the process collector instead of having it find ↵ | Paul "LeoNerd" Evans | 2 | -8/+4 | |
its own one; this avoids it needing to import from synapse.metrics | |||||
2016-10-27 | Allow creation of a 'subspace' within a Metrics object, returning another one | Paul "LeoNerd" Evans | 1 | -0/+3 | |
2016-10-27 | Add federation profile endpoints | Erik Johnston | 6 | -7/+58 | |
2016-10-27 | Initial implementation of extended profiles | Erik Johnston | 7 | -1/+252 | |
2016-10-27 | Bump changelog and version v0.18.2-rc4 | Erik Johnston | 2 | -1/+10 | |
2016-10-27 | Use most recently added binding, not most recently seen user. | Erik Johnston | 1 | -19/+11 | |
2016-10-27 | Fix user_threepids schema delta | Erik Johnston | 1 | -1/+38 | |
The delta `37/user_threepids.sql` aimed to update all the email addresses to be lower case, however duplicate emails may exist in the table already. This commit adds a step where the delta moves the duplicate emails to a new `medium` `email_old`. Only the most recently used account keeps the binding intact. We move rather than delete so that we retain some record of which emails were associated with which account. | |||||
2016-10-27 | Update changelog v0.18.2-rc3 | Erik Johnston | 1 | -0/+1 | |
2016-10-27 | Bump changelog and version | Erik Johnston | 2 | -2/+8 | |
2016-10-25 | Fixup change log v0.18.2-rc2 | Erik Johnston | 1 | -2/+2 | |
2016-10-25 | Bump version and changelog | Erik Johnston | 2 | -1/+20 | |
2016-10-24 | Fix infinite typing bug | Erik Johnston | 1 | -2/+10 | |
There's a bug somewhere that causes typing notifications to not be timed out properly. By adding a paranoia timer and using correct inequalities notifications should stop being stuck, even if it the root cause hasn't been fixed. | |||||
2016-10-24 | Actually use the new function | Erik Johnston | 1 | -1/+1 | |
2016-10-24 | Fix incredubly slow back pagination query | Erik Johnston | 4 | -12/+48 | |
If a client didn't specify a from token when paginating backwards synapse would attempt to query the (global) maximum topological token. This a) doesn't make much sense since they're room specific and b) there are no indices that lets postgres do this efficiently. | |||||
2016-10-20 | Style | Luke Barnard | 1 | -2/+3 | |
2016-10-20 | Closing brace on following line | Luke Barnard | 1 | -1/+2 | |
2016-10-20 | as_user->app_service, less redundant comments, better positioned comments | Luke Barnard | 3 | -14/+11 | |
2016-10-20 | flake8 | Luke Barnard | 1 | -1/+3 | |
2016-10-20 | Use real AS object by passing it through the requester | Luke Barnard | 3 | -18/+15 | |
This means synapse does not have to check if the AS is interested, but instead it effectively re-uses what it already knew about the requesting user | |||||
2016-10-19 | Split callback metric lambda functions down onto their own lines to keep ↵ | Paul "LeoNerd" Evans | 1 | -8/+16 | |
line lengths under 90 | |||||
2016-10-19 | Adjust code for <100 char line limit | Paul "LeoNerd" Evans | 1 | -1/+1 | |
2016-10-19 | Cut the raw /proc/self/stat line up into named fields at collection time | Paul "LeoNerd" Evans | 1 | -8/+22 | |
2016-10-19 | Move the process metrics collector code into its own file | Paul "LeoNerd" Evans | 3 | -141/+161 | |
2016-10-19 | A slightly neater way to manage metric collector functions | Paul "LeoNerd" Evans | 1 | -2/+8 | |
2016-10-19 | appease pep8 | Paul "LeoNerd" Evans | 1 | -3/+5 | |
2016-10-19 | Also guard /proc/self/fds-related code with a suitable psuedoconstant | Paul "LeoNerd" Evans | 1 | -3/+5 | |
2016-10-19 | Guard registration of process-wide metrics by existence of the requisite ↵ | Paul "LeoNerd" Evans | 1 | -45/+50 | |
/proc entries | |||||
2016-10-19 | Add standard process_start_time_seconds metric | Paul "LeoNerd" Evans | 1 | -0/+15 | |
2016-10-19 | Add standard process_max_fds metric | Paul "LeoNerd" Evans | 1 | -0/+13 | |
2016-10-19 | Add standard process_open_fds metric | Paul "LeoNerd" Evans | 1 | -20/+29 | |
2016-10-19 | Add standard process_*_memory_bytes metrics | Paul "LeoNerd" Evans | 1 | -0/+8 | |
2016-10-19 | Use /proc/self/stat to generate the new process_cpu_*_seconds_total metrics | Paul "LeoNerd" Evans | 1 | -4/+12 | |
2016-10-19 | Export CPU usage metrics also under prometheus-standard metric name | Paul "LeoNerd" Evans | 1 | -0/+15 | |
2016-10-19 | Callback metric values might not just be integers - allow floats | Paul "LeoNerd" Evans | 1 | -2/+2 | |
2016-10-19 | Comment | Erik Johnston | 1 | -0/+3 | |
2016-10-19 | Latest delta is now 37 | David Baker | 1 | -0/+0 | |
2016-10-19 | Convert emails to lowercase when storing | David Baker | 2 | -1/+20 | |
And db migration sql to convert existing addresses. | |||||
2016-10-19 | Check whether to ratelimit sooner to avoid work | Erik Johnston | 2 | -6/+22 | |
2016-10-18 | Refactor test_filter to use real DataStore | pik | 3 | -46/+83 | |
* add tests for filter api errors | |||||
2016-10-18 | Allow Configurable Rate Limiting Per AS | Luke Barnard | 3 | -1/+26 | |
This adds a flag loaded from the registration file of an AS that will determine whether or not its users are rate limited (by ratelimit in _base.py). Needed for IRC bridge reasons - see https://github.com/matrix-org/matrix-appservice-irc/issues/240. | |||||
2016-10-18 | Fix push notifications for a single unread message | Erik Johnston | 1 | -1/+1 | |
2016-10-18 | Reduce redundant database work in email pusher | Erik Johnston | 1 | -0/+4 | |
Update the last stream ordering if the `get_unread_push_actions_for_user_in_range_for_email` returns no new push actions. This reduces the range that it needs to check next iteration. | |||||
2016-10-17 | Update changelog v0.18.2-rc1 | Erik Johnston | 1 | -4/+7 | |
2016-10-17 | Bump version and changelog | Erik Johnston | 2 | -2/+26 | |
2016-10-17 | Bump schema version | Erik Johnston | 2 | -1/+1 | |
2016-10-17 | Remove TODO | Erik Johnston | 1 | -2/+0 | |
2016-10-17 | Drop some unused indices | Erik Johnston | 3 | -17/+83 | |
2016-10-14 | Fix MockHttpRequest always returning M_UNKNOWN errcode in testing | pik | 1 | -1/+1 | |
2016-10-14 | Revert part of 6207399 | David Baker | 1 | -20/+10 | |
older sqlite doesn't support indexes on expressions, lets just store things lowercase in the db | |||||
2016-10-14 | Error codes for filters | Alexander Maznev | 2 | -7/+16 | |
* add tests Signed-off-by: Alexander Maznev <alexander.maznev@gmail.com> | |||||
2016-10-14 | Make password reset email field case insensitive | David Baker | 2 | -10/+36 | |
2016-10-13 | Fix email push notifs being dropped | Erik Johnston | 1 | -14/+25 | |
A lot of email push notifications were failing to be sent due to an exception being thrown along one of the (many) paths. This was due to a change where we moved from pulling out the full state for each room, but rather pulled out the event ids for the state and separately loaded the full events when needed. | |||||
2016-10-12 | Handle delete device requests with no body | Richard van der Hoff | 1 | -2/+11 | |
We should probably return a 401 rather than a 400 for existing clients that don't know they have to do the UIA dance to delete a device. | |||||
2016-10-12 | User-interactive auth on delete device | Richard van der Hoff | 1 | -5/+11 | |
2016-10-12 | Explain how long the servers can cache the TLS fingerprints for | Mark Haines | 1 | -3/+4 | |
2016-10-12 | Improve comment formatting | Mark Haines | 2 | -4/+7 | |
2016-10-11 | Add config option for adding additional TLS fingerprints | Mark Haines | 2 | -12/+41 | |
2016-10-11 | Fix check of wrong variable | Erik Johnston | 1 | -1/+1 | |
2016-10-11 | Work around email-spamming Riot bug | Richard van der Hoff | 1 | -3/+14 | |
5d9546f9 introduced a change to synapse behaviour, in that failures in the interactive-auth process would return the flows and params data as well as an error code (as specced in https://github.com/matrix-org/matrix-doc/pull/397). That change exposed a bug in Riot which would make it request a new validation token (and send a new email) each time it got a 401 with a `flows` parameter (see https://github.com/vector-im/vector-web/issues/2447 and the fix at https://github.com/matrix-org/matrix-react-sdk/pull/510). To preserve compatibility with broken versions of Riot, grandfather in the old behaviour for the email validation stage. | |||||
2016-10-08 | Use sys.executable instead of hardcoded python. fixes #1161 | Pedro Larroy | 1 | -1/+1 | |
2016-10-07 | Interactive Auth: Return 401 from for incorrect password | Richard van der Hoff | 1 | -32/+52 | |
This requires a bit of fettling, because I want to return a helpful error message too but we don't want to distinguish between unknown user and invalid password. To avoid hardcoding the error message into 15 places in the code, I've had to refactor a few methods to return None instead of throwing. Fixes https://matrix.org/jira/browse/SYN-744 | |||||
2016-10-06 | rest/client/v1/register: use the correct requester in createUser | Patrik Oldsberg | 4 | -31/+22 | |
Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com> | |||||
2016-10-06 | window.postmessage for Interactive Auth fallback | Richard van der Hoff | 1 | -1/+3 | |
If you're a webapp running the fallback in an iframe, you can't set set a window.onAuthDone function. Let's post a message back to window.opener instead. | |||||
2016-10-06 | handlers/profile: added admin override for set_displayname and set_avatar_url | Patrik Oldsberg | 1 | -4/+4 | |
Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com> | |||||
2016-10-06 | handers: do not ratelimit app service senders | Patrik Oldsberg | 1 | -1/+7 | |
Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com> | |||||
2016-10-06 | storage/appservice: make appservice methods only relying on the cache ↵ | Patrik Oldsberg | 10 | -41/+31 | |
synchronous | |||||
2016-10-05 | Bump changelog and version | Erik Johnston | 2 | -1/+7 | |
2016-10-04 | Add Riot brand to email notifs | David Baker | 1 | -1/+3 | |
2016-10-03 | Implement pluggable password auth | Erik Johnston | 7 | -401/+486 | |
Allows delegating the password auth to an external module. This also moves the LDAP auth to using this system, allowing it to be removed from the synapse tree entirely in the future. | |||||
2016-09-30 | Update changelog v0.18.1-rc1 | Erik Johnston | 1 | -0/+2 | |
2016-09-30 | api/auth: fix for not being allowed to set your own state_key | Patrik Oldsberg | 1 | -10/+0 | |
Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com> | |||||
2016-09-30 | Bump version and changelog | Erik Johnston | 2 | -1/+22 | |
2016-09-29 | Restructure ldap authentication | Martin Weinelt | 1 | -87/+192 | |
- properly parse return values of ldap bind() calls - externalize authentication methods - change control flow to be more error-resilient - unbind ldap connections in many places - improve log messages and loglevels | |||||
2016-09-27 | Fix background reindex of origin_server_ts | Erik Johnston | 1 | -15/+29 | |
The storage function `_get_events_txn` was removed everywhere except from this background reindex. The function was removed due to it being (almost) completely unused while also being large and complex. Therefore, instead of resurrecting `_get_events_txn` we manually reimplement the bits that are needed directly. | |||||
2016-09-27 | Update port script with recently added tables | Erik Johnston | 1 | -0/+9 | |
This also fixes a bug where the port script would explode when it encountered the newly added boolean column `public_room_list_stream.visibility` | |||||
2016-09-27 | Remove duplication | Erik Johnston | 1 | -31/+19 | |
2016-09-27 | Remove unused variable | Erik Johnston | 1 | -3/+0 | |
2016-09-26 | Fix perf of fetching state in SQLite | Erik Johnston | 1 | -20/+41 | |
2016-09-25 | typo | Matthew Hodgson | 1 | -1/+1 | |
2016-09-23 | Reduce DB hits for replication | Erik Johnston | 6 | -45/+115 | |
Some streams will occaisonally advance their positions without actually having any new rows to send over federation. Currently this means that the token will not advance on the workers, leading to them repeatedly sending a slightly out of date token. This in turns requires the master to hit the DB to check if there are any new rows, rather than hitting the no op logic where we check if the given token matches the current token. This commit changes the API to always return an entry if the position for a stream has changed, allowing workers to advance their tokens correctly. | |||||
2016-09-23 | Move FEDERATION_PING_INTERVAL timer. Update log line | Erik Johnston | 1 | -8/+10 | |
2016-09-23 | Time out typing over federation | Erik Johnston | 6 | -83/+120 | |
2016-09-22 | Update comments | Erik Johnston | 1 | -2/+3 | |
2016-09-22 | Add comments | Erik Johnston | 2 | -0/+6 | |
2016-09-22 | Shuffle things around to make unit tests work | Erik Johnston | 2 | -15/+16 | |
2016-09-22 | Allow invites via 3pid to bypass sender sig check | Erik Johnston | 2 | -7/+22 | |
When a server sends a third party invite another server may be the one that the inviting user registers with. In this case it is that remote server that will issue an actual invitation, and wants to do it "in the name of" the original invitee. However, the new proper invite will not be signed by the original server, and thus other servers would reject the invite if it was seen as coming from the original user. To fix this, a special case has been added to the auth rules whereby another server can send an invite "in the name of" another server's user, so long as that user had previously issued a third party invite that is now being accepted. | |||||
2016-09-21 | Match against event_id, rather than room_id | Erik Johnston | 1 | -1/+1 | |
2016-09-21 | Remove spurious AS clause | Erik Johnston | 1 | -1/+1 | |
2016-09-21 | Update correct table | Erik Johnston | 1 | -6/+10 | |
2016-09-21 | Readd entries to public_room_list_stream that were deleted | Erik Johnston | 2 | -1/+23 | |
2016-09-21 | Fix _delete_old_forward_extrem_cache query | Erik Johnston | 1 | -5/+4 | |
2016-09-21 | Add total_room_count_estimate to /publicRooms | Erik Johnston | 1 | -0/+3 | |
2016-09-21 | Support /initialSync in synchrotron worker | Erik Johnston | 6 | -383/+461 | |
2016-09-19 | Bump version and changelog | Erik Johnston | 2 | -3/+16 | |
2016-09-19 | _id field must uniquely identify different conditions | Erik Johnston | 1 | -2/+2 | |
2016-09-17 | proposal for notifying on e2e events | Matthew Hodgson | 1 | -0/+49 | |
2016-09-17 | PEP8 | Erik Johnston | 1 | -1/+1 | |
2016-09-17 | Handle fact that _generate_room_entry may not return a room entry | Erik Johnston | 1 | -12/+25 | |
2016-09-17 | Enable guest access to POST /publicRooms | Erik Johnston | 1 | -2/+2 | |
2016-09-17 | Spelling | Erik Johnston | 1 | -1/+1 | |
2016-09-17 | Fix and clean up publicRooms pagination | Erik Johnston | 1 | -110/+123 | |
2016-09-17 | mention client_reader worker | Matthew Hodgson | 1 | -0/+1 | |
2016-09-17 | fix logger for client_reader worker | Matthew Hodgson | 1 | -1/+1 | |
2016-09-16 | Make public room search case insensitive | David Baker | 1 | -4/+4 | |
2016-09-16 | Update changelog v0.18.0-rc1 | Erik Johnston | 1 | -2/+3 | |
2016-09-16 | Update changelog and bump version | Erik Johnston | 2 | -1/+41 | |
2016-09-16 | Fix public room pagination for client_reader app | Erik Johnston | 1 | -0/+1 | |
2016-09-16 | Comment | Erik Johnston | 1 | -0/+2 | |
2016-09-16 | Make POST /publicRooms require auth | Erik Johnston | 1 | -2/+1 | |
2016-09-16 | Comment | Erik Johnston | 1 | -0/+2 | |
2016-09-16 | Add remote reoom cache | Erik Johnston | 1 | -2/+23 | |
2016-09-16 | Support filtering remote room lists | Erik Johnston | 3 | -6/+18 | |
2016-09-16 | Filter remote rooms lists locally | Erik Johnston | 2 | -11/+25 | |
2016-09-16 | Don't cache searched in /publicRooms | Erik Johnston | 1 | -1/+5 | |
2016-09-16 | Add new storage function to slave store | Erik Johnston | 1 | -0/+1 | |
2016-09-15 | Add very basic filter API to /publicRooms | Erik Johnston | 1 | -5/+18 | |
2016-09-15 | Change the way we calculate new_limit in /publicRooms and add POST API | Erik Johnston | 2 | -15/+62 | |
2016-09-15 | Handling expiring stream extrems correctly. | Erik Johnston | 2 | -3/+22 | |
2016-09-15 | Change get_pos_of_last_change to return upper bound | Erik Johnston | 2 | -6/+6 | |
2016-09-15 | Enable state caches on workers | Erik Johnston | 6 | -0/+6 | |
2016-09-15 | Use stream_change cache to make get_forward_extremeties_for_room cache more ↵ | Erik Johnston | 3 | -2/+19 | |
effective | |||||
2016-09-15 | Add cache to get_forward_extremeties_for_room | Erik Johnston | 2 | -1/+2 | |
2016-09-15 | Remove default public rooms limit | Erik Johnston | 1 | -1/+1 | |
2016-09-15 | By default limit /publicRooms to 100 entries | Erik Johnston | 1 | -1/+1 | |
2016-09-15 | Stream public room changes down replication | Erik Johnston | 4 | -1/+74 | |
2016-09-15 | Base public room list off of public_rooms stream | Erik Johnston | 2 | -7/+79 | |
2016-09-15 | Pass since/from parameters over federation | Erik Johnston | 6 | -57/+63 | |
2016-09-15 | Allow paginating both forwards and backwards | Erik Johnston | 2 | -24/+65 | |
2016-09-15 | Remove support for aggregate room lists | Erik Johnston | 3 | -65/+1 | |
2016-09-15 | Ensure we don't mutate the cache of push rules | Erik Johnston | 1 | -9/+1 | |
2016-09-15 | Accept optional token to public room list | Erik Johnston | 2 | -7/+76 | |
2016-09-14 |