9d8a3234ba 
								
									
								
							
								 
							
						 
						
							
							
								
								Respond with proper error responses on unknown paths. ( #14621 )  
							
							... 
							
							
							
							Returns a proper 404 with an errcode of M_RECOGNIZED for
unknown endpoints per MSC3743. 
							
						 
						
							2022-12-08 11:37:05 -05:00  
				
					
						
							
							
								 
						
							
							
								4eaf3eb840 
								
									
								
							
								 
							
						 
						
							
							
								
								Implementation of HTTP 307 response for MSC3886 POST endpoint ( #14018 )  
							
							... 
							
							
							
							Co-authored-by: reivilibre <olivier@librepush.net>
Co-authored-by: Andrew Morgan <andrewm@element.io> 
							
						 
						
							2022-10-18 15:52:25 +00:00  
				
					
						
							
							
								 
						
							
							
								32fc3b7ba4 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove configuration options for direct TCP replication. ( #13647 )  
							
							... 
							
							
							
							Removes the ability to configure legacy direct TCP replication. Workers now require Redis to run. 
							
						 
						
							2022-09-06 07:50:02 +00:00  
				
					
						
							
							
								 
						
							
							
								7bc110a19e 
								
									
								
							
								 
							
						 
						
							
							
								
								Generalise the `@cancellable` annotation so it can be used on functions other than just servlet methods. ( #13662 )  
							
							
							
						 
						
							2022-08-31 11:16:05 +00:00  
				
					
						
							
							
								 
						
							
							
								e2ed1b7155 
								
									
								
							
								 
							
						 
						
							
							
								
								Use literals in place of `HTTPStatus` constants in tests ( #13463 )  
							
							
							
						 
						
							2022-08-05 16:59:09 +02:00  
				
					
						
							
							
								 
						
							
							
								b977867358 
								
									
								
							
								 
							
						 
						
							
							
								
								Rate limit joins per-room ( #13276 )  
							
							
							
						 
						
							2022-07-19 11:45:17 +00:00  
				
					
						
							
							
								 
						
							
							
								f1145563f6 
								
									
								
							
								 
							
						 
						
							
							
								
								Extra type annotations in `test_server` ( #13124 )  
							
							
							
						 
						
							2022-06-28 12:12:17 +00:00  
				
					
						
							
							
								 
						
							
							
								3c1c40d843 
								
									
								
							
								 
							
						 
						
							
							
								
								Clean up the test code for client disconnections ( #12929 )  
							
							... 
							
							
							
							* Reword failure message about `await_result=False`
* Use `reactor.advance()` instead of `reactor.pump()`
* Raise `AssertionError`s ourselves
* Un-instance method `_test_disconnect`
* Replace `ThreadedMemoryReactorClock` with `MemoryReactorClock` 
							
						 
						
							2022-06-07 18:17:32 +01:00  
				
					
						
							
							
								 
						
							
							
								dffecade7d 
								
									
								
							
								 
							
						 
						
							
							
								
								Respect the `@cancellable` flag for `DirectServe{Html,Json}Resource`s ( #12698 )  
							
							... 
							
							
							
							`DirectServeHtmlResource` and `DirectServeJsonResource` both inherit
from `_AsyncResource`. These classes expect to be subclassed with
`_async_render_*` methods.
This commit has no effect on `JsonResource`, despite inheriting from
`_AsyncResource`. `JsonResource` has its own `_async_render` override
which will need to be updated separately.
Signed-off-by: Sean Quah <seanq@element.io> 
							
						 
						
							2022-05-11 12:24:48 +01:00  
				
					
						
							
							
								 
						
							
							
								50022cff96 
								
									
								
							
								 
							
						 
						
							
							
								
								Add reactor to `SynapseRequest` and fix up types. ( #10868 )  
							
							
							
						 
						
							2021-09-24 11:01:25 +01:00  
				
					
						
							
							
								 
						
							
							
								3ff2251754 
								
									
								
							
								 
							
						 
						
							
							
								
								Improved validation for received requests ( #9817 )  
							
							... 
							
							
							
							* Simplify `start_listening` callpath
* Correctly check the size of uploaded files 
							
						 
						
							2021-04-23 19:20:44 +01:00  
				
					
						
							
							
								 
						
							
							
								59d24c5bef 
								
									
								
							
								 
							
						 
						
							
							
								
								pass a reactor into SynapseSite ( #9874 )  
							
							
							
						 
						
							2021-04-23 17:06:47 +01:00  
				
					
						
							
							
								 
						
							
							
								0a00b7ff14 
								
									
								
							
								 
							
						 
						
							
							
								
								Update black, and run auto formatting over the codebase ( #9381 )  
							
							... 
							
							
							
							- Update black version to the latest
 - Run black auto formatting over the codebase
    - Run autoformatting according to [`docs/code_style.md
`](80d6dc9783/docs/code_style.md 
							
						 
						
							2021-02-16 22:32:34 +00:00  
				
					
						
							
							
								 
						
							
							
								394516ad1b 
								
							
								 
							
						 
						
							
							
								
								Remove spurious "SynapseRequest" result from `make_request"  
							
							... 
							
							
							
							This was never used, so let's get rid of it. 
							
						 
						
							2020-12-15 22:35:40 +00:00  
				
					
						
							
							
								 
						
							
							
								5bcf6e8289 
								
							
								 
							
						 
						
							
							
								
								Skip redundant check on `request.args`  
							
							
							
						 
						
							2020-12-15 22:35:03 +00:00  
				
					
						
							
							
								 
						
							
							
								30fba62108 
								
									
								
							
								 
							
						 
						
							
							
								
								Apply an IP range blacklist to push and key revocation requests. ( #8821 )  
							
							... 
							
							
							
							Replaces the `federation_ip_range_blacklist` configuration setting with an
`ip_range_blacklist` setting with wider scope. It now applies to:
* Federation
* Identity servers
* Push notifications
* Checking key validitity for third-party invite events
The old `federation_ip_range_blacklist` setting is still honored if present, but
with reduced scope (it only applies to federation and identity servers). 
							
						 
						
							2020-12-02 11:09:24 -05:00  
				
					
						
							
							
								 
						
							
							
								be8fa65d0b 
								
							
								 
							
						 
						
							
							
								
								Remove redundant calls to `render()`  
							
							
							
						 
						
							2020-11-16 18:24:08 +00:00  
				
					
						
							
							
								 
						
							
							
								9debe657a3 
								
							
								 
							
						 
						
							
							
								
								pass a Site into make_request  
							
							
							
						 
						
							2020-11-15 23:09:03 +00:00  
				
					
						
							
							
								 
						
							
							
								2f4d60a5ba 
								
									
								
							
								 
							
						 
						
							
							
								
								Iteratively encode JSON responses to avoid blocking the reactor. ( #8013 )  
							
							
							
						 
						
							2020-08-18 08:49:59 -04:00  
				
					
						
							
							
								 
						
							
							
								6812509807 
								
									
								
							
								 
							
						 
						
							
							
								
								Implement handling of HTTP HEAD requests. ( #7999 )  
							
							
							
						 
						
							2020-08-03 08:45:42 -04:00  
				
					
						
							
							
								 
						
							
							
								6a080ea184 
								
									
								
							
								 
							
						 
						
							
							
								
								Return an empty body for OPTIONS requests. ( #7886 )  
							
							
							
						 
						
							2020-07-24 07:08:07 -04:00  
				
					
						
							
							
								 
						
							
							
								1ec688bf21 
								
									
								
							
								 
							
						 
						
							
							
								
								Downgrade warning on client disconnect to INFO ( #7928 )  
							
							... 
							
							
							
							Clients disconnecting before we finish processing the request happens from time
to time. We don't need to yell about it 
							
						 
						
							2020-07-24 09:55:47 +01:00  
				
					
						
							
							
								 
						
							
							
								5cdca53aa0 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge different Resource implementation classes ( #7732 )  
							
							
							
						 
						
							2020-07-03 19:02:19 +01:00  
				
					
						
							
							
								 
						
							
							
								a3f11567d9 
								
									
								
							
								 
							
						 
						
							
							
								
								Replace all remaining six usage with native Python 3 equivalents ( #7704 )  
							
							
							
						 
						
							2020-06-16 08:51:47 -04:00  
				
					
						
							
							
								 
						
							
							
								03619324fc 
								
									
								
							
								 
							
						 
						
							
							
								
								Create a ListenerConfig object ( #7681 )  
							
							... 
							
							
							
							This ended up being a bit more invasive than I'd hoped for (not helped by
generic_worker duplicating some of the code from homeserver), but hopefully
it's an improvement.
The idea is that, rather than storing unstructured `dict`s in the config for
the listener configurations, we instead parse it into a structured
`ListenerConfig` object. 
							
						 
						
							2020-06-16 12:44:07 +01:00  
				
					
						
							
							
								 
						
							
							
								2901f54359 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix missing CORS headers on OPTION responses ( #7560 )  
							
							... 
							
							
							
							Broke in #7534 . 
							
						 
						
							2020-05-22 17:42:39 +01:00  
				
					
						
							
							
								 
						
							
							
								4429764c9f 
								
									
								
							
								 
							
						 
						
							
							
								
								Return 200 OK for all OPTIONS requests ( #7534 )  
							
							
							
						 
						
							2020-05-22 09:30:07 -04:00  
				
					
						
							
							
								 
						
							
							
								8f5d7302ac 
								
									
								
							
								 
							
						 
						
							
							
								
								Implement RedirectException ( #6687 )  
							
							... 
							
							
							
							Allow REST endpoint implemnentations to raise a RedirectException, which will
redirect the user's browser to a given location. 
							
						 
						
							2020-01-15 15:58:55 +00:00  
				
					
						
							
							
								 
						
							
							
								4548d1f87e 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove unnecessary parentheses around return statements  ( #5931 )  
							
							... 
							
							
							
							Python will return a tuple whether there are parentheses around the returned values or not.
I'm just sick of my editor complaining about this all over the place :) 
							
						 
						
							2019-08-30 16:28:26 +01:00  
				
					
						
							
							
								 
						
							
							
								cf2972c818 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix servlet metric names ( #5734 )  
							
							... 
							
							
							
							* Fix servlet metric names
Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Remove redundant check
* Cover all return paths 
							
						 
						
							2019-07-24 13:07:35 +01:00  
				
					
						
							
							
								 
						
							
							
								463b072b12 
								
									
								
							
								 
							
						 
						
							
							
								
								Move logging utilities out of the side drawer of util/ and into logging/ ( #5606 )  
							
							
							
						 
						
							2019-07-04 00:07:04 +10:00  
				
					
						
							
							
								 
						
							
							
								32e7c9e7f2 
								
									
								
							
								 
							
						 
						
							
							
								
								Run Black. ( #5482 )  
							
							
							
						 
						
							2019-06-20 19:32:02 +10:00  
				
					
						
							
							
								 
						
							
							
								58f6c48183 
								
									
								
							
								 
							
						 
						
							
							
								
								Use native UPSERTs where possible ( #4306 )  
							
							
							
						 
						
							2019-01-24 21:31:54 +11:00  
				
					
						
							
							
								 
						
							
							
								884a561447 
								
							
								 
							
						 
						
							
							
								
								Fix some tests which leaked logcontexts  
							
							
							
						 
						
							2018-11-19 17:07:01 +00:00  
				
					
						
							
							
								 
						
							
							
								e62f7f17b3 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove some boilerplate in tests ( #4156 )  
							
							
							
						 
						
							2018-11-07 03:00:00 +11:00  
				
					
						
							
							
								 
						
							
							
								aeca5a5ed5 
								
									
								
							
								 
							
						 
						
							
							
								
								Add a regression test for logging on failed connections ( #3912 )  
							
							
							
						 
						
							2018-09-20 16:28:18 +10:00  
				
					
						
							
							
								 
						
							
							
								a87af25fbb 
								
							
								 
							
						 
						
							
							
								
								Fix the tests  
							
							
							
						 
						
							2018-08-15 15:12:23 +01:00  
				
					
						
							
							
								 
						
							
							
								99dd975dae 
								
									
								
							
								 
							
						 
						
							
							
								
								Run tests under PostgreSQL ( #3423 )  
							
							
							
						 
						
							2018-08-13 16:47:46 +10:00  
				
					
						
							
							
								 
						
							
							
								2511f3f8a0 
								
									
								
							
								 
							
						 
						
							
							
								
								Test fixes for Python 3 ( #3647 )  
							
							
							
						 
						
							2018-08-09 12:22:01 +10:00  
				
					
						
							
							
								 
						
							
							
								bc006b3c9d 
								
									
								
							
								 
							
						 
						
							
							
								
								Refactor REST API tests to use explicit reactors ( #3351 )  
							
							
							
						 
						
							2018-07-17 20:43:18 +10:00  
				
					
						
							
							
								 
						
							
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
				
					
						
							
							
								 
						
							
							
								cd6bcdaf87 
								
									
								
							
								 
							
						 
						
							
							
								
								Better testing framework for homeserver-using things ( #3446 )  
							
							
							
						 
						
							2018-06-27 10:37:24 +01:00