aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services')
-rw-r--r--OpenSim/Services/Connectors/Inventory/XInventoryServicesConnector.cs6
-rw-r--r--OpenSim/Services/InventoryService/XInventoryService.cs12
2 files changed, 11 insertions, 7 deletions
diff --git a/OpenSim/Services/Connectors/Inventory/XInventoryServicesConnector.cs b/OpenSim/Services/Connectors/Inventory/XInventoryServicesConnector.cs
index 0cea4a1..db3c857 100644
--- a/OpenSim/Services/Connectors/Inventory/XInventoryServicesConnector.cs
+++ b/OpenSim/Services/Connectors/Inventory/XInventoryServicesConnector.cs
@@ -406,9 +406,13 @@ namespace OpenSim.Services.Connectors
406 406
407 public bool AddItem(InventoryItemBase item) 407 public bool AddItem(InventoryItemBase item)
408 { 408 {
409 if (item.Description == null)
410 item.Description = String.Empty;
409 if (item.CreatorData == null) 411 if (item.CreatorData == null)
410 item.CreatorData = String.Empty; 412 item.CreatorData = String.Empty;
411 Dictionary<string,object> ret = MakeRequest("ADDITEM", 413 if (item.CreatorId == null)
414 item.CreatorId = String.Empty;
415 Dictionary<string, object> ret = MakeRequest("ADDITEM",
412 new Dictionary<string,object> { 416 new Dictionary<string,object> {
413 { "AssetID", item.AssetID.ToString() }, 417 { "AssetID", item.AssetID.ToString() },
414 { "AssetType", item.AssetType.ToString() }, 418 { "AssetType", item.AssetType.ToString() },
diff --git a/OpenSim/Services/InventoryService/XInventoryService.cs b/OpenSim/Services/InventoryService/XInventoryService.cs
index 50cadab..64f727c 100644
--- a/OpenSim/Services/InventoryService/XInventoryService.cs
+++ b/OpenSim/Services/InventoryService/XInventoryService.cs
@@ -261,7 +261,7 @@ namespace OpenSim.Services.InventoryService
261 261
262 private InventoryFolderBase GetSystemFolderForType(InventoryFolderBase rootFolder, AssetType type) 262 private InventoryFolderBase GetSystemFolderForType(InventoryFolderBase rootFolder, AssetType type)
263 { 263 {
264// m_log.DebugFormat("[XINVENTORY SERVICE]: Getting folder type {0} for user {1}", type, principalID); 264 //m_log.DebugFormat("[XINVENTORY SERVICE]: Getting folder type {0}", type);
265 265
266 if (type == AssetType.RootFolder) 266 if (type == AssetType.RootFolder)
267 return rootFolder; 267 return rootFolder;
@@ -272,13 +272,13 @@ namespace OpenSim.Services.InventoryService
272 272
273 if (folders.Length == 0) 273 if (folders.Length == 0)
274 { 274 {
275// m_log.WarnFormat("[XINVENTORY SERVICE]: Found no folder for type {0} for user {1}", type, principalID); 275 //m_log.WarnFormat("[XINVENTORY SERVICE]: Found no folder for type {0} ", type);
276 return null; 276 return null;
277 } 277 }
278 278
279// m_log.DebugFormat( 279 //m_log.DebugFormat(
280// "[XINVENTORY SERVICE]: Found folder {0} {1} for type {2} for user {3}", 280 // "[XINVENTORY SERVICE]: Found folder {0} {1} for type {2}",
281// folders[0].folderName, folders[0].folderID, type, principalID); 281 // folders[0].folderName, folders[0].folderID, type);
282 282
283 return ConvertToOpenSim(folders[0]); 283 return ConvertToOpenSim(folders[0]);
284 } 284 }