a134c572a6 
								
							
								 
							
						 
						
							
							
								
								Stringify exceptions for keys/{query,claim}  
							
							... 
							
							
							
							Make sure we stringify any exceptions we return from keys/query and keys/claim,
to avoid a 'not JSON serializable' error later
Fixes  #3010  
							
						 
						
							2018-03-27 17:15:06 +01:00  
				
					
						
							
							
								 
						
							
							
								c2a5cf2fe3 
								
							
								 
							
						 
						
							
							
								
								factor out exception handling for keys/claim and keys/query  
							
							... 
							
							
							
							this stuff is badly c&p'ed 
							
						 
						
							2018-03-27 17:11:23 +01:00  
				
					
						
							
							
								 
						
							
							
								fa72803490 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' of github.com:matrix-org/synapse into develop  
							
							
							
						 
						
							2018-03-19 11:41:01 +00:00  
				
					
						
							
							
								 
						
							
							
								926ba76e23 
								
							
								 
							
						 
						
							
							
								
								Replace ujson with simplejson  
							
							
							
						 
						
							2018-03-15 23:43:31 +00:00  
				
					
						
							
							
								 
						
							
							
								cb9f8e527c 
								
							
								 
							
						 
						
							
							
								
								s/replication_client/federation_client/  
							
							
							
						 
						
							2018-03-13 13:26:52 +00:00  
				
					
						
							
							
								 
						
							
							
								265b993b8a 
								
							
								 
							
						 
						
							
							
								
								Split replication layer into two  
							
							
							
						 
						
							2018-03-13 10:55:47 +00:00  
				
					
						
							
							
								 
						
							
							
								c3f79c9da5 
								
							
								 
							
						 
						
							
							
								
								Split out edu/query registration to a separate class  
							
							
							
						 
						
							2018-03-13 10:24:27 +00:00  
				
					
						
							
							
								 
						
							
							
								ab9f844aaf 
								
									
								
							
								 
							
						 
						
							
							
								
								Add federation_domain_whitelist option ( #2820 )  
							
							... 
							
							
							
							Add federation_domain_whitelist
gives a way to restrict which domains your HS is allowed to federate with.
useful mainly for gracefully preventing a private but internet-connected HS from trying to federate to the wider public Matrix network 
							
						 
						
							2018-01-22 19:11:18 +01:00  
				
					
						
							
							
								 
						
							
							
								a5213df1f7 
								
							
								 
							
						 
						
							
							
								
								Sanity checking for user ids  
							
							... 
							
							
							
							Check the user_id passed to a couple of APIs for validity, to avoid
"IndexError: list index out of range" exception which looks scary and results
in a 500 rather than a more useful error.
Fixes  #1432 , among other things 
							
						 
						
							2018-01-17 14:28:54 +00:00  
				
					
						
							
							
								 
						
							
							
								aedaba018f 
								
							
								 
							
						 
						
							
							
								
								Replace some instances of preserve_context_over_deferred  
							
							
							
						 
						
							2017-05-09 19:04:56 +01:00  
				
					
						
							
							
								 
						
							
							
								de042b3b88 
								
							
								 
							
						 
						
							
							
								
								Do some logging when one-time-keys get claimed  
							
							... 
							
							
							
							might help us figure out if https://github.com/vector-im/riot-web/issues/3868 
has happened. 
							
						 
						
							2017-05-09 19:04:56 +01:00  
				
					
						
							
							
								 
						
							
							
								a7e9d8762d 
								
							
								 
							
						 
						
							
							
								
								Allow clients to upload one-time-keys with new sigs  
							
							... 
							
							
							
							When a client retries a key upload, don't give an error if the signature has
changed (but the key is the same).
Fixes https://github.com/vector-im/riot-android/issues/1208 , hopefully. 
							
						 
						
							2017-05-09 19:04:56 +01:00  
				
					
						
							
							
								 
						
							
							
								9397edb28b 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2050  from matrix-org/rav/federation_backoff  
							
							... 
							
							
							
							push federation retry limiter down to matrixfederationclient 
							
						 
						
							2017-03-23 22:27:01 +00:00  
				
					
						
							
							
								 
						
							
							
								4bd597d9fc 
								
							
								 
							
						 
						
							
							
								
								push federation retry limiter down to matrixfederationclient  
							
							... 
							
							
							
							rather than having to instrument everywhere we make a federation call,
make the MatrixFederationHttpClient manage the retry limiter. 
							
						 
						
							2017-03-23 09:28:46 +00:00  
				
					
						
							
							
								 
						
							
							
								e08f81d96a 
								
							
								 
							
						 
						
							
							
								
								Add a missing yield in device key upload  
							
							... 
							
							
							
							(this would only very very rarely actually be a useful thing, so the main
problem was the logcontext leak...) 
							
						 
						
							2017-03-23 00:16:43 +00:00  
				
					
						
							
							
								 
						
							
							
								c7a26b7c32 
								
							
								 
							
						 
						
							
							
								
								Fix unit tests  
							
							
							
						 
						
							2017-01-30 17:11:24 +00:00  
				
					
						
							
							
								 
						
							
							
								c2c9a78db9 
								
							
								 
							
						 
						
							
							
								
								Noop device key changes if they're the same  
							
							
							
						 
						
							2017-01-30 16:55:04 +00:00  
				
					
						
							
							
								 
						
							
							
								fbfad76c03 
								
							
								 
							
						 
						
							
							
								
								Add comments  
							
							
							
						 
						
							2017-01-26 16:33:21 +00:00  
				
					
						
							
							
								 
						
							
							
								c974116f19 
								
							
								 
							
						 
						
							
							
								
								Implement device key caching over federation  
							
							
							
						 
						
							2017-01-26 16:07:24 +00:00  
				
					
						
							
							
								 
						
							
							
								2367c5568c 
								
							
								 
							
						 
						
							
							
								
								Add basic implementation of local device list changes  
							
							
							
						 
						
							2017-01-25 14:27:27 +00:00  
				
					
						
							
							
								 
						
							
							
								deca951241 
								
							
								 
							
						 
						
							
							
								
								Remove unused import  
							
							
							
						 
						
							2016-12-12 09:24:35 +00:00  
				
					
						
							
							
								 
						
							
							
								efa4ccfaee 
								
							
								 
							
						 
						
							
							
								
								E2E key query: handle federation fails  
							
							... 
							
							
							
							Don't fail the whole request if we can't connect to a particular server. 
							
						 
						
							2016-12-09 18:31:01 +00:00  
				
					
						
							
							
								 
						
							
							
								ad816b0add 
								
							
								 
							
						 
						
							
							
								
								Limit how often we ask for keys from dead servers  
							
							
							
						 
						
							2016-09-13 11:53:50 +01:00  
				
					
						
							
							
								 
						
							
							
								18ab019a4a 
								
							
								 
							
						 
						
							
							
								
								Move the E2E key handling into the e2e handler  
							
							
							
						 
						
							2016-09-13 11:35:35 +01:00  
				
					
						
							
							
								 
						
							
							
								949c2c5435 
								
							
								 
							
						 
						
							
							
								
								Add a timeout parameter for end2end key queries.  
							
							... 
							
							
							
							Add a timeout parameter for controlling how long synapse will wait
for responses from remote servers. For servers that fail include how
they failed to make it easier to debug.
Fetch keys from different servers in parallel rather than in series.
Set the default timeout to 10s. 
							
						 
						
							2016-09-12 18:17:09 +01:00  
				
					
						
							
							
								 
						
							
							
								f131cd9e53 
								
							
								 
							
						 
						
							
							
								
								keys/query: Omit device displayname if null  
							
							... 
							
							
							
							... which makes it more consistent with user displaynames. 
							
						 
						
							2016-08-04 10:59:51 +01:00  
				
					
						
							
							
								 
						
							
							
								68264d7404 
								
							
								 
							
						 
						
							
							
								
								Include device name in /keys/query response  
							
							... 
							
							
							
							Add an 'unsigned' section which includes the device display name. 
							
						 
						
							2016-08-03 15:42:08 +01:00  
				
					
						
							
							
								 
						
							
							
								91fa69e029 
								
							
								 
							
						 
						
							
							
								
								keys/query: return all users which were asked for  
							
							... 
							
							
							
							In the situation where all of a user's devices get deleted, we want to
indicate this to a client, so we want to return an empty dictionary, rather
than nothing at all. 
							
						 
						
							2016-08-03 15:41:44 +01:00  
				
					
						
							
							
								 
						
							
							
								a843868fe9 
								
							
								 
							
						 
						
							
							
								
								E2eKeysHandler: minor tweaks  
							
							... 
							
							
							
							PR feedback 
							
						 
						
							2016-08-03 14:24:33 +01:00  
				
					
						
							
							
								 
						
							
							
								1efee2f52b 
								
							
								 
							
						 
						
							
							
								
								E2E keys: Make federation query share code with client query  
							
							... 
							
							
							
							Refactor the e2e query handler to separate out the local query, and then make
the federation handler use it. 
							
						 
						
							2016-08-02 18:12:00 +01:00  
				
					
						
							
							
								 
						
							
							
								986615b0b2 
								
							
								 
							
						 
						
							
							
								
								Move e2e query logic into a handler  
							
							
							
						 
						
							2016-08-01 18:02:07 +01:00