diff options
Diffstat (limited to 'OpenSim/Server')
-rw-r--r-- | OpenSim/Server/Base/ServerUtils.cs | 2 | ||||
-rw-r--r-- | OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs | 18 |
2 files changed, 15 insertions, 5 deletions
diff --git a/OpenSim/Server/Base/ServerUtils.cs b/OpenSim/Server/Base/ServerUtils.cs index 0964caa..9d9735e 100644 --- a/OpenSim/Server/Base/ServerUtils.cs +++ b/OpenSim/Server/Base/ServerUtils.cs | |||
@@ -260,7 +260,7 @@ namespace OpenSim.Server.Base | |||
260 | 260 | ||
261 | public static Dictionary<string, object> ParseXmlResponse(string data) | 261 | public static Dictionary<string, object> ParseXmlResponse(string data) |
262 | { | 262 | { |
263 | //m_log.DebugFormat("[XXX]: received xml string: {0}", data); | 263 | m_log.DebugFormat("[XXX]: received xml string: {0}", data); |
264 | 264 | ||
265 | Dictionary<string, object> ret = new Dictionary<string, object>(); | 265 | Dictionary<string, object> ret = new Dictionary<string, object>(); |
266 | 266 | ||
diff --git a/OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs b/OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs index e22328d..08edcbf 100644 --- a/OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs +++ b/OpenSim/Server/Handlers/Grid/GridServerPostHandler.cs | |||
@@ -137,11 +137,21 @@ namespace OpenSim.Server.Handlers.Grid | |||
137 | } | 137 | } |
138 | 138 | ||
139 | Dictionary<string, object> rinfoData = new Dictionary<string, object>(); | 139 | Dictionary<string, object> rinfoData = new Dictionary<string, object>(); |
140 | foreach (KeyValuePair<string, string> kvp in request) | 140 | GridRegion rinfo = null; |
141 | rinfoData[kvp.Key] = kvp.Value; | 141 | try |
142 | GridRegion rinfo = new GridRegion(rinfoData); | 142 | { |
143 | foreach (KeyValuePair<string, string> kvp in request) | ||
144 | rinfoData[kvp.Key] = kvp.Value; | ||
145 | rinfo = new GridRegion(rinfoData); | ||
146 | } | ||
147 | catch (Exception e) | ||
148 | { | ||
149 | m_log.DebugFormat("[GRID HANDLER]: exception unpacking region data: {0}", e); | ||
150 | } | ||
143 | 151 | ||
144 | bool result = m_GridService.RegisterRegion(scopeID, rinfo); | 152 | bool result = false; |
153 | if (rinfo != null) | ||
154 | result = m_GridService.RegisterRegion(scopeID, rinfo); | ||
145 | 155 | ||
146 | if (result) | 156 | if (result) |
147 | return SuccessResult(); | 157 | return SuccessResult(); |