Better error handling in AssetServerPostHandler. Invalid XML causes an InvalidOperationException, not an XmlException
							parent
							
								
									614b9e14c4
								
							
						
					
					
						commit
						ef262799ca
					
				| 
						 | 
				
			
			@ -64,7 +64,7 @@ namespace OpenSim.Server.Handlers.Asset
 | 
			
		|||
            {
 | 
			
		||||
                asset = (AssetBase)xs.Deserialize(request);
 | 
			
		||||
            }
 | 
			
		||||
            catch (XmlException)
 | 
			
		||||
            catch (Exception)
 | 
			
		||||
            {
 | 
			
		||||
                httpResponse.StatusCode = (int)HttpStatusCode.BadRequest;
 | 
			
		||||
                return null;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue