From c72f78215bb3435ee2bbb507746c23eccec4dd34 Mon Sep 17 00:00:00 2001
From: Melanie
Date: Wed, 4 Nov 2009 01:56:19 +0000
Subject: Backport the fixes to WebFetchInventoryDescendents to the UDP
InventoryDescendents packet. Testing has shown that UDP inventory now works
flawlessly and, unlike CAPS inventory, doesn't download the entire agent
inventory on start. Neither does it incessantly re-request folder NULL_KEY.
Therefore, I have disabled CAPS inventory.
---
OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Framework/Communications')
diff --git a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
index aa71536..6648c36 100644
--- a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
+++ b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
@@ -679,7 +679,7 @@ namespace OpenSim.Framework.Communications.Cache
///
///
/// true if the request was queued or successfully processed, false otherwise
- public bool SendInventoryDecendents(IClientAPI client, UUID folderID, bool fetchFolders, bool fetchItems)
+ public bool SendInventoryDecendents(IClientAPI client, UUID folderID, int version, bool fetchFolders, bool fetchItems)
{
if (m_hasReceivedInventory)
{
@@ -693,7 +693,7 @@ namespace OpenSim.Framework.Communications.Cache
client.SendInventoryFolderDetails(
client.AgentId, folderID, folder.RequestListOfItems(),
- folder.RequestListOfFolders(), fetchFolders, fetchItems);
+ folder.RequestListOfFolders(), version, fetchFolders, fetchItems);
return true;
}
--
cgit v1.1
From 2f092d271e80dbc7af47671fbb946de75b6110a9 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Thu, 12 Nov 2009 18:44:03 +0000
Subject: Rename test services to mock services, since this is a more accurate
description remove duplicate mock inventory service
---
.../Communications/Tests/LoginServiceTests.cs | 151 +--------------------
1 file changed, 4 insertions(+), 147 deletions(-)
(limited to 'OpenSim/Framework/Communications')
diff --git a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
index e891d9c..60f0ba8 100644
--- a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
+++ b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
@@ -75,7 +75,7 @@ namespace OpenSim.Framework.Communications.Tests
m_regionConnector.AddRegion(new RegionInfo(42, 43, m_capsEndPoint, m_regionExternalName));
- //IInventoryService m_inventoryService = new TestInventoryService();
+ //IInventoryService m_inventoryService = new MockInventoryService();
m_localUserServices = (LocalUserServices) m_commsManager.UserService;
m_localUserServices.AddUser(m_firstName,m_lastName,"boingboing","abc@ftw.com",42,43);
@@ -95,7 +95,8 @@ namespace OpenSim.Framework.Communications.Tests
TestHelper.InMethod();
// We want to use our own LoginService for this test, one that
// doesn't require authentication.
- new LLStandaloneLoginService((UserManagerBase)m_commsManager.UserService, "Hello folks", new TestInventoryService(),
+ new LLStandaloneLoginService(
+ (UserManagerBase)m_commsManager.UserService, "Hello folks", new MockInventoryService(),
m_commsManager.NetworkServersInfo, false, new LibraryRootFolder(String.Empty), m_regionConnector);
Hashtable loginParams = new Hashtable();
@@ -457,148 +458,4 @@ namespace OpenSim.Framework.Communications.Tests
#endregion
}
}
-
- class TestInventoryService : IInventoryService
- {
- public TestInventoryService()
- {
- }
-
- ///
- ///
- ///
- ///
- ///
- public bool CreateUserInventory(UUID userId)
- {
- return false;
- }
-
- ///
- ///
- ///
- ///
- ///
- public List GetInventorySkeleton(UUID userId)
- {
- List folders = new List();
- InventoryFolderBase folder = new InventoryFolderBase();
- folder.ID = UUID.Random();
- folder.Owner = userId;
- folders.Add(folder);
- return folders;
- }
-
- ///
- /// Returns a list of all the active gestures in a user's inventory.
- ///
- ///
- /// The of the user
- ///
- ///
- /// A flat list of the gesture items.
- ///
- public List GetActiveGestures(UUID userId)
- {
- return null;
- }
-
- public InventoryCollection GetUserInventory(UUID userID)
- {
- return null;
- }
-
- public void GetUserInventory(UUID userID, OpenSim.Services.Interfaces.InventoryReceiptCallback callback)
- {
- }
-
- public InventoryFolderBase GetFolderForType(UUID userID, AssetType type)
- {
- return null;
- }
-
- public InventoryCollection GetFolderContent(UUID userID, UUID folderID)
- {
- return null;
- }
-
- public List GetFolderItems(UUID userID, UUID folderID)
- {
- return null;
- }
-
- public bool AddFolder(InventoryFolderBase folder)
- {
- return false;
- }
-
- public bool UpdateFolder(InventoryFolderBase folder)
- {
- return false;
- }
-
- public bool MoveFolder(InventoryFolderBase folder)
- {
- return false;
- }
-
- public bool DeleteFolders(UUID ownerID, List ids)
- {
- return false;
- }
-
- public bool PurgeFolder(InventoryFolderBase folder)
- {
- return false;
- }
-
- public bool AddItem(InventoryItemBase item)
- {
- return false;
- }
-
- public bool UpdateItem(InventoryItemBase item)
- {
- return false;
- }
-
- public bool MoveItems(UUID owner, List items)
- {
- return false;
- }
-
- public bool DeleteItems(UUID owner, List items)
- {
- return false;
- }
-
- public InventoryItemBase GetItem(InventoryItemBase item)
- {
- return null;
- }
-
- public InventoryFolderBase GetFolder(InventoryFolderBase folder)
- {
- return null;
- }
-
- public bool HasInventoryForUser(UUID userID)
- {
- return false;
- }
-
- public InventoryFolderBase GetRootFolder(UUID userID)
- {
- InventoryFolderBase root = new InventoryFolderBase();
- root.ID = UUID.Random();
- root.Owner = userID;
- root.ParentID = UUID.Zero;
- return root;
- }
-
- public int GetAssetPermissions(UUID userID, UUID assetID)
- {
- return 1;
- }
- }
-}
+}
\ No newline at end of file
--
cgit v1.1
From d95df603dfc8e6a033649be669c6b54071ccb7d4 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Thu, 12 Nov 2009 19:33:38 +0000
Subject: move fake user service to a separate mock user service class delete
asset cache tests shell
---
.../Communications/Tests/Cache/AssetCacheTests.cs | 159 ---------------------
1 file changed, 159 deletions(-)
delete mode 100644 OpenSim/Framework/Communications/Tests/Cache/AssetCacheTests.cs
(limited to 'OpenSim/Framework/Communications')
diff --git a/OpenSim/Framework/Communications/Tests/Cache/AssetCacheTests.cs b/OpenSim/Framework/Communications/Tests/Cache/AssetCacheTests.cs
deleted file mode 100644
index caaebd7..0000000
--- a/OpenSim/Framework/Communications/Tests/Cache/AssetCacheTests.cs
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * Copyright (c) Contributors, http://opensimulator.org/
- * See CONTRIBUTORS.TXT for a full list of copyright holders.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the OpenSimulator Project nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Threading;
-using NUnit.Framework;
-using NUnit.Framework.SyntaxHelpers;
-using OpenMetaverse;
-using OpenSim.Framework;
-using OpenSim.Framework.Communications.Cache;
-using OpenSim.Services.Interfaces;
-using OpenSim.Tests.Common.Mock;
-
-namespace OpenSim.Framework.Communications.Tests
-{
- ///
- /// Asset cache tests
- ///
- [TestFixture]
- public class AssetCacheTests
- {
- private class FakeUserService : IUserService
- {
- public void AddTemporaryUserProfile(UserProfileData userProfile)
- {
- throw new NotImplementedException();
- }
-
- public UserProfileData GetUserProfile(string firstName, string lastName)
- {
- throw new NotImplementedException();
- }
-
- public UserProfileData GetUserProfile(UUID userId)
- {
- throw new NotImplementedException();
- }
-
- public UserProfileData GetUserProfile(Uri uri)
- {
- UserProfileData userProfile = new UserProfileData();
-
-// userProfile.ID = new UUID(Util.GetHashGuid(uri.ToString(), AssetCache.AssetInfo.Secret));
-
- return userProfile;
- }
-
- public Uri GetUserUri(UserProfileData userProfile)
- {
- throw new NotImplementedException();
- }
-
- public UserAgentData GetAgentByUUID(UUID userId)
- {
- throw new NotImplementedException();
- }
-
- public void ClearUserAgent(UUID avatarID)
- {
- throw new NotImplementedException();
- }
-
- public List GenerateAgentPickerRequestResponse(UUID QueryID, string Query)
- {
- throw new NotImplementedException();
- }
-
- public UserProfileData SetupMasterUser(string firstName, string lastName)
- {
- throw new NotImplementedException();
- }
-
- public UserProfileData SetupMasterUser(string firstName, string lastName, string password)
- {
- throw new NotImplementedException();
- }
-
- public UserProfileData SetupMasterUser(UUID userId)
- {
- throw new NotImplementedException();
- }
-
- public bool UpdateUserProfile(UserProfileData data)
- {
- throw new NotImplementedException();
- }
-
- public void AddNewUserFriend(UUID friendlistowner, UUID friend, uint perms)
- {
- throw new NotImplementedException();
- }
-
- public void RemoveUserFriend(UUID friendlistowner, UUID friend)
- {
- throw new NotImplementedException();
- }
-
- public void UpdateUserFriendPerms(UUID friendlistowner, UUID friend, uint perms)
- {
- throw new NotImplementedException();
- }
-
- public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, Vector3 position, Vector3 lookat)
- {
- throw new NotImplementedException();
- }
-
- public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, float posx, float posy, float posz)
- {
- throw new NotImplementedException();
- }
-
- public List GetUserFriendList(UUID friendlistowner)
- {
- throw new NotImplementedException();
- }
-
- public bool VerifySession(UUID userID, UUID sessionID)
- {
- return true;
- }
-
- public void SetInventoryService(IInventoryService inv)
- {
- throw new NotImplementedException();
- }
-
- public virtual bool AuthenticateUserByPassword(UUID userID, string password)
- {
- throw new NotImplementedException();
- }
- }
- }
-}
--
cgit v1.1
From 0712196c262d24e3d4ca0d13abac0bd3fa6964cf Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 13 Nov 2009 18:56:23 +0000
Subject: make logging less verbose when loading iars
---
OpenSim/Framework/Communications/Osp/OspResolver.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Framework/Communications')
diff --git a/OpenSim/Framework/Communications/Osp/OspResolver.cs b/OpenSim/Framework/Communications/Osp/OspResolver.cs
index 32f0efc..4013896 100644
--- a/OpenSim/Framework/Communications/Osp/OspResolver.cs
+++ b/OpenSim/Framework/Communications/Osp/OspResolver.cs
@@ -93,7 +93,7 @@ namespace OpenSim.Framework.Communications.Osp
if (!ospa.StartsWith(OSPA_PREFIX))
return UUID.Zero;
- m_log.DebugFormat("[OSP RESOLVER]: Resolving {0}", ospa);
+// m_log.DebugFormat("[OSP RESOLVER]: Resolving {0}", ospa);
string ospaMeat = ospa.Substring(OSPA_PREFIX.Length);
string[] ospaTuples = ospaMeat.Split(OSPA_TUPLE_SEPARATOR_ARRAY);
--
cgit v1.1