diff options
author | Justin Clark-Casey (justincc) | 2014-07-31 21:20:10 +0100 |
---|---|---|
committer | Justin Clark-Casey | 2014-08-02 00:58:33 +0100 |
commit | a48b3ef97afddbdc5ed3a492bfbe80b94ca7bdcd (patch) | |
tree | e1e4f7ffb7ac929a85f6f193a505039905687a3c | |
parent | Fix bug where calling PUTGROUP on the core groups service without specifying ... (diff) | |
download | opensim-SC-a48b3ef97afddbdc5ed3a492bfbe80b94ca7bdcd.zip opensim-SC-a48b3ef97afddbdc5ed3a492bfbe80b94ca7bdcd.tar.gz opensim-SC-a48b3ef97afddbdc5ed3a492bfbe80b94ca7bdcd.tar.bz2 opensim-SC-a48b3ef97afddbdc5ed3a492bfbe80b94ca7bdcd.tar.xz |
Don't overwrite the null result with the true result is groups service REMOVEAGENTFROMGROUP call has failed because of missing parameters
-rw-r--r-- | OpenSim/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs | 3 | ||||
-rw-r--r-- | OpenSim/Addons/Groups/Remote/GroupsServiceRobustConnector.cs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs b/OpenSim/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs index dc36787..207d810 100644 --- a/OpenSim/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs +++ b/OpenSim/Addons/Groups/Hypergrid/HGGroupsServiceRobustConnector.cs | |||
@@ -210,10 +210,11 @@ namespace OpenSim.Groups | |||
210 | string token = request["AccessToken"].ToString(); | 210 | string token = request["AccessToken"].ToString(); |
211 | 211 | ||
212 | m_GroupsService.RemoveAgentFromGroup(agentID, agentID, groupID, token); | 212 | m_GroupsService.RemoveAgentFromGroup(agentID, agentID, groupID, token); |
213 | |||
214 | result["RESULT"] = "true"; | ||
213 | } | 215 | } |
214 | 216 | ||
215 | //m_log.DebugFormat("[XXX]: resp string: {0}", xmlString); | 217 | //m_log.DebugFormat("[XXX]: resp string: {0}", xmlString); |
216 | result["RESULT"] = "true"; | ||
217 | return Util.UTF8NoBomEncoding.GetBytes(ServerUtils.BuildXmlResponse(result)); | 218 | return Util.UTF8NoBomEncoding.GetBytes(ServerUtils.BuildXmlResponse(result)); |
218 | } | 219 | } |
219 | 220 | ||
diff --git a/OpenSim/Addons/Groups/Remote/GroupsServiceRobustConnector.cs b/OpenSim/Addons/Groups/Remote/GroupsServiceRobustConnector.cs index 95c3208..5cf6ec7 100644 --- a/OpenSim/Addons/Groups/Remote/GroupsServiceRobustConnector.cs +++ b/OpenSim/Addons/Groups/Remote/GroupsServiceRobustConnector.cs | |||
@@ -286,10 +286,11 @@ namespace OpenSim.Groups | |||
286 | string requestingAgentID = request["RequestingAgentID"].ToString(); | 286 | string requestingAgentID = request["RequestingAgentID"].ToString(); |
287 | 287 | ||
288 | m_GroupsService.RemoveAgentFromGroup(requestingAgentID, agentID, groupID); | 288 | m_GroupsService.RemoveAgentFromGroup(requestingAgentID, agentID, groupID); |
289 | |||
290 | result["RESULT"] = "true"; | ||
289 | } | 291 | } |
290 | 292 | ||
291 | //m_log.DebugFormat("[XXX]: resp string: {0}", xmlString); | 293 | //m_log.DebugFormat("[XXX]: resp string: {0}", xmlString); |
292 | result["RESULT"] = "true"; | ||
293 | return Util.UTF8NoBomEncoding.GetBytes(ServerUtils.BuildXmlResponse(result)); | 294 | return Util.UTF8NoBomEncoding.GetBytes(ServerUtils.BuildXmlResponse(result)); |
294 | } | 295 | } |
295 | 296 | ||