aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Framework/Communications/LoginService.cs4
-rw-r--r--OpenSim/Grid/UserServer/UserLoginService.cs24
2 files changed, 6 insertions, 22 deletions
diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs
index d610c51..ce8aa23 100644
--- a/OpenSim/Framework/Communications/LoginService.cs
+++ b/OpenSim/Framework/Communications/LoginService.cs
@@ -84,7 +84,7 @@ namespace OpenSim.Framework.UserManagement
84 /// </summary> 84 /// </summary>
85 /// <param name="userID"></param> 85 /// <param name="userID"></param>
86 /// <returns></returns> 86 /// <returns></returns>
87 /// <exception cref='System.Net.WebException'>This will be thrown if there is a problem with the inventory service</exception> 87 /// <exception cref='System.Exception'>This will be thrown if there is a problem with the inventory service</exception>
88 protected abstract InventoryData GetInventorySkeleton(LLUUID userID); 88 protected abstract InventoryData GetInventorySkeleton(LLUUID userID);
89 89
90 /// <summary> 90 /// <summary>
@@ -218,7 +218,7 @@ namespace OpenSim.Framework.UserManagement
218 { 218 {
219 inventData = GetInventorySkeleton(agentID); 219 inventData = GetInventorySkeleton(agentID);
220 } 220 }
221 catch (System.Net.WebException e) 221 catch (Exception e)
222 { 222 {
223 m_log.ErrorFormat( 223 m_log.ErrorFormat(
224 "[LOGIN END]: Error retrieving inventory skeleton of agent {0}, {1} - {2}", 224 "[LOGIN END]: Error retrieving inventory skeleton of agent {0}, {1} - {2}",
diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs
index d35a471..a3bc9f0 100644
--- a/OpenSim/Grid/UserServer/UserLoginService.cs
+++ b/OpenSim/Grid/UserServer/UserLoginService.cs
@@ -306,6 +306,7 @@ namespace OpenSim.Grid.UserServer
306 "[LOGIN]: Contacting inventory service at {0} for inventory skeleton of agent {1}", 306 "[LOGIN]: Contacting inventory service at {0} for inventory skeleton of agent {1}",
307 m_config.InventoryUrl, userID); 307 m_config.InventoryUrl, userID);
308 308
309
309 List<InventoryFolderBase> folders 310 List<InventoryFolderBase> folders
310 = SynchronousRestObjectPoster.BeginPostObject<Guid, List<InventoryFolderBase>>( 311 = SynchronousRestObjectPoster.BeginPostObject<Guid, List<InventoryFolderBase>>(
311 "POST", m_config.InventoryUrl + "RootFolders/", userID.UUID); 312 "POST", m_config.InventoryUrl + "RootFolders/", userID.UUID);
@@ -355,26 +356,9 @@ namespace OpenSim.Grid.UserServer
355 } 356 }
356 else 357 else
357 { 358 {
358 m_log.Warn("[LOGIN]: The root inventory folder could still not be retrieved" + 359 throw new Exception(
359 " for user ID " + userID); 360 String.Format(
360 361 "A root inventory folder for {0} could not be retrieved from the inventory service", userID));
361 AgentInventory userInventory = new AgentInventory();
362 userInventory.CreateRootFolder(userID);
363
364 ArrayList AgentInventoryArray = new ArrayList();
365 Hashtable TempHash;
366 foreach (InventoryFolder InvFolder in userInventory.InventoryFolders.Values)
367 {
368 TempHash = new Hashtable();
369 TempHash["name"] = InvFolder.FolderName;
370 TempHash["parent_id"] = InvFolder.ParentID.ToString();
371 TempHash["version"] = (Int32) InvFolder.Version;
372 TempHash["type_default"] = (Int32) InvFolder.DefaultType;
373 TempHash["folder_id"] = InvFolder.FolderID.ToString();
374 AgentInventoryArray.Add(TempHash);
375 }
376
377 return new InventoryData(AgentInventoryArray, userInventory.InventoryRoot.FolderID);
378 } 362 }
379 } 363 }
380 } 364 }