From eacba916ec0022b35979403d285b1a4e991ed1f7 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Sun, 13 Apr 2008 23:38:51 +0000 Subject: * Reverse mantis #912 since it was causing inventory to disappear from the root folder on 1.19.1.4 non-cache clear relog. * The folder version numbers probably do need to be non-zero, but there is a further subtlety of the protocol to understand first --- OpenSim/Framework/Communications/Capabilities/Caps.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index d859227..050657d 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs @@ -272,7 +272,16 @@ namespace OpenSim.Region.Capabilities contents.agent___id = m_agentID; contents.owner___id = invFetch.owner_id; contents.folder___id = invFetch.folder_id; - contents.version = 1; //FixMe + + // In http://opensimulator.org/mantis/view.php?id=912 we tried changing this to 1 instead. + // Unfortunately, on 1.19.1.4, this means that we see a problem where on subsequent logins + // without clearing client cache, objects in the root folder disappear until the cache is cleared, + // at which point they reappear. + // + // Seeing the version to something other than 0 may be the right thing to do, but there is + // a greater subtlety of the second life protocol that needs to be understood first. + contents.version = 0; + contents.descendents = 0; reply.folders.Array.Add(contents); List itemList = null; -- cgit v1.1