aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs
diff options
context:
space:
mode:
authorMelanie2012-02-07 23:30:48 +0000
committerMelanie2012-02-07 23:30:48 +0000
commit236e1c45f2f484aa97d5faae149dbc304608f592 (patch)
treef6bcc2b3ceae99a7789a5dc22e5fecfcfe8505e2 /OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs
parentMerge branch 'master' of ssh://3dhosting.de/var/git/careminster (diff)
parentSet UseMeshiesPhysicsMesh = true in [Mesh] by default (diff)
downloadopensim-SC-236e1c45f2f484aa97d5faae149dbc304608f592.zip
opensim-SC-236e1c45f2f484aa97d5faae149dbc304608f592.tar.gz
opensim-SC-236e1c45f2f484aa97d5faae149dbc304608f592.tar.bz2
opensim-SC-236e1c45f2f484aa97d5faae149dbc304608f592.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs')
-rw-r--r--OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs b/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs
index 60f3abe..7815d7d 100644
--- a/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs
+++ b/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs
@@ -138,11 +138,12 @@ namespace OpenSim.Services.Connectors
138 138
139 string reply = string.Empty; 139 string reply = string.Empty;
140 string reqString = ServerUtils.BuildQueryString(sendData); 140 string reqString = ServerUtils.BuildQueryString(sendData);
141 string uri = m_ServerURI + "/accounts";
141 // m_log.DebugFormat("[ACCOUNTS CONNECTOR]: queryString = {0}", reqString); 142 // m_log.DebugFormat("[ACCOUNTS CONNECTOR]: queryString = {0}", reqString);
142 try 143 try
143 { 144 {
144 reply = SynchronousRestFormsRequester.MakeRequest("POST", 145 reply = SynchronousRestFormsRequester.MakeRequest("POST",
145 m_ServerURI + "/accounts", 146 uri,
146 reqString); 147 reqString);
147 if (reply == null || (reply != null && reply == string.Empty)) 148 if (reply == null || (reply != null && reply == string.Empty))
148 { 149 {
@@ -152,7 +153,7 @@ namespace OpenSim.Services.Connectors
152 } 153 }
153 catch (Exception e) 154 catch (Exception e)
154 { 155 {
155 m_log.DebugFormat("[ACCOUNT CONNECTOR]: Exception when contacting accounts server: {0}", e.Message); 156 m_log.DebugFormat("[ACCOUNT CONNECTOR]: Exception when contacting user accounts server at {0}: {1}", uri, e.Message);
156 } 157 }
157 158
158 List<UserAccount> accounts = new List<UserAccount>(); 159 List<UserAccount> accounts = new List<UserAccount>();
@@ -211,11 +212,12 @@ namespace OpenSim.Services.Connectors
211 { 212 {
212 string reply = string.Empty; 213 string reply = string.Empty;
213 string reqString = ServerUtils.BuildQueryString(sendData); 214 string reqString = ServerUtils.BuildQueryString(sendData);
215 string uri = m_ServerURI + "/accounts";
214 // m_log.DebugFormat("[ACCOUNTS CONNECTOR]: queryString = {0}", reqString); 216 // m_log.DebugFormat("[ACCOUNTS CONNECTOR]: queryString = {0}", reqString);
215 try 217 try
216 { 218 {
217 reply = SynchronousRestFormsRequester.MakeRequest("POST", 219 reply = SynchronousRestFormsRequester.MakeRequest("POST",
218 m_ServerURI + "/accounts", 220 uri,
219 reqString); 221 reqString);
220 if (reply == null || (reply != null && reply == string.Empty)) 222 if (reply == null || (reply != null && reply == string.Empty))
221 { 223 {
@@ -225,7 +227,7 @@ namespace OpenSim.Services.Connectors
225 } 227 }
226 catch (Exception e) 228 catch (Exception e)
227 { 229 {
228 m_log.DebugFormat("[ACCOUNT CONNECTOR]: Exception when contacting user account server: {0}", e.Message); 230 m_log.DebugFormat("[ACCOUNT CONNECTOR]: Exception when contacting user accounts server at {0}: {1}", uri, e.Message);
229 } 231 }
230 232
231 Dictionary<string, object> replyData = ServerUtils.ParseXmlResponse(reply); 233 Dictionary<string, object> replyData = ServerUtils.ParseXmlResponse(reply);
@@ -246,11 +248,12 @@ namespace OpenSim.Services.Connectors
246 private bool SendAndGetBoolReply(Dictionary<string, object> sendData) 248 private bool SendAndGetBoolReply(Dictionary<string, object> sendData)
247 { 249 {
248 string reqString = ServerUtils.BuildQueryString(sendData); 250 string reqString = ServerUtils.BuildQueryString(sendData);
251 string uri = m_ServerURI + "/accounts";
249 // m_log.DebugFormat("[ACCOUNTS CONNECTOR]: queryString = {0}", reqString); 252 // m_log.DebugFormat("[ACCOUNTS CONNECTOR]: queryString = {0}", reqString);
250 try 253 try
251 { 254 {
252 string reply = SynchronousRestFormsRequester.MakeRequest("POST", 255 string reply = SynchronousRestFormsRequester.MakeRequest("POST",
253 m_ServerURI + "/accounts", 256 uri,
254 reqString); 257 reqString);
255 if (reply != string.Empty) 258 if (reply != string.Empty)
256 { 259 {
@@ -272,7 +275,7 @@ namespace OpenSim.Services.Connectors
272 } 275 }
273 catch (Exception e) 276 catch (Exception e)
274 { 277 {
275 m_log.DebugFormat("[ACCOUNTS CONNECTOR]: Exception when contacting user account server: {0}", e.Message); 278 m_log.DebugFormat("[ACCOUNT CONNECTOR]: Exception when contacting user accounts server at {0}: {1}", uri, e.Message);
276 } 279 }
277 280
278 return false; 281 return false;