Commit Graph

48 Commits (5c88e575556ce54f955f76d39d77019a207ca89b)

Author SHA1 Message Date
Erik Johnston c5f2da5875 Add a check to make sure that during state conflict res we only request a PDU we don't have. 10 years ago
Erik Johnston 1a26905cc9 Fix pontenial bug in state resolution handler that compared dicts rather than their id's 10 years ago
Paul "LeoNerd" Evans 33d62c2c66 Remember to reflect membership LEAVE events to the leaving member so they know it happened 10 years ago
Kegan Dougal fef3183461 Pass back the user_id in the response to /login in case it has changed. Store and use that on the webclient rather than the input field. 10 years ago
Kegan Dougal ca3747fb2f hs: Make /login accept full user IDs or just local parts. webclient: Only enable Register button when both password fields match. 10 years ago
Paul "LeoNerd" Evans 53147e5ae4 Reflect user's messages up to themselves before pushing it to federatoin; also release roomlock before touching federation so we don't halt progress on the world 10 years ago
Paul "LeoNerd" Evans 93a8be7bef We really don't need debug logging of all the SQL statements we execute; we're quite happy these all work now 10 years ago
Paul "LeoNerd" Evans 657ab9ba9d Put some DEBUG logging in lockutils.py so we can debug roomlocks 10 years ago
Kegan Dougal fb93e14e53 Be more helpful when failing to register/login, stating why (communication error, user in user, wrong credentials, etc). Make the HS send M_USER_IN_USE. 10 years ago
Kegan Dougal 5a5f37ca17 Send forbidden codes when doing login attempts. 10 years ago
Paul "LeoNerd" Evans 0fa05ea331 Round Presence mtime and mtime_age to nearest msec; avoids floats for msec values over the wire 10 years ago
Erik Johnston e4061383b8 Change relative db paths to absolute paths in case we daemonize. 10 years ago
Paul "LeoNerd" Evans e37de2aef3 chmod +x homeserver.py 10 years ago
Kegan Dougal 61933f8e52 Added M_UNKNOWN_TOKEN error code and send it when there is an unrecognised access_token 10 years ago
Kegan Dougal 2a793a6c42 Default error code BAD_PAGINATION for EventStreamErrors 10 years ago
Kegan Dougal d253a35539 Added web client prefix 10 years ago
Kegan Dougal c75add6ec8 Added a urls module for keeping client and federation prefixes. 10 years ago
Kegan Dougal 9fd445eb92 If the web client is enabled, automatically redirect root '/' to the web client path. 10 years ago
Kegan Dougal e543d6a91d Fixed dynamic resource mapping to clobber dummy Resources with the actual desired Resource in the event of a collision (as is the case for '/matrix/client' and '/matrix/client/api/v1') 10 years ago
Kegan Dougal de65c34fcf Honour the -w flag to enable the web client at /matrix/client 10 years ago
Kegan Dougal 9a1638ed21 Removed http_server from HomeServer. Updated unit tests to use either resource_for_federation or resource_for_client depending on what is being tested. 10 years ago
Kegan Dougal 29aa13f0d4 Make federation use resource_for_federation as well. 10 years ago
Kegan Dougal 9f863d3466 Start phasing out HttpServer: we should be using Resources instead. Added resource_for_client/federation/web_client to the HomeServer and hooked the C-S servlets to operate on resource_for_client. Dynamically construct the Resource tree. 10 years ago
Matthew Hodgson a4da962bab fix http client GET parameters; somehow missing named param. how could this have ever worked!? 10 years ago
Matthew Hodgson aebe5ce08a fix whitespace 10 years ago
Paul "LeoNerd" Evans d05aa651f8 An initial hack at storing presence state-change mtimes in database and presenting age durations to clients/federation events 10 years ago
Paul "LeoNerd" Evans baf04be5cf Set datastore's .hs field in SQLBaseStore rather than in the toplevel DataStore mixed-in result class 10 years ago
Matthew Hodgson 59dfbaba3b when we're talking about backfilling data in federation, call it backfilling - not pagination. 10 years ago
Paul "LeoNerd" Evans 3a1cfe18cf Implement directory service federation by Federation Queries; avoid local_only hack; add unit tests 10 years ago
Paul "LeoNerd" Evans 7fb93f2a47 Add a HomeServer.parse_roomalias() to avoid having to RoomAlias.from_sring(..., hs=hs) - similar to parse_userid() 10 years ago
Paul "LeoNerd" Evans 80c056c148 Now that HS->HS Profile lookups use Federation Queries, we don't need the 'local_only' antirecursion hack 10 years ago
Paul "LeoNerd" Evans 505917cb97 Use new Federation Query API to implement HS->HS fetching of remote users' profile information instead of (ab)using the client-side REST API 10 years ago
Paul "LeoNerd" Evans 827de7cee9 Define the concept of a 'federation Query'; creating API for making and handling Queries on the Federation's increasingly-inaccurately-named ReplicationLayer 10 years ago
Paul "LeoNerd" Evans 1ddae5f40b Update get_json()'s documentation to match the actual observed behaviour 10 years ago
Erik Johnston 6df83555cc Handle a potential race in the notifier when calling get_events_for which resulted in an uncaught KeyError 10 years ago
Kegan Dougal 2da1e1526e Don't pass host_web_client flag to register_servlets, it needs to be a Resource not a RestServlet. 10 years ago
Paul "LeoNerd" Evans b370f9903c Fix logging verbosity parsing code 10 years ago
Paul "LeoNerd" Evans 820ed34abe Namespace all the Federation HTTP URLs to /matrix/federation/v1/... 10 years ago
Paul "LeoNerd" Evans 55944ccf72 Use strings instead of opaque magic-number constants for presence states; rename AWAY to UNAVAILABLE 10 years ago
Kegan Dougal 7f40fa1d46 Added a -w flag which will host the web client if specified. Currently this just delegates to the webclient RestServlet. 10 years ago
Matthew Hodgson 2a0f7541c7 verbose by default please 10 years ago
Kegan Dougal 9b3702c924 Return the room_alias when GETing public rooms. 10 years ago
Matthew Hodgson f98e6380f1 add in whitespace after copyright statements to improve legibility 10 years ago
Matthew Hodgson 514df1f648 actually register the login servlet (uncommitted code thinko?) 10 years ago
Erik Johnston 4add1c70e9 Just say yes to OPTIONS requests, since we want to turn on CORS headers for all paths 10 years ago
matrix.org 4f475c7697 Reference Matrix Home Server 10 years ago