Added an exception handler on CreateObject handler, just in case there's an exception being thrown that is silently being ignored by the http server. (Trying to catch Melanie's problem with attachments on TPs)
parent
7cfb3d7e96
commit
796216e44f
|
@ -84,6 +84,8 @@ namespace OpenSim.Server.Handlers.Simulation
|
|||
return responsedata;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
// Next, let's parse the verb
|
||||
string method = (string)request["http-method"];
|
||||
if (method.Equals("POST"))
|
||||
|
@ -105,11 +107,20 @@ namespace OpenSim.Server.Handlers.Simulation
|
|||
{
|
||||
m_log.InfoFormat("[OBJECT HANDLER]: method {0} not supported in object message", method);
|
||||
responsedata["int_response_code"] = HttpStatusCode.MethodNotAllowed;
|
||||
responsedata["str_response_string"] = "Mthod not allowed";
|
||||
responsedata["str_response_string"] = "Method not allowed";
|
||||
|
||||
return responsedata;
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.WarnFormat("[OBJECT HANDLER]: Caught exception {0}", e.StackTrace);
|
||||
responsedata["int_response_code"] = HttpStatusCode.InternalServerError;
|
||||
responsedata["str_response_string"] = "Internal server error";
|
||||
|
||||
return responsedata;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected void DoObjectPost(Hashtable request, Hashtable responsedata, UUID regionID)
|
||||
|
|
Loading…
Reference in New Issue