* Applying patch from Mantis #607 - Grid Server crash. Thanks Diva.
parent
f0bfb87979
commit
b40957b57c
|
@ -239,9 +239,10 @@ namespace OpenSim.Grid.GridServer
|
|||
|
||||
Hashtable requestData = (Hashtable)request.Params[0];
|
||||
string myword;
|
||||
if (requestData.ContainsKey("UUID"))
|
||||
LLUUID uuid;
|
||||
if (requestData.ContainsKey("UUID") && LLUUID.TryParse((string)requestData["UUID"], out uuid))
|
||||
{
|
||||
TheSim = getRegion(new LLUUID((string)requestData["UUID"]));
|
||||
TheSim = getRegion(uuid);
|
||||
|
||||
// logToDB((new LLUUID((string)requestData["UUID"])).ToString(),"XmlRpcSimulatorLoginMethod",String.Empty, 5,"Region attempting login with UUID.");
|
||||
}
|
||||
|
@ -275,6 +276,8 @@ namespace OpenSim.Grid.GridServer
|
|||
TheSim.regionUserSendKey = config.UserSendKey;
|
||||
TheSim.regionUserRecvKey = config.UserRecvKey;
|
||||
|
||||
try
|
||||
{
|
||||
TheSim.serverIP = (string)requestData["sim_ip"];
|
||||
TheSim.serverPort = Convert.ToUInt32((string)requestData["sim_port"]);
|
||||
TheSim.httpPort = Convert.ToUInt32((string)requestData["http_port"]);
|
||||
|
@ -282,7 +285,16 @@ namespace OpenSim.Grid.GridServer
|
|||
TheSim.regionLocX = Convert.ToUInt32((string)requestData["region_locx"]);
|
||||
TheSim.regionLocY = Convert.ToUInt32((string)requestData["region_locy"]);
|
||||
TheSim.regionLocZ = 0;
|
||||
TheSim.regionMapTextureID = new LLUUID((string)requestData["map-image-id"]);
|
||||
}
|
||||
catch (FormatException)
|
||||
{
|
||||
m_log.Info("[GRID]: invalid login parameters, ignoring.");
|
||||
responseData["error"] = "Wrong format in login parameters. Please verify them.";
|
||||
return response;
|
||||
}
|
||||
LLUUID textureID = LLUUID.Zero;
|
||||
if (LLUUID.TryParse((string)requestData["map-image-id"], out textureID))
|
||||
TheSim.regionMapTextureID = textureID;
|
||||
|
||||
// part of an initial brutish effort to provide accurate information (as per the xml region spec)
|
||||
// wrt the ownership of a given region
|
||||
|
|
Loading…
Reference in New Issue