disabled the multiple inventory server support in login service again.
And reverted CachedUserInfo back to revision 5262. I don't think most of the inventory problems that people are reporting are due to these, but its easier to deal with one set of potential problems at a time, and I'm not going to get any time in the week to work on this anyway.0.6.0-stable
parent
d8e18ad0f0
commit
b0330a0bb5
|
@ -87,24 +87,6 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
private IDictionary<LLUUID, IList<InventoryFolderImpl>> pendingCategorizationFolders
|
private IDictionary<LLUUID, IList<InventoryFolderImpl>> pendingCategorizationFolders
|
||||||
= new Dictionary<LLUUID, IList<InventoryFolderImpl>>();
|
= new Dictionary<LLUUID, IList<InventoryFolderImpl>>();
|
||||||
|
|
||||||
private string m_inventoryHost
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (m_userProfile != null)
|
|
||||||
{
|
|
||||||
if (! String.IsNullOrEmpty(m_userProfile.UserAssetURI))
|
|
||||||
{
|
|
||||||
Uri uri = new Uri(m_userProfile.UserInventoryURI);
|
|
||||||
return uri.Host;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor
|
/// Constructor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -343,15 +325,9 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
createdBaseFolder.Type = createdFolder.Type;
|
createdBaseFolder.Type = createdFolder.Type;
|
||||||
createdBaseFolder.Version = createdFolder.Version;
|
createdBaseFolder.Version = createdFolder.Version;
|
||||||
|
|
||||||
IInventoryServices invService = GetInventoryService();
|
m_commsManager.InventoryService.AddFolder(createdBaseFolder);
|
||||||
if (invService != null)
|
|
||||||
{
|
|
||||||
//m_commsManager.InventoryService
|
|
||||||
invService.AddFolder(createdBaseFolder);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -403,11 +379,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
baseFolder.Type = (short)type;
|
baseFolder.Type = (short)type;
|
||||||
baseFolder.Version = RootFolder.Version;
|
baseFolder.Version = RootFolder.Version;
|
||||||
|
|
||||||
IInventoryServices invService = GetInventoryService();
|
m_commsManager.InventoryService.UpdateFolder(baseFolder);
|
||||||
if (invService != null)
|
|
||||||
{
|
|
||||||
//m_commsManager.InventoryService.
|
|
||||||
invService.UpdateFolder(baseFolder);
|
|
||||||
|
|
||||||
InventoryFolderImpl folder = RootFolder.FindFolder(folderID);
|
InventoryFolderImpl folder = RootFolder.FindFolder(folderID);
|
||||||
if (folder != null)
|
if (folder != null)
|
||||||
|
@ -416,7 +388,6 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
folder.ParentID = parentID;
|
folder.ParentID = parentID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
AddRequest(
|
AddRequest(
|
||||||
|
@ -450,26 +421,15 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
baseFolder.ID = folderID;
|
baseFolder.ID = folderID;
|
||||||
baseFolder.ParentID = parentID;
|
baseFolder.ParentID = parentID;
|
||||||
|
|
||||||
IInventoryServices invService = GetInventoryService();
|
m_commsManager.InventoryService.MoveFolder(baseFolder);
|
||||||
if (invService != null)
|
|
||||||
{
|
|
||||||
// m_commsManager.InventoryService
|
|
||||||
invService.MoveFolder(baseFolder);
|
|
||||||
|
|
||||||
InventoryFolderImpl folder = RootFolder.FindFolder(folderID);
|
InventoryFolderImpl folder = RootFolder.FindFolder(folderID);
|
||||||
if (folder != null)
|
if (folder != null)
|
||||||
{
|
|
||||||
folder.ParentID = parentID;
|
folder.ParentID = parentID;
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
AddRequest(
|
AddRequest(
|
||||||
new InventoryRequest(
|
new InventoryRequest(
|
||||||
|
@ -508,18 +468,13 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
purgedBaseFolder.Type = purgedFolder.Type;
|
purgedBaseFolder.Type = purgedFolder.Type;
|
||||||
purgedBaseFolder.Version = purgedFolder.Version;
|
purgedBaseFolder.Version = purgedFolder.Version;
|
||||||
|
|
||||||
IInventoryServices invService = GetInventoryService();
|
m_commsManager.InventoryService.PurgeFolder(purgedBaseFolder);
|
||||||
if (invService != null)
|
|
||||||
{
|
|
||||||
//m_commsManager.InventoryService
|
|
||||||
invService.PurgeFolder(purgedBaseFolder);
|
|
||||||
|
|
||||||
purgedFolder.Purge();
|
purgedFolder.Purge();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
AddRequest(
|
AddRequest(
|
||||||
|
@ -550,13 +505,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
item.Folder = RootFolder.ID;
|
item.Folder = RootFolder.ID;
|
||||||
}
|
}
|
||||||
ItemReceive(item);
|
ItemReceive(item);
|
||||||
|
m_commsManager.InventoryService.AddItem(item);
|
||||||
IInventoryServices invService = GetInventoryService();
|
|
||||||
if (invService != null)
|
|
||||||
{
|
|
||||||
//m_commsManager.InventoryService
|
|
||||||
invService.AddItem(item);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -576,12 +525,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
{
|
{
|
||||||
if (HasInventory)
|
if (HasInventory)
|
||||||
{
|
{
|
||||||
IInventoryServices invService = GetInventoryService();
|
m_commsManager.InventoryService.UpdateItem(item);
|
||||||
if (invService != null)
|
|
||||||
{
|
|
||||||
//m_commsManager.InventoryService
|
|
||||||
invService.UpdateItem(item);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -620,14 +564,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
|
|
||||||
if (RootFolder.DeleteItem(item.ID))
|
if (RootFolder.DeleteItem(item.ID))
|
||||||
{
|
{
|
||||||
IInventoryServices invService = GetInventoryService();
|
return m_commsManager.InventoryService.DeleteItem(item);
|
||||||
if (invService != null)
|
|
||||||
{
|
|
||||||
//return m_commsManager.InventoryService
|
|
||||||
return invService.DeleteItem(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -704,13 +641,6 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IInventoryServices GetInventoryService()
|
|
||||||
{
|
|
||||||
IInventoryServices invService;
|
|
||||||
m_commsManager.TryGetInventoryService(m_inventoryHost, out invService);
|
|
||||||
return invService;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -119,12 +119,12 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
CachedUserInfo userInfo = GetUserDetails(userID);
|
CachedUserInfo userInfo = GetUserDetails(userID);
|
||||||
if (userInfo != null)
|
if (userInfo != null)
|
||||||
{
|
{
|
||||||
//m_commsManager.InventoryService.RequestInventoryForUser(userID, userInfo.InventoryReceive);
|
m_commsManager.InventoryService.RequestInventoryForUser(userID, userInfo.InventoryReceive);
|
||||||
IInventoryServices invService = userInfo.GetInventoryService();
|
//IInventoryServices invService = userInfo.GetInventoryService();
|
||||||
if (invService != null)
|
//if (invService != null)
|
||||||
{
|
//{
|
||||||
invService.RequestInventoryForUser(userID, userInfo.InventoryReceive);
|
// invService.RequestInventoryForUser(userID, userInfo.InventoryReceive);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -231,10 +231,10 @@ namespace OpenSim.Framework.Communications
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string inventoryServerUrl = "";
|
string inventoryServerUrl = "";
|
||||||
if (!String.IsNullOrEmpty(userProfile.UserInventoryURI))
|
//if (!String.IsNullOrEmpty(userProfile.UserInventoryURI))
|
||||||
{
|
//{
|
||||||
inventoryServerUrl = userProfile.UserInventoryURI;
|
// inventoryServerUrl = userProfile.UserInventoryURI;
|
||||||
}
|
//}
|
||||||
inventData = GetInventorySkeleton(agentID, inventoryServerUrl);
|
inventData = GetInventorySkeleton(agentID, inventoryServerUrl);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
@ -393,10 +393,10 @@ namespace OpenSim.Framework.Communications
|
||||||
// Inventory Library Section
|
// Inventory Library Section
|
||||||
|
|
||||||
string inventoryServerUrl = "";
|
string inventoryServerUrl = "";
|
||||||
if (!String.IsNullOrEmpty(userProfile.UserInventoryURI))
|
//if (!String.IsNullOrEmpty(userProfile.UserInventoryURI))
|
||||||
{
|
//{
|
||||||
inventoryServerUrl = userProfile.UserInventoryURI;
|
// inventoryServerUrl = userProfile.UserInventoryURI;
|
||||||
}
|
//}
|
||||||
|
|
||||||
InventoryData inventData = GetInventorySkeleton(agentID, inventoryServerUrl);
|
InventoryData inventData = GetInventorySkeleton(agentID, inventoryServerUrl);
|
||||||
ArrayList AgentInventoryArray = inventData.InventoryArray;
|
ArrayList AgentInventoryArray = inventData.InventoryArray;
|
||||||
|
|
|
@ -422,10 +422,10 @@ namespace OpenSim.Grid.UserServer
|
||||||
protected override InventoryData GetInventorySkeleton(LLUUID userID, string serverUrl)
|
protected override InventoryData GetInventorySkeleton(LLUUID userID, string serverUrl)
|
||||||
{
|
{
|
||||||
string invUrl = m_config.InventoryUrl;
|
string invUrl = m_config.InventoryUrl;
|
||||||
if (!String.IsNullOrEmpty(serverUrl))
|
//if (!String.IsNullOrEmpty(serverUrl))
|
||||||
{
|
//{
|
||||||
invUrl = serverUrl+"/";
|
// invUrl = serverUrl+"/";
|
||||||
}
|
//}
|
||||||
|
|
||||||
m_log.DebugFormat(
|
m_log.DebugFormat(
|
||||||
"[LOGIN]: Contacting inventory service at {0} for inventory skeleton of user {1}",
|
"[LOGIN]: Contacting inventory service at {0} for inventory skeleton of user {1}",
|
||||||
|
|
Loading…
Reference in New Issue