diff options
author | Melanie | 2011-11-17 19:04:27 +0000 |
---|---|---|
committer | Melanie | 2011-11-17 19:04:27 +0000 |
commit | 31736b1aac0387e51fe37ea9bab2e2e8c86988b6 (patch) | |
tree | 14fbdc5f9b677185db1fe8080dafe28796c09336 /OpenSim/Services | |
parent | Merge branch 'master' into bigmerge (diff) | |
parent | Stop OdePrim and OdeCharacter insanely overriding set LocalID to set their ow... (diff) | |
download | opensim-SC_OLD-31736b1aac0387e51fe37ea9bab2e2e8c86988b6.zip opensim-SC_OLD-31736b1aac0387e51fe37ea9bab2e2e8c86988b6.tar.gz opensim-SC_OLD-31736b1aac0387e51fe37ea9bab2e2e8c86988b6.tar.bz2 opensim-SC_OLD-31736b1aac0387e51fe37ea9bab2e2e8c86988b6.tar.xz |
Merge branch 'master' into bigmerge
Conflicts:
OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
Diffstat (limited to 'OpenSim/Services')
3 files changed, 27 insertions, 28 deletions
diff --git a/OpenSim/Services/Connectors/Friends/FriendsServiceConnector.cs b/OpenSim/Services/Connectors/Friends/FriendsServiceConnector.cs index c5ae0c0..41361ab 100644 --- a/OpenSim/Services/Connectors/Friends/FriendsServiceConnector.cs +++ b/OpenSim/Services/Connectors/Friends/FriendsServiceConnector.cs | |||
@@ -67,7 +67,7 @@ namespace OpenSim.Services.Connectors.Friends | |||
67 | IConfig gridConfig = source.Configs["FriendsService"]; | 67 | IConfig gridConfig = source.Configs["FriendsService"]; |
68 | if (gridConfig == null) | 68 | if (gridConfig == null) |
69 | { | 69 | { |
70 | m_log.Error("[FRIENDS CONNECTOR]: FriendsService missing from OpenSim.ini"); | 70 | m_log.Error("[FRIENDS SERVICE CONNECTOR]: FriendsService missing from OpenSim.ini"); |
71 | throw new Exception("Friends connector init error"); | 71 | throw new Exception("Friends connector init error"); |
72 | } | 72 | } |
73 | 73 | ||
@@ -76,7 +76,7 @@ namespace OpenSim.Services.Connectors.Friends | |||
76 | 76 | ||
77 | if (serviceURI == String.Empty) | 77 | if (serviceURI == String.Empty) |
78 | { | 78 | { |
79 | m_log.Error("[FRIENDS CONNECTOR]: No Server URI named in section FriendsService"); | 79 | m_log.Error("[FRIENDS SERVICE CONNECTOR]: No Server URI named in section FriendsService"); |
80 | throw new Exception("Friends connector init error"); | 80 | throw new Exception("Friends connector init error"); |
81 | } | 81 | } |
82 | m_ServerURI = serviceURI; | 82 | m_ServerURI = serviceURI; |
@@ -127,7 +127,7 @@ namespace OpenSim.Services.Connectors.Friends | |||
127 | 127 | ||
128 | List<FriendInfo> finfos = new List<FriendInfo>(); | 128 | List<FriendInfo> finfos = new List<FriendInfo>(); |
129 | Dictionary<string, object>.ValueCollection finfosList = replyData.Values; | 129 | Dictionary<string, object>.ValueCollection finfosList = replyData.Values; |
130 | //m_log.DebugFormat("[FRIENDS CONNECTOR]: get neighbours returned {0} elements", rinfosList.Count); | 130 | //m_log.DebugFormat("[FRIENDS SERVICE CONNECTOR]: get neighbours returned {0} elements", rinfosList.Count); |
131 | foreach (object f in finfosList) | 131 | foreach (object f in finfosList) |
132 | { | 132 | { |
133 | if (f is Dictionary<string, object>) | 133 | if (f is Dictionary<string, object>) |
@@ -136,7 +136,7 @@ namespace OpenSim.Services.Connectors.Friends | |||
136 | finfos.Add(finfo); | 136 | finfos.Add(finfo); |
137 | } | 137 | } |
138 | else | 138 | else |
139 | m_log.DebugFormat("[FRIENDS CONNECTOR]: GetFriends {0} received invalid response type {1}", | 139 | m_log.DebugFormat("[FRIENDS SERVICE CONNECTOR]: GetFriends {0} received invalid response type {1}", |
140 | PrincipalID, f.GetType()); | 140 | PrincipalID, f.GetType()); |
141 | } | 141 | } |
142 | 142 | ||
@@ -145,14 +145,14 @@ namespace OpenSim.Services.Connectors.Friends | |||
145 | } | 145 | } |
146 | 146 | ||
147 | else | 147 | else |
148 | m_log.DebugFormat("[FRIENDS CONNECTOR]: GetFriends {0} received null response", | 148 | m_log.DebugFormat("[FRIENDS SERVICE CONNECTOR]: GetFriends {0} received null response", |
149 | PrincipalID); | 149 | PrincipalID); |
150 | 150 | ||
151 | } | 151 | } |
152 | } | 152 | } |
153 | catch (Exception e) | 153 | catch (Exception e) |
154 | { | 154 | { |
155 | m_log.DebugFormat("[FRIENDS CONNECTOR]: Exception when contacting friends server: {0}", e.Message); | 155 | m_log.DebugFormat("[FRIENDS SERVICE CONNECTOR]: Exception when contacting friends server: {0}", e.Message); |
156 | } | 156 | } |
157 | 157 | ||
158 | return new FriendInfo[0]; | 158 | return new FriendInfo[0]; |
@@ -175,7 +175,7 @@ namespace OpenSim.Services.Connectors.Friends | |||
175 | } | 175 | } |
176 | catch (Exception e) | 176 | catch (Exception e) |
177 | { | 177 | { |
178 | m_log.DebugFormat("[FRIENDS CONNECTOR]: Exception when contacting friends server: {0}", e.Message); | 178 | m_log.DebugFormat("[FRIENDS SERVICE CONNECTOR]: Exception when contacting friends server: {0}", e.Message); |
179 | return false; | 179 | return false; |
180 | } | 180 | } |
181 | 181 | ||
@@ -190,11 +190,11 @@ namespace OpenSim.Services.Connectors.Friends | |||
190 | return success; | 190 | return success; |
191 | } | 191 | } |
192 | else | 192 | else |
193 | m_log.DebugFormat("[FRIENDS CONNECTOR]: StoreFriend {0} {1} received null response", | 193 | m_log.DebugFormat("[FRIENDS SERVICE CONNECTOR]: StoreFriend {0} {1} received null response", |
194 | PrincipalID, Friend); | 194 | PrincipalID, Friend); |
195 | } | 195 | } |
196 | else | 196 | else |
197 | m_log.DebugFormat("[FRIENDS CONNECTOR]: StoreFriend received null reply"); | 197 | m_log.DebugFormat("[FRIENDS SERVICE CONNECTOR]: StoreFriend received null reply"); |
198 | 198 | ||
199 | return false; | 199 | return false; |
200 | 200 | ||
@@ -231,7 +231,7 @@ namespace OpenSim.Services.Connectors.Friends | |||
231 | } | 231 | } |
232 | catch (Exception e) | 232 | catch (Exception e) |
233 | { | 233 | { |
234 | m_log.DebugFormat("[FRIENDS CONNECTOR]: Exception when contacting friends server: {0}", e.Message); | 234 | m_log.DebugFormat("[FRIENDS SERVICE CONNECTOR]: Exception when contacting friends server: {0}", e.Message); |
235 | return false; | 235 | return false; |
236 | } | 236 | } |
237 | 237 | ||
@@ -246,11 +246,11 @@ namespace OpenSim.Services.Connectors.Friends | |||
246 | return success; | 246 | return success; |
247 | } | 247 | } |
248 | else | 248 | else |
249 | m_log.DebugFormat("[FRIENDS CONNECTOR]: DeleteFriend {0} {1} received null response", | 249 | m_log.DebugFormat("[FRIENDS SERVICE CONNECTOR]: DeleteFriend {0} {1} received null response", |
250 | PrincipalID, Friend); | 250 | PrincipalID, Friend); |
251 | } | 251 | } |
252 | else | 252 | else |
253 | m_log.DebugFormat("[FRIENDS CONNECTOR]: DeleteFriend received null reply"); | 253 | m_log.DebugFormat("[FRIENDS SERVICE CONNECTOR]: DeleteFriend received null reply"); |
254 | 254 | ||
255 | return false; | 255 | return false; |
256 | } | 256 | } |
diff --git a/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs b/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs index 4ffa68c..d0a20fc 100644 --- a/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs +++ b/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs | |||
@@ -134,11 +134,11 @@ namespace OpenSim.Services.Connectors.Friends | |||
134 | private bool Call(GridRegion region, Dictionary<string, object> sendData) | 134 | private bool Call(GridRegion region, Dictionary<string, object> sendData) |
135 | { | 135 | { |
136 | string reqString = ServerUtils.BuildQueryString(sendData); | 136 | string reqString = ServerUtils.BuildQueryString(sendData); |
137 | //m_log.DebugFormat("[FRIENDS CONNECTOR]: queryString = {0}", reqString); | 137 | //m_log.DebugFormat("[FRIENDS SIM CONNECTOR]: queryString = {0}", reqString); |
138 | if (region == null) | 138 | if (region == null) |
139 | return false; | 139 | return false; |
140 | 140 | ||
141 | m_log.DebugFormat("[FRIENDS CONNECTOR]: region: {0}", region.ExternalHostName + ":" + region.HttpPort); | 141 | m_log.DebugFormat("[FRIENDS SIM CONNECTOR]: region: {0}", region.ExternalHostName + ":" + region.HttpPort); |
142 | try | 142 | try |
143 | { | 143 | { |
144 | string url = "http://" + region.ExternalHostName + ":" + region.HttpPort; | 144 | string url = "http://" + region.ExternalHostName + ":" + region.HttpPort; |
@@ -157,15 +157,15 @@ namespace OpenSim.Services.Connectors.Friends | |||
157 | return false; | 157 | return false; |
158 | } | 158 | } |
159 | else | 159 | else |
160 | m_log.DebugFormat("[FRIENDS CONNECTOR]: reply data does not contain result field"); | 160 | m_log.DebugFormat("[FRIENDS SIM CONNECTOR]: reply data does not contain result field"); |
161 | 161 | ||
162 | } | 162 | } |
163 | else | 163 | else |
164 | m_log.DebugFormat("[FRIENDS CONNECTOR]: received empty reply"); | 164 | m_log.DebugFormat("[FRIENDS SIM CONNECTOR]: received empty reply"); |
165 | } | 165 | } |
166 | catch (Exception e) | 166 | catch (Exception e) |
167 | { | 167 | { |
168 | m_log.DebugFormat("[FRIENDS CONNECTOR]: Exception when contacting remote sim: {0}", e.ToString()); | 168 | m_log.DebugFormat("[FRIENDS SIM CONNECTOR]: Exception when contacting remote sim: {0}", e.ToString()); |
169 | } | 169 | } |
170 | 170 | ||
171 | return false; | 171 | return false; |
diff --git a/OpenSim/Services/HypergridService/GatekeeperService.cs b/OpenSim/Services/HypergridService/GatekeeperService.cs index 9385b8d..e26383f 100644 --- a/OpenSim/Services/HypergridService/GatekeeperService.cs +++ b/OpenSim/Services/HypergridService/GatekeeperService.cs | |||
@@ -335,22 +335,21 @@ namespace OpenSim.Services.HypergridService | |||
335 | } | 335 | } |
336 | 336 | ||
337 | if (userURL == m_ExternalName) | 337 | if (userURL == m_ExternalName) |
338 | { | ||
338 | return m_UserAgentService.VerifyAgent(aCircuit.SessionID, aCircuit.ServiceSessionID); | 339 | return m_UserAgentService.VerifyAgent(aCircuit.SessionID, aCircuit.ServiceSessionID); |
340 | } | ||
339 | else | 341 | else |
340 | { | 342 | { |
341 | // Object[] args = new Object[] { userURL }; | ||
342 | IUserAgentService userAgentService = new UserAgentServiceConnector(userURL); | 343 | IUserAgentService userAgentService = new UserAgentServiceConnector(userURL); |
343 | if (userAgentService != null) | 344 | |
345 | try | ||
344 | { | 346 | { |
345 | try | 347 | return userAgentService.VerifyAgent(aCircuit.SessionID, aCircuit.ServiceSessionID); |
346 | { | 348 | } |
347 | return userAgentService.VerifyAgent(aCircuit.SessionID, aCircuit.ServiceSessionID); | 349 | catch |
348 | } | 350 | { |
349 | catch | 351 | m_log.DebugFormat("[GATEKEEPER SERVICE]: Unable to contact authentication service at {0}", userURL); |
350 | { | 352 | return false; |
351 | m_log.DebugFormat("[GATEKEEPER SERVICE]: Unable to contact authentication service at {0}", userURL); | ||
352 | return false; | ||
353 | } | ||
354 | } | 353 | } |
355 | } | 354 | } |
356 | 355 | ||