aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-09-19 01:11:40 +0000
committerTeravus Ovares2008-09-19 01:11:40 +0000
commit610313ea6499f252e488f46d39f781b6e853dab7 (patch)
tree6f6ff154fda25e51bdea57867e434d7b0366cd54 /OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
parent* Switches content type from application/xml+llsd to application/llsd+xml on ... (diff)
downloadopensim-SC_OLD-610313ea6499f252e488f46d39f781b6e853dab7.zip
opensim-SC_OLD-610313ea6499f252e488f46d39f781b6e853dab7.tar.gz
opensim-SC_OLD-610313ea6499f252e488f46d39f781b6e853dab7.tar.bz2
opensim-SC_OLD-610313ea6499f252e488f46d39f781b6e853dab7.tar.xz
* Added null exception handler where we couldn't locate a user data record in the cache for the user
* More OGP tweaks to make it play nice in an error condition. * Still Experimental.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
index 1fd559e..0462427 100644
--- a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
+++ b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
@@ -312,7 +312,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
312 //int RegionPort = (int)reg.HttpPort; 312 //int RegionPort = (int)reg.HttpPort;
313 313
314 UUID RemoteAgentID = requestMap["agent_id"].AsUUID(); 314 UUID RemoteAgentID = requestMap["agent_id"].AsUUID();
315 315
316 // will be used in the future. The client always connects with the aditi agentid currently 316 // will be used in the future. The client always connects with the aditi agentid currently
317 UUID LocalAgentID = RemoteAgentID; 317 UUID LocalAgentID = RemoteAgentID;
318 318
@@ -342,6 +342,15 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
342 UpdateOGPState(LocalAgentID, userState); 342 UpdateOGPState(LocalAgentID, userState);
343 343
344 LLSDMap responseMap = new LLSDMap(); 344 LLSDMap responseMap = new LLSDMap();
345
346 if (RemoteAgentID == UUID.Zero)
347 {
348 responseMap["connect"] = LLSD.FromBoolean(false);
349 responseMap["message"] = LLSD.FromString("No agent ID was specified in rez_avatar/request");
350 m_log.Error("[OGP]: rez_avatar/request failed because no avatar UUID was provided in the request body");
351 return responseMap;
352 }
353
345 responseMap["sim_host"] = LLSD.FromString(reg.ExternalHostName); 354 responseMap["sim_host"] = LLSD.FromString(reg.ExternalHostName);
346 355
347 // DEPRECIATED 356 // DEPRECIATED