Re-adding a conditional in UserManager that was removed with arthusv's commit. Changing new inventory ops to POST.
parent
dae9a111aa
commit
bd7ff803fe
|
@ -698,7 +698,7 @@ namespace OpenSim.Framework.Communications
|
||||||
if (rootfolder != null)
|
if (rootfolder != null)
|
||||||
userProf.RootInventoryFolderID = rootfolder.ID;
|
userProf.RootInventoryFolderID = rootfolder.ID;
|
||||||
}
|
}
|
||||||
else
|
else if (m_commsManager.InterServiceInventoryService != null)
|
||||||
{
|
{
|
||||||
// used by the user server
|
// used by the user server
|
||||||
m_log.Debug("[USERSTORAGE]: using m_commsManager.InterServiceInventoryService to create user's inventory");
|
m_log.Debug("[USERSTORAGE]: using m_commsManager.InterServiceInventoryService to create user's inventory");
|
||||||
|
|
|
@ -86,7 +86,7 @@ namespace OpenSim.Server.Handlers.Inventory
|
||||||
|
|
||||||
m_httpServer.AddStreamHandler(
|
m_httpServer.AddStreamHandler(
|
||||||
new RestDeserialiseSecureHandler<Guid, Dictionary<AssetType, InventoryFolderBase>>(
|
new RestDeserialiseSecureHandler<Guid, Dictionary<AssetType, InventoryFolderBase>>(
|
||||||
"GET", "/SystemFolders/", GetSystemFolders, CheckAuthSession));
|
"POST", "/SystemFolders/", GetSystemFolders, CheckAuthSession));
|
||||||
|
|
||||||
m_httpServer.AddStreamHandler(
|
m_httpServer.AddStreamHandler(
|
||||||
new RestDeserialiseSecureHandler<Guid, InventoryCollection>(
|
new RestDeserialiseSecureHandler<Guid, InventoryCollection>(
|
||||||
|
|
|
@ -167,11 +167,11 @@ namespace OpenSim.Services.Connectors
|
||||||
//try
|
//try
|
||||||
//{
|
//{
|
||||||
// return SynchronousRestSessionObjectPoster<Guid, Dictionary<AssetType, InventoryFolderBase>>.BeginPostObject(
|
// return SynchronousRestSessionObjectPoster<Guid, Dictionary<AssetType, InventoryFolderBase>>.BeginPostObject(
|
||||||
// "GET", m_ServerURI + "/SystemFolders/", new Guid(userID), sessionID.ToString(), userID.ToString());
|
// "POST", m_ServerURI + "/SystemFolders/", new Guid(userID), sessionID.ToString(), userID.ToString());
|
||||||
//}
|
//}
|
||||||
//catch (Exception e)
|
//catch (Exception e)
|
||||||
//{
|
//{
|
||||||
// m_log.ErrorFormat("[INVENTORY CONNECTOR]: GetFolderForType operation failed, {0} {1}",
|
// m_log.ErrorFormat("[INVENTORY CONNECTOR]: GetSystemFolders operation failed, {0} {1}",
|
||||||
// e.Source, e.Message);
|
// e.Source, e.Message);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue