diff options
author | Melanie Thielker | 2014-06-21 00:39:55 +0200 |
---|---|---|
committer | Melanie Thielker | 2014-06-21 00:39:55 +0200 |
commit | 159fcbf150b7da0e229b29aa7b94793484543d12 (patch) | |
tree | b8c0ff3b4c758a3fba8315b556c923ef4c02a185 /OpenSim/Services/LLLoginService | |
parent | Merge commit '68c8633ba18f0a11cfc0ed04d1d0c7c59e6cec76' (diff) | |
parent | Merge branch 'master' into careminster (diff) | |
download | opensim-SC-159fcbf150b7da0e229b29aa7b94793484543d12.zip opensim-SC-159fcbf150b7da0e229b29aa7b94793484543d12.tar.gz opensim-SC-159fcbf150b7da0e229b29aa7b94793484543d12.tar.bz2 opensim-SC-159fcbf150b7da0e229b29aa7b94793484543d12.tar.xz |
Merge branch 'master' of ssh://3dhosting.de/var/git/careminster
Conflicts:
OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
Diffstat (limited to 'OpenSim/Services/LLLoginService')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 44 | ||||
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 14 | ||||
-rw-r--r-- | OpenSim/Services/LLLoginService/Properties/AssemblyInfo.cs | 2 |
3 files changed, 56 insertions, 4 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index e2f947c..f641955 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs | |||
@@ -196,6 +196,7 @@ namespace OpenSim.Services.LLLoginService | |||
196 | private BuddyList m_buddyList = null; | 196 | private BuddyList m_buddyList = null; |
197 | 197 | ||
198 | private string currency; | 198 | private string currency; |
199 | private string classifiedFee; | ||
199 | 200 | ||
200 | static LLLoginResponse() | 201 | static LLLoginResponse() |
201 | { | 202 | { |
@@ -233,7 +234,7 @@ namespace OpenSim.Services.LLLoginService | |||
233 | GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, | 234 | GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, |
234 | string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, | 235 | string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, |
235 | GridRegion home, IPEndPoint clientIP, string mapTileURL, string profileURL, string openIDURL, string searchURL, string currency, | 236 | GridRegion home, IPEndPoint clientIP, string mapTileURL, string profileURL, string openIDURL, string searchURL, string currency, |
236 | string DSTZone, UUID realID) | 237 | string DSTZone, string destinationsURL, string avatarsURL, UUID realID, string classifiedFee) |
237 | : this() | 238 | : this() |
238 | { | 239 | { |
239 | FillOutInventoryData(invSkel, libService); | 240 | FillOutInventoryData(invSkel, libService); |
@@ -253,14 +254,18 @@ namespace OpenSim.Services.LLLoginService | |||
253 | MapTileURL = mapTileURL; | 254 | MapTileURL = mapTileURL; |
254 | ProfileURL = profileURL; | 255 | ProfileURL = profileURL; |
255 | OpenIDURL = openIDURL; | 256 | OpenIDURL = openIDURL; |
257 | DestinationsURL = destinationsURL; | ||
258 | AvatarsURL = avatarsURL; | ||
256 | 259 | ||
257 | SearchURL = searchURL; | 260 | SearchURL = searchURL; |
258 | Currency = currency; | 261 | Currency = currency; |
262 | ClassifiedFee = classifiedFee; | ||
259 | 263 | ||
260 | FillOutHomeData(pinfo, home); | 264 | FillOutHomeData(pinfo, home); |
261 | LookAt = String.Format("[r{0},r{1},r{2}]", lookAt.X, lookAt.Y, lookAt.Z); | 265 | LookAt = String.Format("[r{0},r{1},r{2}]", lookAt.X, lookAt.Y, lookAt.Z); |
262 | 266 | ||
263 | FillOutRegionData(destination); | 267 | FillOutRegionData(destination); |
268 | // m_log.DebugFormat("[LOGIN RESPONSE] LLLoginResponse create. sizeX=<{0},{1}>", RegionSizeX, RegionSizeY); | ||
264 | 269 | ||
265 | FillOutSeedCap(aCircuit, destination, clientIP); | 270 | FillOutSeedCap(aCircuit, destination, clientIP); |
266 | 271 | ||
@@ -387,6 +392,8 @@ namespace OpenSim.Services.LLLoginService | |||
387 | SimPort = (uint)endPoint.Port; | 392 | SimPort = (uint)endPoint.Port; |
388 | RegionX = (uint)destination.RegionLocX; | 393 | RegionX = (uint)destination.RegionLocX; |
389 | RegionY = (uint)destination.RegionLocY; | 394 | RegionY = (uint)destination.RegionLocY; |
395 | RegionSizeX = destination.RegionSizeX; | ||
396 | RegionSizeY = destination.RegionSizeY; | ||
390 | } | 397 | } |
391 | 398 | ||
392 | private void FillOutSeedCap(AgentCircuitData aCircuit, GridRegion destination, IPEndPoint ipepClient) | 399 | private void FillOutSeedCap(AgentCircuitData aCircuit, GridRegion destination, IPEndPoint ipepClient) |
@@ -470,6 +477,7 @@ namespace OpenSim.Services.LLLoginService | |||
470 | searchURL = String.Empty; | 477 | searchURL = String.Empty; |
471 | 478 | ||
472 | currency = String.Empty; | 479 | currency = String.Empty; |
480 | ClassifiedFee = "0"; | ||
473 | } | 481 | } |
474 | 482 | ||
475 | 483 | ||
@@ -533,6 +541,9 @@ namespace OpenSim.Services.LLLoginService | |||
533 | responseData["message"] = welcomeMessage; | 541 | responseData["message"] = welcomeMessage; |
534 | responseData["region_x"] = (Int32)(RegionX); | 542 | responseData["region_x"] = (Int32)(RegionX); |
535 | responseData["region_y"] = (Int32)(RegionY); | 543 | responseData["region_y"] = (Int32)(RegionY); |
544 | responseData["region_size_x"] = (Int32)RegionSizeX; | ||
545 | responseData["region_size_y"] = (Int32)RegionSizeY; | ||
546 | // m_log.DebugFormat("[LOGIN RESPONSE] returning sizeX=<{0},{1}>", RegionSizeX, RegionSizeY); | ||
536 | 547 | ||
537 | if (searchURL != String.Empty) | 548 | if (searchURL != String.Empty) |
538 | responseData["search"] = searchURL; | 549 | responseData["search"] = searchURL; |
@@ -543,6 +554,12 @@ namespace OpenSim.Services.LLLoginService | |||
543 | if (profileURL != String.Empty) | 554 | if (profileURL != String.Empty) |
544 | responseData["profile-server-url"] = profileURL; | 555 | responseData["profile-server-url"] = profileURL; |
545 | 556 | ||
557 | if (DestinationsURL != String.Empty) | ||
558 | responseData["destination_guide_url"] = DestinationsURL; | ||
559 | |||
560 | if (AvatarsURL != String.Empty) | ||
561 | responseData["avatar_picker_url"] = AvatarsURL; | ||
562 | |||
546 | // We need to send an openid_token back in the response too | 563 | // We need to send an openid_token back in the response too |
547 | if (openIDURL != String.Empty) | 564 | if (openIDURL != String.Empty) |
548 | responseData["openid_url"] = openIDURL; | 565 | responseData["openid_url"] = openIDURL; |
@@ -557,6 +574,9 @@ namespace OpenSim.Services.LLLoginService | |||
557 | // responseData["real_currency"] = currency; | 574 | // responseData["real_currency"] = currency; |
558 | responseData["currency"] = currency; | 575 | responseData["currency"] = currency; |
559 | } | 576 | } |
577 | |||
578 | if (ClassifiedFee != String.Empty) | ||
579 | responseData["classified_fee"] = ClassifiedFee; | ||
560 | 580 | ||
561 | responseData["login"] = "true"; | 581 | responseData["login"] = "true"; |
562 | 582 | ||
@@ -662,6 +682,9 @@ namespace OpenSim.Services.LLLoginService | |||
662 | if (searchURL != String.Empty) | 682 | if (searchURL != String.Empty) |
663 | map["search"] = OSD.FromString(searchURL); | 683 | map["search"] = OSD.FromString(searchURL); |
664 | 684 | ||
685 | if (ClassifiedFee != String.Empty) | ||
686 | map["classified_fee"] = OSD.FromString(ClassifiedFee); | ||
687 | |||
665 | if (m_buddyList != null) | 688 | if (m_buddyList != null) |
666 | { | 689 | { |
667 | map["buddy-list"] = ArrayListToOSDArray(m_buddyList.ToArray()); | 690 | map["buddy-list"] = ArrayListToOSDArray(m_buddyList.ToArray()); |
@@ -917,6 +940,9 @@ namespace OpenSim.Services.LLLoginService | |||
917 | set { regionY = value; } | 940 | set { regionY = value; } |
918 | } | 941 | } |
919 | 942 | ||
943 | public int RegionSizeX { get; private set; } | ||
944 | public int RegionSizeY { get; private set; } | ||
945 | |||
920 | public string SunTexture | 946 | public string SunTexture |
921 | { | 947 | { |
922 | get { return sunTexture; } | 948 | get { return sunTexture; } |
@@ -1073,6 +1099,22 @@ namespace OpenSim.Services.LLLoginService | |||
1073 | set { currency = value; } | 1099 | set { currency = value; } |
1074 | } | 1100 | } |
1075 | 1101 | ||
1102 | public string ClassifiedFee | ||
1103 | { | ||
1104 | get { return classifiedFee; } | ||
1105 | set { classifiedFee = value; } | ||
1106 | } | ||
1107 | |||
1108 | public string DestinationsURL | ||
1109 | { | ||
1110 | get; set; | ||
1111 | } | ||
1112 | |||
1113 | public string AvatarsURL | ||
1114 | { | ||
1115 | get; set; | ||
1116 | } | ||
1117 | |||
1076 | #endregion | 1118 | #endregion |
1077 | 1119 | ||
1078 | public class UserInfo | 1120 | public class UserInfo |
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index ede2353..ed62c43 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -50,6 +50,8 @@ namespace OpenSim.Services.LLLoginService | |||
50 | public class LLLoginService : ILoginService | 50 | public class LLLoginService : ILoginService |
51 | { | 51 | { |
52 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 52 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
53 | private static readonly string LogHeader = "[LLOGIN SERVICE]"; | ||
54 | |||
53 | private static bool Initialized = false; | 55 | private static bool Initialized = false; |
54 | 56 | ||
55 | protected IUserAccountService m_UserAccountService; | 57 | protected IUserAccountService m_UserAccountService; |
@@ -78,6 +80,9 @@ namespace OpenSim.Services.LLLoginService | |||
78 | protected string m_OpenIDURL; | 80 | protected string m_OpenIDURL; |
79 | protected string m_SearchURL; | 81 | protected string m_SearchURL; |
80 | protected string m_Currency; | 82 | protected string m_Currency; |
83 | protected string m_ClassifiedFee; | ||
84 | protected string m_DestinationGuide; | ||
85 | protected string m_AvatarPicker; | ||
81 | 86 | ||
82 | protected string m_AllowedClients; | 87 | protected string m_AllowedClients; |
83 | protected string m_DeniedClients; | 88 | protected string m_DeniedClients; |
@@ -117,6 +122,9 @@ namespace OpenSim.Services.LLLoginService | |||
117 | m_OpenIDURL = m_LoginServerConfig.GetString("OpenIDServerURL", String.Empty); | 122 | m_OpenIDURL = m_LoginServerConfig.GetString("OpenIDServerURL", String.Empty); |
118 | m_SearchURL = m_LoginServerConfig.GetString("SearchURL", string.Empty); | 123 | m_SearchURL = m_LoginServerConfig.GetString("SearchURL", string.Empty); |
119 | m_Currency = m_LoginServerConfig.GetString("Currency", string.Empty); | 124 | m_Currency = m_LoginServerConfig.GetString("Currency", string.Empty); |
125 | m_ClassifiedFee = m_LoginServerConfig.GetString("ClassifiedFee", string.Empty); | ||
126 | m_DestinationGuide = m_LoginServerConfig.GetString ("DestinationGuide", string.Empty); | ||
127 | m_AvatarPicker = m_LoginServerConfig.GetString ("AvatarPicker", string.Empty); | ||
120 | 128 | ||
121 | m_AllowedClients = m_LoginServerConfig.GetString("AllowedClients", string.Empty); | 129 | m_AllowedClients = m_LoginServerConfig.GetString("AllowedClients", string.Empty); |
122 | m_DeniedClients = m_LoginServerConfig.GetString("DeniedClients", string.Empty); | 130 | m_DeniedClients = m_LoginServerConfig.GetString("DeniedClients", string.Empty); |
@@ -391,6 +399,7 @@ namespace OpenSim.Services.LLLoginService | |||
391 | if (guinfo == null) | 399 | if (guinfo == null) |
392 | { | 400 | { |
393 | // something went wrong, make something up, so that we don't have to test this anywhere else | 401 | // something went wrong, make something up, so that we don't have to test this anywhere else |
402 | m_log.DebugFormat("{0} Failed to fetch GridUserInfo. Creating empty GridUserInfo as home", LogHeader); | ||
394 | guinfo = new GridUserInfo(); | 403 | guinfo = new GridUserInfo(); |
395 | guinfo.LastPosition = guinfo.HomePosition = new Vector3(128, 128, 30); | 404 | guinfo.LastPosition = guinfo.HomePosition = new Vector3(128, 128, 30); |
396 | } | 405 | } |
@@ -461,7 +470,8 @@ namespace OpenSim.Services.LLLoginService | |||
461 | = new LLLoginResponse( | 470 | = new LLLoginResponse( |
462 | account, aCircuit, guinfo, destination, inventorySkel, friendsList, m_LibraryService, | 471 | account, aCircuit, guinfo, destination, inventorySkel, friendsList, m_LibraryService, |
463 | where, startLocation, position, lookAt, gestures, m_WelcomeMessage, home, clientIP, | 472 | where, startLocation, position, lookAt, gestures, m_WelcomeMessage, home, clientIP, |
464 | m_MapTileURL, m_ProfileURL, m_OpenIDURL, m_SearchURL, m_Currency, m_DSTZone, realID); | 473 | m_MapTileURL, m_ProfileURL, m_OpenIDURL, m_SearchURL, m_Currency, m_DSTZone, |
474 | m_DestinationGuide, m_AvatarPicker, realID, m_ClassifiedFee); | ||
465 | 475 | ||
466 | m_log.DebugFormat("[LLOGIN SERVICE]: All clear. Sending login response to {0} {1}", firstName, lastName); | 476 | m_log.DebugFormat("[LLOGIN SERVICE]: All clear. Sending login response to {0} {1}", firstName, lastName); |
467 | 477 | ||
@@ -934,7 +944,7 @@ namespace OpenSim.Services.LLLoginService | |||
934 | private bool LaunchAgentIndirectly(GridRegion gatekeeper, GridRegion destination, AgentCircuitData aCircuit, IPEndPoint clientIP, out string reason) | 944 | private bool LaunchAgentIndirectly(GridRegion gatekeeper, GridRegion destination, AgentCircuitData aCircuit, IPEndPoint clientIP, out string reason) |
935 | { | 945 | { |
936 | m_log.Debug("[LLOGIN SERVICE] Launching agent at " + destination.RegionName); | 946 | m_log.Debug("[LLOGIN SERVICE] Launching agent at " + destination.RegionName); |
937 | if (m_UserAgentService.LoginAgentToGrid(aCircuit, gatekeeper, destination, clientIP, out reason)) | 947 | if (m_UserAgentService.LoginAgentToGrid(aCircuit, gatekeeper, destination, true, out reason)) |
938 | return true; | 948 | return true; |
939 | return false; | 949 | return false; |
940 | } | 950 | } |
diff --git a/OpenSim/Services/LLLoginService/Properties/AssemblyInfo.cs b/OpenSim/Services/LLLoginService/Properties/AssemblyInfo.cs index 0a6daee..c373351 100644 --- a/OpenSim/Services/LLLoginService/Properties/AssemblyInfo.cs +++ b/OpenSim/Services/LLLoginService/Properties/AssemblyInfo.cs | |||
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices; | |||
29 | // Build Number | 29 | // Build Number |
30 | // Revision | 30 | // Revision |
31 | // | 31 | // |
32 | [assembly: AssemblyVersion("0.7.6.*")] | 32 | [assembly: AssemblyVersion("0.8.0.*")] |
33 | 33 | ||