aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Grid/UserServer/UserLoginService.cs14
1 files changed, 10 insertions, 4 deletions
diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs
index 165700c..a4dce5e 100644
--- a/OpenSim/Grid/UserServer/UserLoginService.cs
+++ b/OpenSim/Grid/UserServer/UserLoginService.cs
@@ -419,15 +419,21 @@ namespace OpenSim.Grid.UserServer
419 } 419 }
420 420
421 // See LoginService 421 // See LoginService
422 protected override InventoryData GetInventorySkeleton(LLUUID userID) 422 protected override InventoryData GetInventorySkeleton(LLUUID userID, string serverUrl)
423 { 423 {
424 string invUrl = m_config.InventoryUrl;
425 if (serverUrl != String.Empty)
426 {
427 invUrl = serverUrl;
428 }
429
424 m_log.DebugFormat( 430 m_log.DebugFormat(
425 "[LOGIN]: Contacting inventory service at {0} for inventory skeleton of user {1}", 431 "[LOGIN]: Contacting inventory service at {0} for inventory skeleton of user {1}",
426 m_config.InventoryUrl, userID); 432 m_config.InventoryUrl, userID);
427 433
428 List<InventoryFolderBase> folders 434 List<InventoryFolderBase> folders
429 = SynchronousRestObjectPoster.BeginPostObject<Guid, List<InventoryFolderBase>>( 435 = SynchronousRestObjectPoster.BeginPostObject<Guid, List<InventoryFolderBase>>(
430 "POST", m_config.InventoryUrl + "RootFolders/", userID.UUID); 436 "POST", invUrl + "RootFolders/", userID.UUID);
431 437
432 if (null == folders || folders.Count == 0) 438 if (null == folders || folders.Count == 0)
433 { 439 {
@@ -440,7 +446,7 @@ namespace OpenSim.Grid.UserServer
440 // exist. 446 // exist.
441 bool created = 447 bool created =
442 SynchronousRestObjectPoster.BeginPostObject<Guid, bool>( 448 SynchronousRestObjectPoster.BeginPostObject<Guid, bool>(
443 "POST", m_config.InventoryUrl + "CreateInventory/", userID.UUID); 449 "POST", invUrl + "CreateInventory/", userID.UUID);
444 450
445 if (!created) 451 if (!created)
446 { 452 {
@@ -456,7 +462,7 @@ namespace OpenSim.Grid.UserServer
456 } 462 }
457 463
458 folders = SynchronousRestObjectPoster.BeginPostObject<Guid, List<InventoryFolderBase>>( 464 folders = SynchronousRestObjectPoster.BeginPostObject<Guid, List<InventoryFolderBase>>(
459 "POST", m_config.InventoryUrl + "RootFolders/", userID.UUID); 465 "POST", invUrl + "RootFolders/", userID.UUID);
460 } 466 }
461 467
462 if (folders != null && folders.Count > 0) 468 if (folders != null && folders.Count > 0)