Commit Graph

48 Commits (3791b75000f9787806dbdce3e6e216da1ac07388)

Author SHA1 Message Date
Mark Haines 7d709542ca Fix pep8 warnings 10 years ago
Mark Haines 4be99c2989 Add get_json method to 3pid http client. Better logging for errors in 3pid requests 10 years ago
Mark Haines f74e850b5c remove debugging logging for signing requests 10 years ago
Mark Haines 6684855767 Verify signatures for server2server requests 10 years ago
Mark Haines 10ef8e6e4b SYN-75 sign at the request level rather than the transaction level 10 years ago
Mark Haines 693d0b8f45 Replace on_send_callback with something a bit clearer so that we can sign messages 10 years ago
Mark Haines b9cdc443d7 Fix pyflakes errors 10 years ago
Mark Haines 574377636e Add a keyword argument to get_json to avoid retrying on DNS failures. Rather than passing MatrixHttpClient.RETRY_DNS_LOOKUP_FAILURES as a fake query string parameter 10 years ago
Mark Haines 4f11518934 Split PlainHttpClient into separate clients for talking to Identity servers and talking to Capatcha servers 10 years ago
Mark Haines c8d67beb9c remove "red", "blue" and "green" server_name mappings 10 years ago
Mark Haines bf4b224fcf Fix a few pyflakes errors in the server_key_resource 10 years ago
Mark Haines e3117a2a23 Add a _matrix/key/v1 resource with the verification keys of the local server 10 years ago
Erik Johnston 6ac0b4ade8 Fix 'age' key to update on retries 10 years ago
Kegan Dougal 1829b55bb0 Captchas now work on registration. Missing x-forwarded-for config arg support. Missing reloading a new captcha on the web client / displaying a sensible error message. 10 years ago
David Baker d6ecbbdf0a Add support for registering with a threepid to the HS (get credentials from the client and check them against an ID server). 10 years ago
Matthew Hodgson 8a7c1d6a00 fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch. 10 years ago
Mark Haines ee2bcdec65 Limit the size of uploads 10 years ago
Kegan Dougal 7fc84c7019 Make retrying requests on DNS failures configurable, and turn off retrying only in directory.get_association 10 years ago
Kegan Dougal b1195c125f hs: Updated synapse.http.client to handle DNSLookupErrors and bail immediately. 10 years ago
Erik Johnston bc21350298 Add option to change content repo location 10 years ago
Mark Haines bf10cf5f1a move contentrepo class to it's own file 10 years ago
Mark Haines 112c7ea315 Set status message for ratelimit error responses 10 years ago
Erik Johnston 235f686da9 Update default endpoint port to match the default ports in the config 10 years ago
Matthew Hodgson 68a04b9282 given everything's apparently gone https:// by default for c-s, change this hardcoding... 10 years ago
Mark Haines 5452a8ee29 Fix SSL for federation http client 10 years ago
Mark Haines a53946a8a1 Enable SSL for s2s http client 10 years ago
Matthew Hodgson 2b7918bd6f missed a s#/matrix#/_matrix/g 10 years ago
Erik Johnston 0c3b4a1f63 For the content repo, don't just use homeserver.hostname as that might not include the port due to SRV. 10 years ago
Erik Johnston acf5127604 Make the content repo work with in daemon mode. Return the full url on upload. Update the webclient to use new content repo api. 10 years ago
Kegan Dougal f48792eec4 Reduce the amount of incredibly spammy stack traces. Expected errors (e.g. SynapseErrors) shouldn't have their full trace logged every time. Don't send responses to disconnected requests. 10 years ago
Kegan Dougal e37b040bc3 Small amounts of cleanup and bonus round comments. 10 years ago
Kegan Dougal 58548ab557 Implemented GETs for the ContentRepoResource. It all actually appears to be working. 10 years ago
Kegan Dougal 590ab24c85 hs: Make the uploads directory if it doesn't exist. Namespace uploads by the base64 encoded user id of the uploader. Make a reasonable attempt to retry clashing upload paths. Try to guess a sensible file extension depending on the content type. 10 years ago
Kegan Dougal 35da1bf4a3 Auth content uploads. Added a mapping function from request > filename. Added exception handling for content uploads. webclient: Only prefix the client API path on doRequest, not doBaseRequest (this would've broken the identity server auth too). Added matrixService.uploadContent. May not require mFileUpload anymore. 10 years ago
Kegan Dougal a18b1a649c Added /matrix/content path, HS resource_for_content_repo attribute and FileUploadResource. Added stub methods. 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 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 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
Paul "LeoNerd" Evans 1ddae5f40b Update get_json()'s documentation to match the actual observed behaviour 10 years ago
Matthew Hodgson f98e6380f1 add in whitespace after copyright statements to improve legibility 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