diff options
author | Diva Canto | 2011-02-16 09:57:12 -0800 |
---|---|---|
committer | Diva Canto | 2011-02-16 09:57:12 -0800 |
commit | c6f2d66eae890bae56cdb9acf6b2691fe539b5f0 (patch) | |
tree | 7bb9978c9de4abc23283db2d2ed79ff40b05b811 /OpenSim/Services/Connectors/Simulation | |
parent | XFF capitalization strikes again -- this time in the XMLRPC method. mantis #5386 (diff) | |
download | opensim-SC-c6f2d66eae890bae56cdb9acf6b2691fe539b5f0.zip opensim-SC-c6f2d66eae890bae56cdb9acf6b2691fe539b5f0.tar.gz opensim-SC-c6f2d66eae890bae56cdb9acf6b2691fe539b5f0.tar.bz2 opensim-SC-c6f2d66eae890bae56cdb9acf6b2691fe539b5f0.tar.xz |
Fix bug introduced by Query Access. The response does not come in a packaged _Result field, it comes as simple OSDMap with 2 fields in it.
Also in this commit: comment out irrelevant debug message on AuthService.
Diffstat (limited to 'OpenSim/Services/Connectors/Simulation')
-rw-r--r-- | OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs index f6ee493..8aa88cb 100644 --- a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs +++ b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | |||
@@ -274,7 +274,11 @@ namespace OpenSim.Services.Connectors.Simulation | |||
274 | try | 274 | try |
275 | { | 275 | { |
276 | OSDMap result = WebUtil.ServiceOSDRequest(uri, request, "QUERYACCESS", 10000); | 276 | OSDMap result = WebUtil.ServiceOSDRequest(uri, request, "QUERYACCESS", 10000); |
277 | bool success = result["Success"].AsBoolean(); | 277 | bool success = result["success"].AsBoolean(); |
278 | reason = result["reason"].AsString(); | ||
279 | |||
280 | //m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: QueryAccess to {0} returned {1}", uri, success); | ||
281 | |||
278 | if (!success) | 282 | if (!success) |
279 | { | 283 | { |
280 | if (result.ContainsKey("Message")) | 284 | if (result.ContainsKey("Message")) |
@@ -296,10 +300,6 @@ namespace OpenSim.Services.Connectors.Simulation | |||
296 | return false; | 300 | return false; |
297 | } | 301 | } |
298 | 302 | ||
299 | OSDMap resp = (OSDMap)result["_Result"]; | ||
300 | success = resp["success"].AsBoolean(); | ||
301 | reason = resp["reason"].AsString(); | ||
302 | |||
303 | return success; | 303 | return success; |
304 | } | 304 | } |
305 | catch (Exception e) | 305 | catch (Exception e) |