aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer
diff options
context:
space:
mode:
authorMW2008-06-28 17:52:06 +0000
committerMW2008-06-28 17:52:06 +0000
commit5cfc468d959f1fcfa1fa8121154a70c6430df083 (patch)
tree3af37f23260eb3d7e7e6d15284cf9c463ead27e2 /OpenSim/Grid/UserServer
parentManti#1624. Thank you, Melanie for a patch that: (diff)
downloadopensim-SC_OLD-5cfc468d959f1fcfa1fa8121154a70c6430df083.zip
opensim-SC_OLD-5cfc468d959f1fcfa1fa8121154a70c6430df083.tar.gz
opensim-SC_OLD-5cfc468d959f1fcfa1fa8121154a70c6430df083.tar.bz2
opensim-SC_OLD-5cfc468d959f1fcfa1fa8121154a70c6430df083.tar.xz
more work on the support for multiple inventory servers.
The Login service should now read/create new inventory on the inventory server that is set in a users profile. Also added "Add-InventoryHost" console command to add a support for a new server to a region. So it would be good if someone could test this. Set up the grid as normal, but then also run extra inventory server on a different computer (well actually it just has to be on a different network hostname, so one using "http://localhost:8004" and one using "http://127.0.0.1:8005" should work) then you need to manually edit the user profile database to set the new servers url in a user's "userInventoryURI" field. Then on a region server, use the Add-InventoryHost to add the new server url (always include the full url, including http, but don't add a final /) Login with that account and see if the inventory works. Of course these needs to be made more user friendly.
Diffstat (limited to 'OpenSim/Grid/UserServer')
-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)