- Aug 07, 2018
-
-
Amber Brown authored
-
Amber Brown authored
-
- Aug 03, 2018
-
-
Will Hunt authored
-
Michael Kaye authored
Refactor Dockerfile location
-
Michael Kaye authored
Link to contrib/docker
-
Michael Kaye authored
Link to docker/README.md
-
Michael Kaye authored
Link to contrib/docker
-
Michael Kaye authored
wrap at 80ish
-
- Aug 02, 2018
-
-
Amber Brown authored
Mention the word "newsfragment" in CONTRIBUTING.rst
-
Michael Kaye authored
-
Michael Kaye authored
-
Michael Kaye authored
-
Michael Kaye authored
-
Michael Kaye authored
-
Michael Kaye authored
This addresses #3224
-
Richard van der Hoff authored
Clean up handling of errors from outbound requests
-
Richard van der Hoff authored
Factor out exception handling in federation_client
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Synapse 0.33.1 (2018-08-02) =========================== SECURITY FIXES -------------- - Fix a potential issue where servers could request events for rooms they have not joined. (`#3641 <https://github.com/matrix-org/synapse/issues/3641>`_) - Fix a potential issue where users could see events in private rooms before they joined. (`#3642 <https://github.com/matrix-org/synapse/issues/3642>`_)
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Check room visibility for /event/ requests
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Make sure that the user has permission to view the requeseted event for /event/{eventId} and /room/{roomId}/event/{eventId} requests. Also check that the event is in the given room for /room/{roomId}/event/{eventId}, for sanity.
-
Richard van der Hoff authored
Validation for events/rooms in fed requests
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Since we're about to look up the events themselves anyway, we can skip the extra db queries here.
-
Richard van der Hoff authored
When we get a federation request which refers to an event id, make sure that said event is in the room the caller claims it is in. (patch supplied by @turt2live)
-
Erik Johnston authored
Split out DB writes in federation handler
-
- Aug 01, 2018
-
-
Neil Johnson authored
Initial impl of capping MAU
-
Richard van der Hoff authored
return 404 if room not found
-
Richard van der Hoff authored
-
Neil Johnson authored
-
Neil Johnson authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
This code brings the SimpleHttpClient into line with the MatrixFederationHttpClient by having it raise HttpResponseExceptions when a request fails (rather than trying to parse for matrix errors and maybe raising MatrixCodeMessageException). Then, whenever we were checking for MatrixCodeMessageException and turning them into SynapseErrors, we now need to check for HttpResponseExceptions and call to_synapse_error.
-
Richard van der Hoff authored
This commit replaces SynapseError.from_http_response_exception with HttpResponseException.to_synapse_error. The new method actually returns a ProxiedRequestError, which allows us to pass through additional metadata from the API call.
-
Richard van der Hoff authored
We really shouldn't be sending all CodeMessageExceptions back over the C-S API; it will include things like 401s which we shouldn't proxy. That means that we need to explicitly turn a few HttpResponseExceptions into SynapseErrors in the federation layer. The effect of the latter is that the matrix errcode will get passed through correctly to calling clients, which might help with some of the random M_UNKNOWN errors when trying to join rooms.
-
Richard van der Hoff authored
Factor out the error handling from make_membership_event, send_join, and send_leave, so that it can be shared.
-