From 695780375924693105aa9b5a06bfe81a28393373 Mon Sep 17 00:00:00 2001 From: diva Date: Mon, 30 Mar 2009 17:34:36 +0000 Subject: Sigh. Manual data typing grief. --- .../Framework/Communications/Services/HGInventoryService.cs | 3 ++- .../Framework/Communications/Services/HGLoginAuthService.cs | 13 +++---------- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'OpenSim/Framework/Communications/Services') diff --git a/OpenSim/Framework/Communications/Services/HGInventoryService.cs b/OpenSim/Framework/Communications/Services/HGInventoryService.cs index eef9e80..b01c30e 100644 --- a/OpenSim/Framework/Communications/Services/HGInventoryService.cs +++ b/OpenSim/Framework/Communications/Services/HGInventoryService.cs @@ -490,7 +490,7 @@ namespace OpenSim.Framework.Communications.Services // This is the meaning of POST agent // Check Auth Token - if (!(m_userService is IAuthentication)) + if ((m_userService != null) && !(m_userService is IAuthentication)) { m_log.Debug("[HGStandaloneInvService]: UserService is not IAuthentication. Denying access to inventory."); responsedata["int_response_code"] = 501; @@ -499,6 +499,7 @@ namespace OpenSim.Framework.Communications.Services } bool success = VerifyKey(userID, authToken); + m_log.Debug("[HGStandaloneInvService]: Key verification returned " + success); if (success) { diff --git a/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs b/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs index cd4ca5c..72e2dfb 100644 --- a/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs +++ b/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs @@ -161,14 +161,6 @@ namespace OpenSim.Framework.Communications.Services public XmlRpcResponse XmlRpcVerifyKeyMethod(XmlRpcRequest request) { - foreach (object o in request.Params) - { - if (o != null) - m_log.Debug(" >> Param " + o.ToString()); - else - m_log.Debug(" >> Null"); - } - bool success = false; if (request.Params.Count >= 2) @@ -180,7 +172,7 @@ namespace OpenSim.Framework.Communications.Services { authKey = (string)request.Params[1]; - m_log.InfoFormat("[HGLOGIN] HGVerifyKey called with key ", authKey); + m_log.InfoFormat("[HGLOGIN] HGVerifyKey called with key {0}", authKey); if (!(m_userManager is IAuthentication)) { @@ -193,8 +185,9 @@ namespace OpenSim.Framework.Communications.Services } } + m_log.DebugFormat("[HGLOGIN]: Response to VerifyKey is {0}", success); XmlRpcResponse response = new XmlRpcResponse(); - response.Value = (string)success.ToString(); + response.Value = success; return response; } -- cgit v1.1