diff options
Diffstat (limited to '')
21 files changed, 125 insertions, 286 deletions
diff --git a/OpenSim/Framework/RegionSettings.cs b/OpenSim/Framework/RegionSettings.cs index 8d1212b..673cf20 100644 --- a/OpenSim/Framework/RegionSettings.cs +++ b/OpenSim/Framework/RegionSettings.cs | |||
@@ -33,8 +33,6 @@ namespace OpenSim.Framework | |||
33 | { | 33 | { |
34 | public class RegionSettings | 34 | public class RegionSettings |
35 | { | 35 | { |
36 | private ConfigurationMember configMember; | ||
37 | |||
38 | public delegate void SaveDelegate(RegionSettings rs); | 36 | public delegate void SaveDelegate(RegionSettings rs); |
39 | 37 | ||
40 | public event SaveDelegate OnSave; | 38 | public event SaveDelegate OnSave; |
@@ -47,202 +45,6 @@ namespace OpenSim.Framework | |||
47 | public static readonly UUID DEFAULT_TERRAIN_TEXTURE_3 = new UUID("179cdabd-398a-9b6b-1391-4dc333ba321f"); | 45 | public static readonly UUID DEFAULT_TERRAIN_TEXTURE_3 = new UUID("179cdabd-398a-9b6b-1391-4dc333ba321f"); |
48 | public static readonly UUID DEFAULT_TERRAIN_TEXTURE_4 = new UUID("beb169c7-11ea-fff2-efe5-0f24dc881df2"); | 46 | public static readonly UUID DEFAULT_TERRAIN_TEXTURE_4 = new UUID("beb169c7-11ea-fff2-efe5-0f24dc881df2"); |
49 | 47 | ||
50 | public RegionSettings() | ||
51 | { | ||
52 | if (configMember == null) | ||
53 | { | ||
54 | try | ||
55 | { | ||
56 | configMember = new ConfigurationMember(Path.Combine(Util.configDir(), "estate_settings.xml"), "ESTATE SETTINGS", LoadConfigurationOptions, HandleIncomingConfiguration, true); | ||
57 | configMember.performConfigurationRetrieve(); | ||
58 | } | ||
59 | catch (Exception) | ||
60 | { | ||
61 | } | ||
62 | } | ||
63 | } | ||
64 | |||
65 | public void LoadConfigurationOptions() | ||
66 | { | ||
67 | configMember.addConfigurationOption("region_flags", | ||
68 | ConfigurationOption.ConfigurationTypes.TYPE_UINT32, | ||
69 | String.Empty, "336723974", true); | ||
70 | |||
71 | configMember.addConfigurationOption("max_agents", | ||
72 | ConfigurationOption.ConfigurationTypes.TYPE_INT32, | ||
73 | String.Empty, "40", true); | ||
74 | |||
75 | configMember.addConfigurationOption("object_bonus_factor", | ||
76 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
77 | String.Empty, "1.0", true); | ||
78 | |||
79 | configMember.addConfigurationOption("sim_access", | ||
80 | ConfigurationOption.ConfigurationTypes.TYPE_INT32, | ||
81 | String.Empty, "21", true); | ||
82 | |||
83 | configMember.addConfigurationOption("terrain_base_0", | ||
84 | ConfigurationOption.ConfigurationTypes.TYPE_UUID, | ||
85 | String.Empty, DEFAULT_TERRAIN_TEXTURE_1.ToString(), true); | ||
86 | |||
87 | configMember.addConfigurationOption("terrain_base_1", | ||
88 | ConfigurationOption.ConfigurationTypes.TYPE_UUID, | ||
89 | String.Empty, DEFAULT_TERRAIN_TEXTURE_2.ToString(), true); | ||
90 | |||
91 | configMember.addConfigurationOption("terrain_base_2", | ||
92 | ConfigurationOption.ConfigurationTypes.TYPE_UUID, | ||
93 | String.Empty, DEFAULT_TERRAIN_TEXTURE_3.ToString(), true); | ||
94 | |||
95 | configMember.addConfigurationOption("terrain_base_3", | ||
96 | ConfigurationOption.ConfigurationTypes.TYPE_UUID, | ||
97 | String.Empty, DEFAULT_TERRAIN_TEXTURE_4.ToString(), true); | ||
98 | |||
99 | configMember.addConfigurationOption("terrain_start_height_0", | ||
100 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
101 | String.Empty, "10.0", true); | ||
102 | |||
103 | configMember.addConfigurationOption("terrain_start_height_1", | ||
104 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
105 | String.Empty, "10.0", true); | ||
106 | |||
107 | configMember.addConfigurationOption("terrain_start_height_2", | ||
108 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
109 | String.Empty, "10.0", true); | ||
110 | |||
111 | configMember.addConfigurationOption("terrain_start_height_3", | ||
112 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
113 | String.Empty, "10.0", true); | ||
114 | |||
115 | configMember.addConfigurationOption("terrain_height_range_0", | ||
116 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
117 | String.Empty, "60.0", true); | ||
118 | |||
119 | configMember.addConfigurationOption("terrain_height_range_1", | ||
120 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
121 | String.Empty, "60.0", true); | ||
122 | |||
123 | configMember.addConfigurationOption("terrain_height_range_2", | ||
124 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
125 | String.Empty, "60.0", true); | ||
126 | |||
127 | configMember.addConfigurationOption("terrain_height_range_3", | ||
128 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
129 | String.Empty, "60.0", true); | ||
130 | |||
131 | configMember.addConfigurationOption("region_water_height", | ||
132 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
133 | String.Empty, "20.0", true); | ||
134 | |||
135 | configMember.addConfigurationOption("terrain_raise_limit", | ||
136 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
137 | String.Empty, "100.0", true); | ||
138 | |||
139 | configMember.addConfigurationOption("terrain_lower_limit", | ||
140 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
141 | String.Empty, "-100.0", true); | ||
142 | |||
143 | configMember.addConfigurationOption("sun_hour", | ||
144 | ConfigurationOption.ConfigurationTypes.TYPE_DOUBLE, | ||
145 | String.Empty, "0.0", true); | ||
146 | } | ||
147 | |||
148 | public bool HandleIncomingConfiguration(string key, object value) | ||
149 | { | ||
150 | switch (key) | ||
151 | { | ||
152 | case "region_flags": | ||
153 | RegionFlags flags = (RegionFlags)(uint)value; | ||
154 | |||
155 | m_BlockTerraform = | ||
156 | (flags & RegionFlags.BlockTerraform) != 0; | ||
157 | m_BlockFly = | ||
158 | (flags & RegionFlags.NoFly) != 0; | ||
159 | m_AllowDamage = | ||
160 | (flags & RegionFlags.AllowDamage) != 0; | ||
161 | m_RestrictPushing = | ||
162 | (flags & RegionFlags.RestrictPushObject) != 0; | ||
163 | m_AllowLandResell = | ||
164 | (flags & RegionFlags.BlockLandResell) == 0; | ||
165 | m_AllowLandJoinDivide = | ||
166 | (flags & RegionFlags.AllowParcelChanges) != 0; | ||
167 | m_BlockShowInSearch = | ||
168 | ((uint)flags & (1 << 29)) != 0; | ||
169 | m_DisableScripts = | ||
170 | (flags & RegionFlags.SkipScripts) != 0; | ||
171 | m_DisableCollisions = | ||
172 | (flags & RegionFlags.SkipCollisions) != 0; | ||
173 | m_DisablePhysics = | ||
174 | (flags & RegionFlags.SkipPhysics) != 0; | ||
175 | m_FixedSun = | ||
176 | (flags & RegionFlags.SunFixed) != 0; | ||
177 | m_Sandbox = | ||
178 | (flags & RegionFlags.Sandbox) != 0; | ||
179 | break; | ||
180 | case "max_agents": | ||
181 | m_AgentLimit = (int)value; | ||
182 | break; | ||
183 | case "object_bonus_factor": | ||
184 | m_ObjectBonus = (double)value; | ||
185 | break; | ||
186 | case "sim_access": | ||
187 | int access = (int)value; | ||
188 | if (access <= 13) | ||
189 | m_Maturity = 0; | ||
190 | else | ||
191 | m_Maturity = 1; | ||
192 | break; | ||
193 | case "terrain_base_0": | ||
194 | m_TerrainTexture1 = (UUID)value; | ||
195 | break; | ||
196 | case "terrain_base_1": | ||
197 | m_TerrainTexture2 = (UUID)value; | ||
198 | break; | ||
199 | case "terrain_base_2": | ||
200 | m_TerrainTexture3 = (UUID)value; | ||
201 | break; | ||
202 | case "terrain_base_3": | ||
203 | m_TerrainTexture4 = (UUID)value; | ||
204 | break; | ||
205 | case "terrain_start_height_0": | ||
206 | m_Elevation1SW = (double)value; | ||
207 | break; | ||
208 | case "terrain_start_height_1": | ||
209 | m_Elevation1NW = (double)value; | ||
210 | break; | ||
211 | case "terrain_start_height_2": | ||
212 | m_Elevation1SE = (double)value; | ||
213 | break; | ||
214 | case "terrain_start_height_3": | ||
215 | m_Elevation1NE = (double)value; | ||
216 | break; | ||
217 | case "terrain_height_range_0": | ||
218 | m_Elevation2SW = (double)value; | ||
219 | break; | ||
220 | case "terrain_height_range_1": | ||
221 | m_Elevation2NW = (double)value; | ||
222 | break; | ||
223 | case "terrain_height_range_2": | ||
224 | m_Elevation2SE = (double)value; | ||
225 | break; | ||
226 | case "terrain_height_range_3": | ||
227 | m_Elevation2NE = (double)value; | ||
228 | break; | ||
229 | case "region_water_height": | ||
230 | m_WaterHeight = (double)value; | ||
231 | break; | ||
232 | case "terrain_raise_limit": | ||
233 | m_TerrainRaiseLimit = (double)value; | ||
234 | break; | ||
235 | case "terrain_lower_limit": | ||
236 | m_TerrainLowerLimit = (double)value; | ||
237 | break; | ||
238 | case "sun_hour": | ||
239 | m_SunPosition = (double)value; | ||
240 | break; | ||
241 | } | ||
242 | |||
243 | return true; | ||
244 | } | ||
245 | |||
246 | public void Save() | 48 | public void Save() |
247 | { | 49 | { |
248 | if (OnSave != null) | 50 | if (OnSave != null) |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index fa72410..ce9f145 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -2743,7 +2743,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2743 | DirPlacesReplyPacket.StatusDataBlock[] status = | 2743 | DirPlacesReplyPacket.StatusDataBlock[] status = |
2744 | new DirPlacesReplyPacket.StatusDataBlock[0]; | 2744 | new DirPlacesReplyPacket.StatusDataBlock[0]; |
2745 | 2745 | ||
2746 | int i = 0; | ||
2747 | foreach (DirPlacesReplyData d in data) | 2746 | foreach (DirPlacesReplyData d in data) |
2748 | { | 2747 | { |
2749 | int idx = replies.Length; | 2748 | int idx = replies.Length; |
@@ -2779,7 +2778,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2779 | 2778 | ||
2780 | replies = new DirPlacesReplyPacket.QueryRepliesBlock[0]; | 2779 | replies = new DirPlacesReplyPacket.QueryRepliesBlock[0]; |
2781 | status = new DirPlacesReplyPacket.StatusDataBlock[0]; | 2780 | status = new DirPlacesReplyPacket.StatusDataBlock[0]; |
2782 | |||
2783 | } | 2781 | } |
2784 | } | 2782 | } |
2785 | 2783 | ||
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs index 1603c07..fc1afaf 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs | |||
@@ -223,4 +223,4 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
223 | OnInstantMessage(null, msg); | 223 | OnInstantMessage(null, msg); |
224 | } | 224 | } |
225 | } | 225 | } |
226 | } | 226 | } \ No newline at end of file |
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs index e1ee0b1..a49faec 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs | |||
@@ -132,8 +132,6 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
132 | { | 132 | { |
133 | UUID toAgentID = new UUID(im.toAgentID); | 133 | UUID toAgentID = new UUID(im.toAgentID); |
134 | 134 | ||
135 | //m_log.DebugFormat("[INSTANT MESSAGE]: Attempting delivery of IM from {0} to {1}", im.fromAgentName, toAgentID.ToString()); | ||
136 | |||
137 | // Try root avatar only first | 135 | // Try root avatar only first |
138 | foreach (Scene scene in m_Scenes) | 136 | foreach (Scene scene in m_Scenes) |
139 | { | 137 | { |
@@ -176,6 +174,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
176 | } | 174 | } |
177 | } | 175 | } |
178 | 176 | ||
177 | m_log.DebugFormat("[INSTANT MESSAGE]: Delivering IM to {0} via XMLRPC", im.toAgentID); | ||
179 | SendGridInstantMessageViaXMLRPC(im, result); | 178 | SendGridInstantMessageViaXMLRPC(im, result); |
180 | 179 | ||
181 | return; | 180 | return; |
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs index 4465e8a..a08a628 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs | |||
@@ -32,7 +32,6 @@ using log4net; | |||
32 | using Nini.Config; | 32 | using Nini.Config; |
33 | using OpenMetaverse; | 33 | using OpenMetaverse; |
34 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
35 | |||
36 | using OpenSim.Region.Framework.Interfaces; | 35 | using OpenSim.Region.Framework.Interfaces; |
37 | using OpenSim.Region.Framework.Scenes; | 36 | using OpenSim.Region.Framework.Scenes; |
38 | using OpenSim.Services.Interfaces; | 37 | using OpenSim.Services.Interfaces; |
@@ -92,7 +91,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer | |||
92 | m_TransferModule = m_Scenelist[0].RequestModuleInterface<IMessageTransferModule>(); | 91 | m_TransferModule = m_Scenelist[0].RequestModuleInterface<IMessageTransferModule>(); |
93 | if (m_TransferModule == null) | 92 | if (m_TransferModule == null) |
94 | { | 93 | { |
95 | m_log.Error("[INVENTORY TRANSFER] No Message transfer module found, transfers will be local only"); | 94 | m_log.Error("[INVENTORY TRANSFER]: No Message transfer module found, transfers will be local only"); |
96 | m_Enabled = false; | 95 | m_Enabled = false; |
97 | 96 | ||
98 | m_Scenelist.Clear(); | 97 | m_Scenelist.Clear(); |
@@ -185,7 +184,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer | |||
185 | { | 184 | { |
186 | UUID folderID = new UUID(im.binaryBucket, 1); | 185 | UUID folderID = new UUID(im.binaryBucket, 1); |
187 | 186 | ||
188 | m_log.DebugFormat("[AGENT INVENTORY]: Inserting original folder {0} "+ | 187 | m_log.DebugFormat("[INVENTORY TRANSFER]: Inserting original folder {0} "+ |
189 | "into agent {1}'s inventory", | 188 | "into agent {1}'s inventory", |
190 | folderID, new UUID(im.toAgentID)); | 189 | folderID, new UUID(im.toAgentID)); |
191 | 190 | ||
@@ -221,7 +220,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer | |||
221 | 220 | ||
222 | UUID itemID = new UUID(im.binaryBucket, 1); | 221 | UUID itemID = new UUID(im.binaryBucket, 1); |
223 | 222 | ||
224 | m_log.DebugFormat("[AGENT INVENTORY]: (giving) Inserting item {0} "+ | 223 | m_log.DebugFormat("[INVENTORY TRANSFER]: (giving) Inserting item {0} "+ |
225 | "into agent {1}'s inventory", | 224 | "into agent {1}'s inventory", |
226 | itemID, new UUID(im.toAgentID)); | 225 | itemID, new UUID(im.toAgentID)); |
227 | 226 | ||
@@ -288,10 +287,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer | |||
288 | // inventory is loaded. Courtesy of the above bulk update, | 287 | // inventory is loaded. Courtesy of the above bulk update, |
289 | // It will have been pushed to the client, too | 288 | // It will have been pushed to the client, too |
290 | // | 289 | // |
291 | |||
292 | //CachedUserInfo userInfo = | ||
293 | // scene.CommsManager.UserProfileCacheService. | ||
294 | // GetUserDetails(client.AgentId); | ||
295 | IInventoryService invService = scene.InventoryService; | 290 | IInventoryService invService = scene.InventoryService; |
296 | 291 | ||
297 | InventoryFolderBase trashFolder = | 292 | InventoryFolderBase trashFolder = |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs index 1e51187..dcf08e3 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs | |||
@@ -27,15 +27,12 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | |||
31 | using OpenMetaverse; | 30 | using OpenMetaverse; |
32 | using Nini.Config; | 31 | using Nini.Config; |
33 | using log4net; | 32 | using log4net; |
34 | |||
35 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
36 | using OpenSim.Services.Interfaces; | 34 | using OpenSim.Services.Interfaces; |
37 | 35 | ||
38 | |||
39 | namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | 36 | namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory |
40 | { | 37 | { |
41 | public abstract class BaseInventoryConnector : IInventoryService | 38 | public abstract class BaseInventoryConnector : IInventoryService |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/InventoryCache.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/InventoryCache.cs index c97ab9e..4e2f602 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/InventoryCache.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/InventoryCache.cs | |||
@@ -161,6 +161,8 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
161 | /// <returns></returns> | 161 | /// <returns></returns> |
162 | public InventoryFolderBase GetFolderForType(UUID userID, AssetType type) | 162 | public InventoryFolderBase GetFolderForType(UUID userID, AssetType type) |
163 | { | 163 | { |
164 | m_log.DebugFormat("[INVENTORY CACHE]: Getting folder for asset type {0} for user {1}", type, userID); | ||
165 | |||
164 | Dictionary<AssetType, InventoryFolderBase> folders = null; | 166 | Dictionary<AssetType, InventoryFolderBase> folders = null; |
165 | 167 | ||
166 | lock (m_InventoryCache) | 168 | lock (m_InventoryCache) |
@@ -177,8 +179,13 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
177 | 179 | ||
178 | if ((folders != null) && folders.ContainsKey(type)) | 180 | if ((folders != null) && folders.ContainsKey(type)) |
179 | { | 181 | { |
182 | m_log.DebugFormat( | ||
183 | "[INVENTORY CACHE]: Returning folder {0} as type {1} for {2}", folders[type], type, userID); | ||
184 | |||
180 | return folders[type]; | 185 | return folders[type]; |
181 | } | 186 | } |
187 | |||
188 | m_log.WarnFormat("[INVENTORY CACHE]: Could not find folder for system type {0} for {1}", type, userID); | ||
182 | 189 | ||
183 | return null; | 190 | return null; |
184 | } | 191 | } |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs index 22bd04c..350ad66 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs | |||
@@ -216,13 +216,29 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
216 | return m_InventoryService.PurgeFolder(folder); | 216 | return m_InventoryService.PurgeFolder(folder); |
217 | } | 217 | } |
218 | 218 | ||
219 | /// <summary> | ||
220 | /// Add a new item to the user's inventory | ||
221 | /// </summary> | ||
222 | /// <param name="item"></param> | ||
223 | /// <returns>true if the item was successfully added</returns> | ||
224 | public bool AddItem(InventoryItemBase item) | 219 | public bool AddItem(InventoryItemBase item) |
225 | { | 220 | { |
221 | m_log.DebugFormat( | ||
222 | "[LOCAL INVENTORY SERVICES CONNECTOR]: Adding inventory item {0} to user {1} folder {2}", | ||
223 | item.Name, item.Owner, item.Folder); | ||
224 | |||
225 | if (UUID.Zero == item.Folder) | ||
226 | { | ||
227 | InventoryFolderBase f = m_InventoryService.GetFolderForType(item.Owner, (AssetType)item.AssetType); | ||
228 | if (f != null) | ||
229 | { | ||
230 | item.Folder = f.ID; | ||
231 | } | ||
232 | else | ||
233 | { | ||
234 | f = m_InventoryService.GetRootFolder(item.Owner); | ||
235 | if (f != null) | ||
236 | item.Folder = f.ID; | ||
237 | else | ||
238 | return false; | ||
239 | } | ||
240 | } | ||
241 | |||
226 | return m_InventoryService.AddItem(item); | 242 | return m_InventoryService.AddItem(item); |
227 | } | 243 | } |
228 | 244 | ||
@@ -236,7 +252,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
236 | return m_InventoryService.UpdateItem(item); | 252 | return m_InventoryService.UpdateItem(item); |
237 | } | 253 | } |
238 | 254 | ||
239 | |||
240 | public bool MoveItems(UUID ownerID, List<InventoryItemBase> items) | 255 | public bool MoveItems(UUID ownerID, List<InventoryItemBase> items) |
241 | { | 256 | { |
242 | return m_InventoryService.MoveItems(ownerID, items); | 257 | return m_InventoryService.MoveItems(ownerID, items); |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs index 153aeec..17d80c7 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs | |||
@@ -75,7 +75,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
75 | base.Init(source); | 75 | base.Init(source); |
76 | } | 76 | } |
77 | 77 | ||
78 | |||
79 | #region ISharedRegionModule | 78 | #region ISharedRegionModule |
80 | 79 | ||
81 | public void Initialise(IConfigSource source) | 80 | public void Initialise(IConfigSource source) |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs index ada26cc..7ac3bb9 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs | |||
@@ -228,6 +228,23 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
228 | { | 228 | { |
229 | if (item == null) | 229 | if (item == null) |
230 | return false; | 230 | return false; |
231 | |||
232 | if (UUID.Zero == item.Folder) | ||
233 | { | ||
234 | InventoryFolderBase f = m_RemoteConnector.GetFolderForType(item.Owner, (AssetType)item.AssetType); | ||
235 | if (f != null) | ||
236 | { | ||
237 | item.Folder = f.ID; | ||
238 | } | ||
239 | else | ||
240 | { | ||
241 | f = m_RemoteConnector.GetRootFolder(item.Owner); | ||
242 | if (f != null) | ||
243 | item.Folder = f.ID; | ||
244 | else | ||
245 | return false; | ||
246 | } | ||
247 | } | ||
231 | 248 | ||
232 | return m_RemoteConnector.AddItem(item); | 249 | return m_RemoteConnector.AddItem(item); |
233 | } | 250 | } |
@@ -294,9 +311,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
294 | return m_RemoteConnector.GetAssetPermissions(userID, assetID); | 311 | return m_RemoteConnector.GetAssetPermissions(userID, assetID); |
295 | } | 312 | } |
296 | 313 | ||
297 | |||
298 | #endregion | 314 | #endregion |
299 | |||
300 | |||
301 | } | 315 | } |
302 | } | 316 | } \ No newline at end of file |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index ab18c93..0384224 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -984,7 +984,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
984 | 984 | ||
985 | private InventoryItemBase CreateAgentInventoryItemFromTask(UUID destAgent, SceneObjectPart part, UUID itemId) | 985 | private InventoryItemBase CreateAgentInventoryItemFromTask(UUID destAgent, SceneObjectPart part, UUID itemId) |
986 | { | 986 | { |
987 | Console.WriteLine("CreateAgentInventoryItemFromTask"); | ||
988 | TaskInventoryItem taskItem = part.Inventory.GetInventoryItem(itemId); | 987 | TaskInventoryItem taskItem = part.Inventory.GetInventoryItem(itemId); |
989 | 988 | ||
990 | if (null == taskItem) | 989 | if (null == taskItem) |
@@ -1055,7 +1054,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
1055 | /// <param name="itemID"></param> | 1054 | /// <param name="itemID"></param> |
1056 | public InventoryItemBase MoveTaskInventoryItem(IClientAPI remoteClient, UUID folderId, SceneObjectPart part, UUID itemId) | 1055 | public InventoryItemBase MoveTaskInventoryItem(IClientAPI remoteClient, UUID folderId, SceneObjectPart part, UUID itemId) |
1057 | { | 1056 | { |
1058 | m_log.Info("Adding task inventory"); | 1057 | m_log.DebugFormat( |
1058 | "[PRIM INVENTORY]: Adding item {0} from {1} to folder {2} for {3}", | ||
1059 | itemId, part.Name, folderId, remoteClient.Name); | ||
1060 | |||
1059 | InventoryItemBase agentItem = CreateAgentInventoryItemFromTask(remoteClient.AgentId, part, itemId); | 1061 | InventoryItemBase agentItem = CreateAgentInventoryItemFromTask(remoteClient.AgentId, part, itemId); |
1060 | 1062 | ||
1061 | if (agentItem == null) | 1063 | if (agentItem == null) |
@@ -1121,7 +1123,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
1121 | /// <see>MoveTaskInventoryItem</see> | 1123 | /// <see>MoveTaskInventoryItem</see> |
1122 | /// </summary> | 1124 | /// </summary> |
1123 | /// <param name="remoteClient"></param> | 1125 | /// <param name="remoteClient"></param> |
1124 | /// <param name="folderID"></param> | 1126 | /// <param name="folderID"> |
1127 | /// The user inventory folder to move (or copy) the item to. If null, then the most | ||
1128 | /// suitable system folder is used (e.g. the Objects folder for objects). If there is no suitable folder, then | ||
1129 | /// the item is placed in the user's root inventory folder | ||
1130 | /// </param> | ||
1125 | /// <param name="part"></param> | 1131 | /// <param name="part"></param> |
1126 | /// <param name="itemID"></param> | 1132 | /// <param name="itemID"></param> |
1127 | public InventoryItemBase MoveTaskInventoryItem(UUID avatarId, UUID folderId, SceneObjectPart part, UUID itemId) | 1133 | public InventoryItemBase MoveTaskInventoryItem(UUID avatarId, UUID folderId, SceneObjectPart part, UUID itemId) |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 94b9d40..1e2e0c8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -4179,8 +4179,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4179 | } | 4179 | } |
4180 | 4180 | ||
4181 | // destination is an avatar | 4181 | // destination is an avatar |
4182 | InventoryItemBase agentItem = | 4182 | InventoryItemBase agentItem = World.MoveTaskInventoryItem(destId, UUID.Zero, m_host, objId); |
4183 | World.MoveTaskInventoryItem(destId, UUID.Zero, m_host, objId); | ||
4184 | 4183 | ||
4185 | if (agentItem == null) | 4184 | if (agentItem == null) |
4186 | return; | 4185 | return; |
@@ -4190,7 +4189,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4190 | byte[] objBytes = agentItem.ID.GetBytes(); | 4189 | byte[] objBytes = agentItem.ID.GetBytes(); |
4191 | Array.Copy(objBytes, 0, bucket, 1, 16); | 4190 | Array.Copy(objBytes, 0, bucket, 1, 16); |
4192 | 4191 | ||
4193 | Console.WriteLine("Giving inventory"); | ||
4194 | GridInstantMessage msg = new GridInstantMessage(World, | 4192 | GridInstantMessage msg = new GridInstantMessage(World, |
4195 | m_host.UUID, m_host.Name+", an object owned by "+ | 4193 | m_host.UUID, m_host.Name+", an object owned by "+ |
4196 | resolveName(m_host.OwnerID)+",", destId, | 4194 | resolveName(m_host.OwnerID)+",", destId, |
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 0f274f3..e5e8a56 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -1373,7 +1373,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1373 | { | 1373 | { |
1374 | sdoc.LoadXml(xml); | 1374 | sdoc.LoadXml(xml); |
1375 | } | 1375 | } |
1376 | catch (System.Xml.XmlException e) | 1376 | catch (System.Xml.XmlException) |
1377 | { | 1377 | { |
1378 | loadedState = false; | 1378 | loadedState = false; |
1379 | } | 1379 | } |
diff --git a/OpenSim/Services/Connectors/Friends/FriendsServiceConnector.cs b/OpenSim/Services/Connectors/Friends/FriendsServiceConnector.cs index d7a5731..36b5083 100644 --- a/OpenSim/Services/Connectors/Friends/FriendsServiceConnector.cs +++ b/OpenSim/Services/Connectors/Friends/FriendsServiceConnector.cs | |||
@@ -156,8 +156,6 @@ namespace OpenSim.Services.Connectors | |||
156 | 156 | ||
157 | sendData["METHOD"] = "storefriend"; | 157 | sendData["METHOD"] = "storefriend"; |
158 | 158 | ||
159 | string reqString = ServerUtils.BuildQueryString(sendData); | ||
160 | |||
161 | string reply = string.Empty; | 159 | string reply = string.Empty; |
162 | try | 160 | try |
163 | { | 161 | { |
@@ -199,8 +197,6 @@ namespace OpenSim.Services.Connectors | |||
199 | sendData["FRIEND"] = Friend; | 197 | sendData["FRIEND"] = Friend; |
200 | sendData["METHOD"] = "deletefriend"; | 198 | sendData["METHOD"] = "deletefriend"; |
201 | 199 | ||
202 | string reqString = ServerUtils.BuildQueryString(sendData); | ||
203 | |||
204 | string reply = string.Empty; | 200 | string reply = string.Empty; |
205 | try | 201 | try |
206 | { | 202 | { |
@@ -232,10 +228,8 @@ namespace OpenSim.Services.Connectors | |||
232 | m_log.DebugFormat("[FRIENDS CONNECTOR]: DeleteFriend received null reply"); | 228 | m_log.DebugFormat("[FRIENDS CONNECTOR]: DeleteFriend received null reply"); |
233 | 229 | ||
234 | return false; | 230 | return false; |
235 | |||
236 | } | 231 | } |
237 | 232 | ||
238 | #endregion | 233 | #endregion |
239 | |||
240 | } | 234 | } |
241 | } | 235 | } \ No newline at end of file |
diff --git a/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs index cabee4c..8d0f7be 100644 --- a/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs +++ b/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs | |||
@@ -31,11 +31,9 @@ using System.Collections.Generic; | |||
31 | using System.Drawing; | 31 | using System.Drawing; |
32 | using System.Net; | 32 | using System.Net; |
33 | using System.Reflection; | 33 | using System.Reflection; |
34 | |||
35 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
36 | using OpenSim.Services.Interfaces; | 35 | using OpenSim.Services.Interfaces; |
37 | using GridRegion = OpenSim.Services.Interfaces.GridRegion; | 36 | using GridRegion = OpenSim.Services.Interfaces.GridRegion; |
38 | |||
39 | using OpenMetaverse; | 37 | using OpenMetaverse; |
40 | using OpenMetaverse.Imaging; | 38 | using OpenMetaverse.Imaging; |
41 | using OpenMetaverse.StructuredData; | 39 | using OpenMetaverse.StructuredData; |
@@ -50,7 +48,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
50 | { | 48 | { |
51 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 49 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
52 | 50 | ||
53 | private static UUID m_HGMapImage = new UUID("00000000-0000-1111-9999-000000000013"); | 51 | // private static UUID m_HGMapImage = new UUID("00000000-0000-1111-9999-000000000013"); |
54 | 52 | ||
55 | private IAssetService m_AssetService; | 53 | private IAssetService m_AssetService; |
56 | 54 | ||
diff --git a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs index c1e5949..4501937 100644 --- a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs +++ b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs | |||
@@ -32,12 +32,10 @@ using System.IO; | |||
32 | using System.Net; | 32 | using System.Net; |
33 | using System.Reflection; | 33 | using System.Reflection; |
34 | using System.Text; | 34 | using System.Text; |
35 | |||
36 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
37 | using OpenSim.Services.Interfaces; | 36 | using OpenSim.Services.Interfaces; |
38 | using OpenSim.Services.Connectors.Simulation; | 37 | using OpenSim.Services.Connectors.Simulation; |
39 | using GridRegion = OpenSim.Services.Interfaces.GridRegion; | 38 | using GridRegion = OpenSim.Services.Interfaces.GridRegion; |
40 | |||
41 | using OpenMetaverse; | 39 | using OpenMetaverse; |
42 | using OpenMetaverse.StructuredData; | 40 | using OpenMetaverse.StructuredData; |
43 | using log4net; | 41 | using log4net; |
@@ -243,7 +241,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
243 | { | 241 | { |
244 | response = request.Send(m_ServerURL, 10000); | 242 | response = request.Send(m_ServerURL, 10000); |
245 | } | 243 | } |
246 | catch (Exception e) | 244 | catch (Exception) |
247 | { | 245 | { |
248 | return null; | 246 | return null; |
249 | } | 247 | } |
@@ -308,13 +306,12 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
308 | } | 306 | } |
309 | 307 | ||
310 | } | 308 | } |
311 | catch (Exception e) | 309 | catch (Exception) |
312 | { | 310 | { |
313 | return null; | 311 | return null; |
314 | } | 312 | } |
315 | 313 | ||
316 | return null; | 314 | return null; |
317 | |||
318 | } | 315 | } |
319 | 316 | ||
320 | public bool AgentIsComingHome(UUID sessionID, string thisGridExternalName) | 317 | public bool AgentIsComingHome(UUID sessionID, string thisGridExternalName) |
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianAvatarServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianAvatarServiceConnector.cs index a47f32c..734bdd2 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianAvatarServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianAvatarServiceConnector.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -53,7 +53,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
53 | private static readonly ILog m_log = | 53 | private static readonly ILog m_log = |
54 | LogManager.GetLogger( | 54 | LogManager.GetLogger( |
55 | MethodBase.GetCurrentMethod().DeclaringType); | 55 | MethodBase.GetCurrentMethod().DeclaringType); |
56 | private static string ZeroID = UUID.Zero.ToString(); | 56 | // private static string ZeroID = UUID.Zero.ToString(); |
57 | 57 | ||
58 | private string m_serverUrl = String.Empty; | 58 | private string m_serverUrl = String.Empty; |
59 | 59 | ||
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianInventoryServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianInventoryServiceConnector.cs index 2b6d29c..89c1a5a 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianInventoryServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianInventoryServiceConnector.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -69,7 +69,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
69 | 69 | ||
70 | private string m_serverUrl = String.Empty; | 70 | private string m_serverUrl = String.Empty; |
71 | private string m_userServerUrl = String.Empty; | 71 | private string m_userServerUrl = String.Empty; |
72 | private object m_gestureSyncRoot = new object(); | 72 | // private object m_gestureSyncRoot = new object(); |
73 | 73 | ||
74 | #region ISharedRegionModule | 74 | #region ISharedRegionModule |
75 | 75 | ||
@@ -687,12 +687,12 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
687 | for (int i = 0; i < items.Count; i++) | 687 | for (int i = 0; i < items.Count; i++) |
688 | itemIDs[i] = items[i].AsUUID().ToString(); | 688 | itemIDs[i] = items[i].AsUUID().ToString(); |
689 | 689 | ||
690 | NameValueCollection requestArgs = new NameValueCollection | 690 | // NameValueCollection requestArgs = new NameValueCollection |
691 | { | 691 | // { |
692 | { "RequestMethod", "GetInventoryNodes" }, | 692 | // { "RequestMethod", "GetInventoryNodes" }, |
693 | { "OwnerID", userID.ToString() }, | 693 | // { "OwnerID", userID.ToString() }, |
694 | { "Items", String.Join(",", itemIDs) } | 694 | // { "Items", String.Join(",", itemIDs) } |
695 | }; | 695 | // }; |
696 | 696 | ||
697 | // FIXME: Implement this in SimianGrid | 697 | // FIXME: Implement this in SimianGrid |
698 | return new List<InventoryItemBase>(0); | 698 | return new List<InventoryItemBase>(0); |
@@ -708,12 +708,12 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
708 | /// the user's inventory</returns> | 708 | /// the user's inventory</returns> |
709 | public int GetAssetPermissions(UUID userID, UUID assetID) | 709 | public int GetAssetPermissions(UUID userID, UUID assetID) |
710 | { | 710 | { |
711 | NameValueCollection requestArgs = new NameValueCollection | 711 | // NameValueCollection requestArgs = new NameValueCollection |
712 | { | 712 | // { |
713 | { "RequestMethod", "GetInventoryNodes" }, | 713 | // { "RequestMethod", "GetInventoryNodes" }, |
714 | { "OwnerID", userID.ToString() }, | 714 | // { "OwnerID", userID.ToString() }, |
715 | { "AssetID", assetID.ToString() } | 715 | // { "AssetID", assetID.ToString() } |
716 | }; | 716 | // }; |
717 | 717 | ||
718 | // FIXME: Implement this in SimianGrid | 718 | // FIXME: Implement this in SimianGrid |
719 | return (int)PermissionMask.All; | 719 | return (int)PermissionMask.All; |
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs index 6f17931..ca23e27 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -349,24 +349,24 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
349 | return null; | 349 | return null; |
350 | } | 350 | } |
351 | 351 | ||
352 | private OSDMap GetSessionData(UUID sessionID) | 352 | // private OSDMap GetSessionData(UUID sessionID) |
353 | { | 353 | // { |
354 | m_log.DebugFormat("[SIMIAN PRESENCE CONNECTOR]: Requesting session data for session " + sessionID); | 354 | // m_log.DebugFormat("[SIMIAN PRESENCE CONNECTOR]: Requesting session data for session " + sessionID); |
355 | 355 | // | |
356 | NameValueCollection requestArgs = new NameValueCollection | 356 | // NameValueCollection requestArgs = new NameValueCollection |
357 | { | 357 | // { |
358 | { "RequestMethod", "GetSession" }, | 358 | // { "RequestMethod", "GetSession" }, |
359 | { "SessionID", sessionID.ToString() } | 359 | // { "SessionID", sessionID.ToString() } |
360 | }; | 360 | // }; |
361 | 361 | // | |
362 | OSDMap response = WebUtil.PostToService(m_serverUrl, requestArgs); | 362 | // OSDMap response = WebUtil.PostToService(m_serverUrl, requestArgs); |
363 | if (response["Success"].AsBoolean()) | 363 | // if (response["Success"].AsBoolean()) |
364 | return response; | 364 | // return response; |
365 | else | 365 | // else |
366 | m_log.Warn("[SIMIAN PRESENCE CONNECTOR]: Failed to retrieve session data for session " + sessionID); | 366 | // m_log.Warn("[SIMIAN PRESENCE CONNECTOR]: Failed to retrieve session data for session " + sessionID); |
367 | 367 | // | |
368 | return null; | 368 | // return null; |
369 | } | 369 | // } |
370 | 370 | ||
371 | private List<PresenceInfo> GetSessions(UUID userID) | 371 | private List<PresenceInfo> GetSessions(UUID userID) |
372 | { | 372 | { |
diff --git a/OpenSim/Services/Interfaces/IInventoryService.cs b/OpenSim/Services/Interfaces/IInventoryService.cs index 1b78fb3..d19faed 100644 --- a/OpenSim/Services/Interfaces/IInventoryService.cs +++ b/OpenSim/Services/Interfaces/IInventoryService.cs | |||
@@ -141,8 +141,11 @@ namespace OpenSim.Services.Interfaces | |||
141 | /// <summary> | 141 | /// <summary> |
142 | /// Add a new item to the user's inventory | 142 | /// Add a new item to the user's inventory |
143 | /// </summary> | 143 | /// </summary> |
144 | /// <param name="item"></param> | 144 | /// <param name="item"> |
145 | /// <returns>true if the item was successfully added</returns> | 145 | /// The item to be added. If item.FolderID == UUID.Zero then the item is added to the most suitable system |
146 | /// folder. If there is no suitable folder then the item is added to the user's root inventory folder. | ||
147 | /// </param> | ||
148 | /// <returns>true if the item was successfully added, false if it was not</returns> | ||
146 | bool AddItem(InventoryItemBase item); | 149 | bool AddItem(InventoryItemBase item); |
147 | 150 | ||
148 | /// <summary> | 151 | /// <summary> |
diff --git a/OpenSim/Services/InventoryService/XInventoryService.cs b/OpenSim/Services/InventoryService/XInventoryService.cs index f63ab16..84306e7 100644 --- a/OpenSim/Services/InventoryService/XInventoryService.cs +++ b/OpenSim/Services/InventoryService/XInventoryService.cs | |||
@@ -157,6 +157,8 @@ namespace OpenSim.Services.InventoryService | |||
157 | 157 | ||
158 | protected virtual XInventoryFolder[] GetSystemFolders(UUID principalID) | 158 | protected virtual XInventoryFolder[] GetSystemFolders(UUID principalID) |
159 | { | 159 | { |
160 | // m_log.DebugFormat("[XINVENTORY SERVICE]: Getting system folders for {0}", principalID); | ||
161 | |||
160 | XInventoryFolder[] allFolders = m_Database.GetFolders( | 162 | XInventoryFolder[] allFolders = m_Database.GetFolders( |
161 | new string[] { "agentID" }, | 163 | new string[] { "agentID" }, |
162 | new string[] { principalID.ToString() }); | 164 | new string[] { principalID.ToString() }); |
@@ -170,6 +172,9 @@ namespace OpenSim.Services.InventoryService | |||
170 | return false; | 172 | return false; |
171 | }); | 173 | }); |
172 | 174 | ||
175 | // m_log.DebugFormat( | ||
176 | // "[XINVENTORY SERVICE]: Found {0} system folders for {1}", sysFolders.Length, principalID); | ||
177 | |||
173 | return sysFolders; | 178 | return sysFolders; |
174 | } | 179 | } |
175 | 180 | ||
@@ -186,7 +191,7 @@ namespace OpenSim.Services.InventoryService | |||
186 | 191 | ||
187 | foreach (XInventoryFolder x in allFolders) | 192 | foreach (XInventoryFolder x in allFolders) |
188 | { | 193 | { |
189 | //m_log.DebugFormat("[XINVENTORY]: Adding folder {0} to skeleton", x.folderName); | 194 | //m_log.DebugFormat("[XINVENTORY SERVICE]: Adding folder {0} to skeleton", x.folderName); |
190 | folders.Add(ConvertToOpenSim(x)); | 195 | folders.Add(ConvertToOpenSim(x)); |
191 | } | 196 | } |
192 | 197 | ||
@@ -214,12 +219,21 @@ namespace OpenSim.Services.InventoryService | |||
214 | 219 | ||
215 | public virtual InventoryFolderBase GetFolderForType(UUID principalID, AssetType type) | 220 | public virtual InventoryFolderBase GetFolderForType(UUID principalID, AssetType type) |
216 | { | 221 | { |
222 | // m_log.DebugFormat("[XINVENTORY SERVICE]: Getting folder type {0} for user {1}", type, principalID); | ||
223 | |||
217 | XInventoryFolder[] folders = m_Database.GetFolders( | 224 | XInventoryFolder[] folders = m_Database.GetFolders( |
218 | new string[] { "agentID", "type"}, | 225 | new string[] { "agentID", "type"}, |
219 | new string[] { principalID.ToString(), ((int)type).ToString() }); | 226 | new string[] { principalID.ToString(), ((int)type).ToString() }); |
220 | 227 | ||
221 | if (folders.Length == 0) | 228 | if (folders.Length == 0) |
229 | { | ||
230 | // m_log.WarnFormat("[XINVENTORY SERVICE]: Found no folder for type {0} for user {1}", type, principalID); | ||
222 | return null; | 231 | return null; |
232 | } | ||
233 | |||
234 | // m_log.DebugFormat( | ||
235 | // "[XINVENTORY SERVICE]: Found folder {0} {1} for type {2} for user {3}", | ||
236 | // folders[0].folderName, folders[0].folderID, type, principalID); | ||
223 | 237 | ||
224 | return ConvertToOpenSim(folders[0]); | 238 | return ConvertToOpenSim(folders[0]); |
225 | } | 239 | } |
@@ -230,7 +244,7 @@ namespace OpenSim.Services.InventoryService | |||
230 | // connector. So we disregard the principal and look | 244 | // connector. So we disregard the principal and look |
231 | // by ID. | 245 | // by ID. |
232 | // | 246 | // |
233 | m_log.DebugFormat("[XINVENTORY]: Fetch contents for folder {0}", folderID.ToString()); | 247 | m_log.DebugFormat("[XINVENTORY SERVICE]: Fetch contents for folder {0}", folderID.ToString()); |
234 | InventoryCollection inventory = new InventoryCollection(); | 248 | InventoryCollection inventory = new InventoryCollection(); |
235 | inventory.UserID = principalID; | 249 | inventory.UserID = principalID; |
236 | inventory.Folders = new List<InventoryFolderBase>(); | 250 | inventory.Folders = new List<InventoryFolderBase>(); |
@@ -349,6 +363,9 @@ namespace OpenSim.Services.InventoryService | |||
349 | 363 | ||
350 | public virtual bool AddItem(InventoryItemBase item) | 364 | public virtual bool AddItem(InventoryItemBase item) |
351 | { | 365 | { |
366 | // m_log.DebugFormat( | ||
367 | // "[XINVENTORY SERVICE]: Adding item {0} to folder {1} for {2}", item.ID, item.Folder, item.Owner); | ||
368 | |||
352 | return m_Database.StoreItem(ConvertFromOpenSim(item)); | 369 | return m_Database.StoreItem(ConvertFromOpenSim(item)); |
353 | } | 370 | } |
354 | 371 | ||