55a0c98d16 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #5805  from matrix-org/erikj/validate_state  
							
							... 
							
							
							
							Validate well known state events are state events. 
							
						 
						
							2019-08-01 13:45:48 +01:00  
				
					
						
							
							
								 
						
							
							
								76a58fdcce 
								
							
								 
							
						 
						
							
							
								
								Fix spelling.  
							
							... 
							
							
							
							Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> 
							
						 
						
							2019-08-01 13:17:55 +01:00  
				
					
						
							
							
								 
						
							
							
								dc4d74e44a 
								
							
								 
							
						 
						
							
							
								
								Validate well-known state events are state events.  
							
							... 
							
							
							
							Lets disallow sending things like memberships, topics etc as non-state
events. 
							
						 
						
							2019-07-31 16:36:20 +01:00  
				
					
						
							
							
								 
						
							
							
								f31d4cb7a2 
								
							
								 
							
						 
						
							
							
								
								Don't allow clients to send tombstones that reference the same room  
							
							
							
						 
						
							2019-07-31 15:52:27 +01:00  
				
					
						
							
							
								 
						
							
							
								32e7c9e7f2 
								
									
								
							
								 
							
						 
						
							
							
								
								Run Black. ( #5482 )  
							
							
							
						 
						
							2019-06-20 19:32:02 +10:00  
				
					
						
							
							
								 
						
							
							
								1473058b5e 
								
									
								
							
								 
							
						 
						
							
							
								
								Do checks on aliases for incoming m.room.aliases events ( #5128 )  
							
							... 
							
							
							
							Follow-up to #5124 
Also added a bunch of checks to make sure everything (both the stuff added on #5124  and this PR) works as intended. 
							
						 
						
							2019-05-08 17:01:30 +01:00  
				
					
						
							
							
								 
						
							
							
								54a87a7b08 
								
									
								
							
								 
							
						 
						
							
							
								
								Collect room-version variations into one place ( #4969 )  
							
							... 
							
							
							
							Collect all the things that make room-versions different to one another into
one place, so that it's easier to define new room versions. 
							
						 
						
							2019-04-01 10:24:38 +01:00  
				
					
						
							
							
								 
						
							
							
								610f0830b0 
								
							
								 
							
						 
						
							
							
								
								Don't assert an event must have an event ID  
							
							
							
						 
						
							2019-01-29 18:02:26 +00:00  
				
					
						
							
							
								 
						
							
							
								40638ae7f5 
								
							
								 
							
						 
						
							
							
								
								Remove duplicate checks  
							
							
							
						 
						
							2019-01-29 10:37:40 +00:00  
				
					
						
							
							
								 
						
							
							
								9fa3c6ffa3 
								
							
								 
							
						 
						
							
							
								
								Fix up error messages  
							
							
							
						 
						
							2019-01-29 10:36:46 +00:00  
				
					
						
							
							
								 
						
							
							
								28efc80723 
								
							
								 
							
						 
						
							
							
								
								Fold validate into validate_new  
							
							
							
						 
						
							2019-01-29 10:34:49 +00:00  
				
					
						
							
							
								 
						
							
							
								b872c7b1b4 
								
							
								 
							
						 
						
							
							
								
								Split up event validation between event and builder  
							
							... 
							
							
							
							The validator was being run on the EventBuilder objects, and so the
validator only checked a subset of fields. With the upcoming
EventBuilder refactor even fewer fields will be there to validate.
To get around this we split the validation into those that can be run
against an EventBuilder and those run against a fully fledged event. 
							
						 
						
							2019-01-28 17:00:14 +00:00  
				
					
						
							
							
								 
						
							
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
				
					
						
							
							
								 
						
							
							
								d9fe2b2d9d 
								
							
								 
							
						 
						
							
							
								
								Replace some more comparisons with six  
							
							... 
							
							
							
							plus a bonus b"" string I missed last time
Signed-off-by: Adrian Tschira <nota@notafile.com> 
							
						 
						
							2018-05-19 17:56:31 +02:00  
				
					
						
							
							
								 
						
							
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
				
					
						
							
							
								 
						
							
							
								adb04b1e57 
								
							
								 
							
						 
						
							
							
								
								Update copyright notices  
							
							
							
						 
						
							2015-01-06 13:21:39 +00:00  
				
					
						
							
							
								 
						
							
							
								63810c777d 
								
							
								 
							
						 
						
							
							
								
								Validate message, topic and name event contents  
							
							
							
						 
						
							2014-12-12 11:01:09 +00:00  
				
					
						
							
							
								 
						
							
							
								b245ee34ed 
								
							
								 
							
						 
						
							
							
								
								Add some basic event validation  
							
							
							
						 
						
							2014-12-10 17:59:47 +00:00  
				
					
						
							
							
								 
						
							
							
								8c48450682 
								
							
								 
							
						 
						
							
							
								
								Add PEP8 newlines  
							
							
							
						 
						
							2014-12-09 10:58:31 +00:00  
				
					
						
							
							
								 
						
							
							
								75b4329aaa 
								
							
								 
							
						 
						
							
							
								
								WIP for new way of managing events.  
							
							
							
						 
						
							2014-12-03 16:07:21 +00:00