aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2009-08-11 14:52:17 -0700
committerDiva Canto2009-08-11 14:52:17 -0700
commit41839efcc56bd9436f5eb85e68abeba7f606af43 (patch)
treef76edb19123a8e331b00714caab7d1d8f8f4fa18
parentRe-adding a conditional in UserManager that was removed with arthusv's commit... (diff)
downloadopensim-SC_OLD-41839efcc56bd9436f5eb85e68abeba7f606af43.zip
opensim-SC_OLD-41839efcc56bd9436f5eb85e68abeba7f606af43.tar.gz
opensim-SC_OLD-41839efcc56bd9436f5eb85e68abeba7f606af43.tar.bz2
opensim-SC_OLD-41839efcc56bd9436f5eb85e68abeba7f606af43.tar.xz
Some more hammering on the head of the obsolete rest inventory handlers, just to make this work.
-rw-r--r--OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs6
-rw-r--r--OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs24
2 files changed, 17 insertions, 13 deletions
diff --git a/OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs b/OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs
index ae9546a..8d104ac 100644
--- a/OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs
+++ b/OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs
@@ -85,7 +85,7 @@ namespace OpenSim.Server.Handlers.Inventory
85 "POST", "/GetInventory/", GetUserInventory, CheckAuthSession)); 85 "POST", "/GetInventory/", GetUserInventory, CheckAuthSession));
86 86
87 m_httpServer.AddStreamHandler( 87 m_httpServer.AddStreamHandler(
88 new RestDeserialiseSecureHandler<Guid, Dictionary<AssetType, InventoryFolderBase>>( 88 new RestDeserialiseSecureHandler<Guid, List<InventoryFolderBase>>(
89 "POST", "/SystemFolders/", GetSystemFolders, CheckAuthSession)); 89 "POST", "/SystemFolders/", GetSystemFolders, CheckAuthSession));
90 90
91 m_httpServer.AddStreamHandler( 91 m_httpServer.AddStreamHandler(
@@ -163,10 +163,10 @@ namespace OpenSim.Server.Handlers.Inventory
163 return m_InventoryService.GetUserInventory(userID); 163 return m_InventoryService.GetUserInventory(userID);
164 } 164 }
165 165
166 public Dictionary<AssetType, InventoryFolderBase> GetSystemFolders(Guid guid) 166 public List<InventoryFolderBase> GetSystemFolders(Guid guid)
167 { 167 {
168 UUID userID = new UUID(guid); 168 UUID userID = new UUID(guid);
169 return GetSystemFolders(userID); 169 return new List<InventoryFolderBase>(GetSystemFolders(userID).Values);
170 } 170 }
171 171
172 // This shouldn't be here, it should be in the inventory service. 172 // This shouldn't be here, it should be in the inventory service.
diff --git a/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs b/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
index 5fb4815..2244a7e 100644
--- a/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
@@ -164,16 +164,20 @@ namespace OpenSim.Services.Connectors
164 public Dictionary<AssetType, InventoryFolderBase> GetSystemFolders(string userID, UUID sessionID) 164 public Dictionary<AssetType, InventoryFolderBase> GetSystemFolders(string userID, UUID sessionID)
165 { 165 {
166 // !!! Not just yet. 166 // !!! Not just yet.
167 //try 167 try
168 //{ 168 {
169 // return SynchronousRestSessionObjectPoster<Guid, Dictionary<AssetType, InventoryFolderBase>>.BeginPostObject( 169 List<InventoryFolderBase> folders = SynchronousRestSessionObjectPoster<Guid, List<InventoryFolderBase>>.BeginPostObject(
170 // "POST", m_ServerURI + "/SystemFolders/", new Guid(userID), sessionID.ToString(), userID.ToString()); 170 "POST", m_ServerURI + "/SystemFolders/", new Guid(userID), sessionID.ToString(), userID.ToString());
171 //} 171 Dictionary<AssetType, InventoryFolderBase> dFolders = new Dictionary<AssetType, InventoryFolderBase>();
172 //catch (Exception e) 172 foreach (InventoryFolderBase f in folders)
173 //{ 173 dFolders[(AssetType)f.Type] = f;
174 // m_log.ErrorFormat("[INVENTORY CONNECTOR]: GetSystemFolders operation failed, {0} {1}", 174 return dFolders;
175 // e.Source, e.Message); 175 }
176 //} 176 catch (Exception e)
177 {
178 m_log.ErrorFormat("[INVENTORY CONNECTOR]: GetSystemFolders operation failed, {0} {1}",
179 e.Source, e.Message);
180 }
177 181
178 return new Dictionary<AssetType, InventoryFolderBase>(); 182 return new Dictionary<AssetType, InventoryFolderBase>();
179 } 183 }