diff options
Diffstat (limited to 'OpenSim/Region/ClientStack')
3 files changed, 10 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs index 985451c..774202e 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | |||
@@ -554,8 +554,8 @@ namespace OpenSim.Region.ClientStack.Linden | |||
554 | 554 | ||
555 | if (core.TryGet<IClientInventory>(out clientInv)) | 555 | if (core.TryGet<IClientInventory>(out clientInv)) |
556 | { | 556 | { |
557 | var systemTextureFolder = m_Scene.InventoryService.GetFolderForType(m_HostCapsObj.AgentID, AssetType.Texture); | 557 | var systemTextureFolder = m_Scene.InventoryService.GetFolderForType(m_HostCapsObj.AgentID, FolderType.Texture); |
558 | textureUploadFolder = new InventoryFolderBase(UUID.Random(), assetName, m_HostCapsObj.AgentID, (short)AssetType.Unknown, systemTextureFolder.ID, 1); | 558 | textureUploadFolder = new InventoryFolderBase(UUID.Random(), assetName, m_HostCapsObj.AgentID, (short)FolderType.None, systemTextureFolder.ID, 1); |
559 | if (m_Scene.InventoryService.AddFolder(textureUploadFolder)) | 559 | if (m_Scene.InventoryService.AddFolder(textureUploadFolder)) |
560 | { | 560 | { |
561 | foldersToUpdate.Add(textureUploadFolder); | 561 | foldersToUpdate.Add(textureUploadFolder); |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/Tests/WebFetchInvDescModuleTests.cs b/OpenSim/Region/ClientStack/Linden/Caps/Tests/WebFetchInvDescModuleTests.cs index 39209ec..dd4a691 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/Tests/WebFetchInvDescModuleTests.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/Tests/WebFetchInvDescModuleTests.cs | |||
@@ -116,7 +116,7 @@ namespace OpenSim.Region.ClientStack.Linden.Caps.Tests | |||
116 | PollServiceEventArgs pseArgs; | 116 | PollServiceEventArgs pseArgs; |
117 | userCaps.TryGetPollHandler("FetchInventoryDescendents2", out pseArgs); | 117 | userCaps.TryGetPollHandler("FetchInventoryDescendents2", out pseArgs); |
118 | req.UriPath = pseArgs.Url; | 118 | req.UriPath = pseArgs.Url; |
119 | req.Uri = new Uri(req.UriPath); | 119 | req.Uri = new Uri("file://" + req.UriPath); |
120 | 120 | ||
121 | // Retrieve root folder details directly so that we can request | 121 | // Retrieve root folder details directly so that we can request |
122 | InventoryFolderBase folder = scene.InventoryService.GetRootFolder(ua.PrincipalID); | 122 | InventoryFolderBase folder = scene.InventoryService.GetRootFolder(ua.PrincipalID); |
@@ -137,6 +137,8 @@ namespace OpenSim.Region.ClientStack.Linden.Caps.Tests | |||
137 | req.Body = new MemoryStream(OSDParser.SerializeLLSDXmlBytes(osdReqMap)); | 137 | req.Body = new MemoryStream(OSDParser.SerializeLLSDXmlBytes(osdReqMap)); |
138 | 138 | ||
139 | TestHttpClientContext context = new TestHttpClientContext(false); | 139 | TestHttpClientContext context = new TestHttpClientContext(false); |
140 | |||
141 | // WARNING: This results in a caught exception, because queryString is null | ||
140 | MainServer.Instance.OnRequest(context, new RequestEventArgs(req)); | 142 | MainServer.Instance.OnRequest(context, new RequestEventArgs(req)); |
141 | 143 | ||
142 | // Drive processing of the queued inventory request synchronously. | 144 | // Drive processing of the queued inventory request synchronously. |
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 284c5fa..c8e5881 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -1866,8 +1866,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1866 | newBlock.Name = Util.StringToBytes256(folder.Name); | 1866 | newBlock.Name = Util.StringToBytes256(folder.Name); |
1867 | newBlock.ParentID = folder.ParentID; | 1867 | newBlock.ParentID = folder.ParentID; |
1868 | newBlock.Type = (sbyte)folder.Type; | 1868 | newBlock.Type = (sbyte)folder.Type; |
1869 | if (newBlock.Type == InventoryItemBase.SUITCASE_FOLDER_TYPE) | 1869 | //if (newBlock.Type == InventoryItemBase.SUITCASE_FOLDER_TYPE) |
1870 | newBlock.Type = InventoryItemBase.SUITCASE_FOLDER_FAKE_TYPE; | 1870 | // newBlock.Type = InventoryItemBase.SUITCASE_FOLDER_FAKE_TYPE; |
1871 | 1871 | ||
1872 | return newBlock; | 1872 | return newBlock; |
1873 | } | 1873 | } |
@@ -2118,8 +2118,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2118 | folderBlock.FolderID = folder.ID; | 2118 | folderBlock.FolderID = folder.ID; |
2119 | folderBlock.ParentID = folder.ParentID; | 2119 | folderBlock.ParentID = folder.ParentID; |
2120 | folderBlock.Type = (sbyte)folder.Type; | 2120 | folderBlock.Type = (sbyte)folder.Type; |
2121 | if (folderBlock.Type == InventoryItemBase.SUITCASE_FOLDER_TYPE) | 2121 | // Leaving this here for now, just in case we need to do this for a while |
2122 | folderBlock.Type = InventoryItemBase.SUITCASE_FOLDER_FAKE_TYPE; | 2122 | //if (folderBlock.Type == InventoryItemBase.SUITCASE_FOLDER_TYPE) |
2123 | // folderBlock.Type = InventoryItemBase.SUITCASE_FOLDER_FAKE_TYPE; | ||
2123 | folderBlock.Name = Util.StringToBytes256(folder.Name); | 2124 | folderBlock.Name = Util.StringToBytes256(folder.Name); |
2124 | 2125 | ||
2125 | return folderBlock; | 2126 | return folderBlock; |