From 610313ea6499f252e488f46d39f781b6e853dab7 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 19 Sep 2008 01:11:40 +0000 Subject: * 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. --- .../Environment/Modules/InterGrid/OpenGridProtocolModule.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs') 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 //int RegionPort = (int)reg.HttpPort; UUID RemoteAgentID = requestMap["agent_id"].AsUUID(); - + // will be used in the future. The client always connects with the aditi agentid currently UUID LocalAgentID = RemoteAgentID; @@ -342,6 +342,15 @@ namespace OpenSim.Region.Environment.Modules.InterGrid UpdateOGPState(LocalAgentID, userState); LLSDMap responseMap = new LLSDMap(); + + if (RemoteAgentID == UUID.Zero) + { + responseMap["connect"] = LLSD.FromBoolean(false); + responseMap["message"] = LLSD.FromString("No agent ID was specified in rez_avatar/request"); + m_log.Error("[OGP]: rez_avatar/request failed because no avatar UUID was provided in the request body"); + return responseMap; + } + responseMap["sim_host"] = LLSD.FromString(reg.ExternalHostName); // DEPRECIATED -- cgit v1.1