diff options
InterServiceInventoryService references *almost* completely removed from the simulator. Only a couple left, not important. Also updated the login tests -- Justin, this time I was able to fix this by myself :)
Diffstat (limited to 'OpenSim/Framework/Communications/Services')
-rw-r--r-- | OpenSim/Framework/Communications/Services/HGLoginAuthService.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/Communications/Services/LoginService.cs | 27 |
2 files changed, 23 insertions, 6 deletions
diff --git a/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs b/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs index 0637a1e..8e0205c 100644 --- a/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs +++ b/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs | |||
@@ -78,7 +78,7 @@ namespace OpenSim.Framework.Communications.Services | |||
78 | 78 | ||
79 | m_interServiceInventoryService = interServiceInventoryService; | 79 | m_interServiceInventoryService = interServiceInventoryService; |
80 | m_regionsConnector = regionsConnector; | 80 | m_regionsConnector = regionsConnector; |
81 | m_inventoryService = interServiceInventoryService; | 81 | m_interInventoryService = interServiceInventoryService; |
82 | } | 82 | } |
83 | 83 | ||
84 | public void SetServersInfo(NetworkServersInfo sinfo) | 84 | public void SetServersInfo(NetworkServersInfo sinfo) |
diff --git a/OpenSim/Framework/Communications/Services/LoginService.cs b/OpenSim/Framework/Communications/Services/LoginService.cs index 900a3d9..7eb98d7 100644 --- a/OpenSim/Framework/Communications/Services/LoginService.cs +++ b/OpenSim/Framework/Communications/Services/LoginService.cs | |||
@@ -41,6 +41,7 @@ using OpenMetaverse.StructuredData; | |||
41 | using OpenSim.Framework; | 41 | using OpenSim.Framework; |
42 | using OpenSim.Framework.Communications.Cache; | 42 | using OpenSim.Framework.Communications.Cache; |
43 | using OpenSim.Framework.Statistics; | 43 | using OpenSim.Framework.Statistics; |
44 | using OpenSim.Services.Interfaces; | ||
44 | 45 | ||
45 | namespace OpenSim.Framework.Communications.Services | 46 | namespace OpenSim.Framework.Communications.Services |
46 | { | 47 | { |
@@ -66,7 +67,9 @@ namespace OpenSim.Framework.Communications.Services | |||
66 | /// <summary> | 67 | /// <summary> |
67 | /// Used by the login service to make requests to the inventory service. | 68 | /// Used by the login service to make requests to the inventory service. |
68 | /// </summary> | 69 | /// </summary> |
69 | protected IInterServiceInventoryServices m_inventoryService; | 70 | protected IInterServiceInventoryServices m_interInventoryService; |
71 | // Hack | ||
72 | protected IInventoryService m_InventoryService; | ||
70 | 73 | ||
71 | /// <summary> | 74 | /// <summary> |
72 | /// Constructor | 75 | /// Constructor |
@@ -1047,7 +1050,10 @@ namespace OpenSim.Framework.Communications.Services | |||
1047 | List<InventoryItemBase> gestures = null; | 1050 | List<InventoryItemBase> gestures = null; |
1048 | try | 1051 | try |
1049 | { | 1052 | { |
1050 | gestures = m_inventoryService.GetActiveGestures(theUser.ID); | 1053 | if (m_InventoryService != null) |
1054 | gestures = m_InventoryService.GetActiveGestures(theUser.ID); | ||
1055 | else | ||
1056 | gestures = m_interInventoryService.GetActiveGestures(theUser.ID); | ||
1051 | } | 1057 | } |
1052 | catch (Exception e) | 1058 | catch (Exception e) |
1053 | { | 1059 | { |
@@ -1076,7 +1082,15 @@ namespace OpenSim.Framework.Communications.Services | |||
1076 | /// <exception cref='System.Exception'>This will be thrown if there is a problem with the inventory service</exception> | 1082 | /// <exception cref='System.Exception'>This will be thrown if there is a problem with the inventory service</exception> |
1077 | protected InventoryData GetInventorySkeleton(UUID userID) | 1083 | protected InventoryData GetInventorySkeleton(UUID userID) |
1078 | { | 1084 | { |
1079 | List<InventoryFolderBase> folders = m_inventoryService.GetInventorySkeleton(userID); | 1085 | List<InventoryFolderBase> folders = null; |
1086 | if (m_InventoryService != null) | ||
1087 | { | ||
1088 | folders = m_InventoryService.GetInventorySkeleton(userID); | ||
1089 | } | ||
1090 | else | ||
1091 | { | ||
1092 | folders = m_interInventoryService.GetInventorySkeleton(userID); | ||
1093 | } | ||
1080 | 1094 | ||
1081 | // If we have user auth but no inventory folders for some reason, create a new set of folders. | 1095 | // If we have user auth but no inventory folders for some reason, create a new set of folders. |
1082 | if (folders == null || folders.Count == 0) | 1096 | if (folders == null || folders.Count == 0) |
@@ -1088,7 +1102,7 @@ namespace OpenSim.Framework.Communications.Services | |||
1088 | // tools are creating the user profile directly in the database without creating the inventory. At | 1102 | // tools are creating the user profile directly in the database without creating the inventory. At |
1089 | // this time we'll accomodate them by lazily creating the user inventory now if it doesn't already | 1103 | // this time we'll accomodate them by lazily creating the user inventory now if it doesn't already |
1090 | // exist. | 1104 | // exist. |
1091 | if (!m_inventoryService.CreateNewUserInventory(userID)) | 1105 | if ((m_interInventoryService != null) && !m_interInventoryService.CreateNewUserInventory(userID)) |
1092 | { | 1106 | { |
1093 | throw new Exception( | 1107 | throw new Exception( |
1094 | String.Format( | 1108 | String.Format( |
@@ -1099,7 +1113,10 @@ namespace OpenSim.Framework.Communications.Services | |||
1099 | 1113 | ||
1100 | m_log.InfoFormat("[LOGIN]: A new inventory skeleton was successfully created for user {0}", userID); | 1114 | m_log.InfoFormat("[LOGIN]: A new inventory skeleton was successfully created for user {0}", userID); |
1101 | 1115 | ||
1102 | folders = m_inventoryService.GetInventorySkeleton(userID); | 1116 | if (m_InventoryService != null) |
1117 | folders = m_InventoryService.GetInventorySkeleton(userID); | ||
1118 | else | ||
1119 | folders = m_interInventoryService.GetInventorySkeleton(userID); | ||
1103 | 1120 | ||
1104 | if (folders == null || folders.Count == 0) | 1121 | if (folders == null || folders.Count == 0) |
1105 | { | 1122 | { |