diff options
author | Diva Canto | 2009-08-19 16:15:04 -0700 |
---|---|---|
committer | Diva Canto | 2009-08-19 17:35:42 -0700 |
commit | 6e35ddb0e9642e6719d5043da99d45f8885d13f0 (patch) | |
tree | 37617567f2e5f3f5bc6b6c5516c5edf01f842963 /OpenSim | |
parent | Makes the inventory connectors fully compatible with the old Grid.InventorySe... (diff) | |
download | opensim-SC_OLD-6e35ddb0e9642e6719d5043da99d45f8885d13f0.zip opensim-SC_OLD-6e35ddb0e9642e6719d5043da99d45f8885d13f0.tar.gz opensim-SC_OLD-6e35ddb0e9642e6719d5043da99d45f8885d13f0.tar.bz2 opensim-SC_OLD-6e35ddb0e9642e6719d5043da99d45f8885d13f0.tar.xz |
Fixes GetItem and GetFolder for SQLite. Turns out some methods were no-op in SQlite. Fixes most grief in
http://opensimulator.org/mantis/view.php?id=4035
http://opensimulator.org/mantis/view.php?id=4027
Diffstat (limited to 'OpenSim')
4 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs index e5f7a50..64591fd 100644 --- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs +++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs | |||
@@ -628,12 +628,12 @@ namespace OpenSim.Data.SQLite | |||
628 | 628 | ||
629 | public InventoryItemBase queryInventoryItem(UUID itemID) | 629 | public InventoryItemBase queryInventoryItem(UUID itemID) |
630 | { | 630 | { |
631 | return null; | 631 | return getInventoryItem(itemID); |
632 | } | 632 | } |
633 | 633 | ||
634 | public InventoryFolderBase queryInventoryFolder(UUID folderID) | 634 | public InventoryFolderBase queryInventoryFolder(UUID folderID) |
635 | { | 635 | { |
636 | return null; | 636 | return getInventoryFolder(folderID); |
637 | } | 637 | } |
638 | 638 | ||
639 | /// <summary> | 639 | /// <summary> |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs index 562c5dd..e6edcf2 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs | |||
@@ -191,7 +191,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
191 | 191 | ||
192 | public override Dictionary<AssetType, InventoryFolderBase> GetSystemFolders(UUID userID) | 192 | public override Dictionary<AssetType, InventoryFolderBase> GetSystemFolders(UUID userID) |
193 | { | 193 | { |
194 | InventoryFolderBase root = GetRootFolder(userID); | 194 | InventoryFolderBase root = m_InventoryService.GetRootFolder(userID); |
195 | if (root != null) | 195 | if (root != null) |
196 | { | 196 | { |
197 | InventoryCollection content = GetFolderContent(userID, root.ID); | 197 | InventoryCollection content = GetFolderContent(userID, root.ID); |
@@ -202,13 +202,13 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
202 | { | 202 | { |
203 | if ((folder.Type != (short)AssetType.Folder) && (folder.Type != (short)AssetType.Unknown)) | 203 | if ((folder.Type != (short)AssetType.Folder) && (folder.Type != (short)AssetType.Unknown)) |
204 | { | 204 | { |
205 | m_log.InfoFormat("[INVENTORY CONNECTOR]: folder type {0} ", folder.Type); | 205 | //m_log.InfoFormat("[INVENTORY CONNECTOR]: folder type {0} ", folder.Type); |
206 | folders[(AssetType)folder.Type] = folder; | 206 | folders[(AssetType)folder.Type] = folder; |
207 | } | 207 | } |
208 | } | 208 | } |
209 | // Put the root folder there, as type Folder | 209 | // Put the root folder there, as type Folder |
210 | folders[AssetType.Folder] = root; | 210 | folders[AssetType.Folder] = root; |
211 | m_log.InfoFormat("[INVENTORY CONNECTOR]: root folder is type {0} ", root.Type); | 211 | //m_log.InfoFormat("[INVENTORY CONNECTOR]: root folder is type {0} ", root.Type); |
212 | 212 | ||
213 | return folders; | 213 | return folders; |
214 | } | 214 | } |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index a119efc..a9d361b 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -179,8 +179,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
179 | else | 179 | else |
180 | { | 180 | { |
181 | m_log.ErrorFormat( | 181 | m_log.ErrorFormat( |
182 | "[AGENT INVENTORY]: Could not resolve user {0} for caps inventory update", | 182 | "[AGENT INVENTORY]: Could not find item {0} for caps inventory update", |
183 | remoteClient.AgentId); | 183 | itemID); |
184 | } | 184 | } |
185 | 185 | ||
186 | return UUID.Zero; | 186 | return UUID.Zero; |
diff --git a/OpenSim/Services/InventoryService/InventoryService.cs b/OpenSim/Services/InventoryService/InventoryService.cs index e0217f6..6310254 100644 --- a/OpenSim/Services/InventoryService/InventoryService.cs +++ b/OpenSim/Services/InventoryService/InventoryService.cs | |||
@@ -420,16 +420,16 @@ namespace OpenSim.Services.InventoryService | |||
420 | 420 | ||
421 | public virtual InventoryItemBase GetItem(InventoryItemBase item) | 421 | public virtual InventoryItemBase GetItem(InventoryItemBase item) |
422 | { | 422 | { |
423 | InventoryItemBase result = m_Database.queryInventoryItem(item.ID); | 423 | InventoryItemBase result = m_Database.getInventoryItem(item.ID); |
424 | if (result != null) | 424 | if (result != null) |
425 | return result; | 425 | return result; |
426 | 426 | m_log.DebugFormat("[INVENTORY SERVICE]: GetItem failed to find item {0}", item.ID); | |
427 | return null; | 427 | return null; |
428 | } | 428 | } |
429 | 429 | ||
430 | public virtual InventoryFolderBase GetFolder(InventoryFolderBase item) | 430 | public virtual InventoryFolderBase GetFolder(InventoryFolderBase item) |
431 | { | 431 | { |
432 | InventoryFolderBase result = m_Database.queryInventoryFolder(item.ID); | 432 | InventoryFolderBase result = m_Database.getInventoryFolder(item.ID); |
433 | if (result != null) | 433 | if (result != null) |
434 | return result; | 434 | return result; |
435 | 435 | ||