diff options
Diffstat (limited to 'OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs')
-rw-r--r-- | OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs index 1b7d3f5..62ca8a3 100644 --- a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs +++ b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs | |||
@@ -50,18 +50,21 @@ namespace OpenSim.Capabilities.Handlers | |||
50 | 50 | ||
51 | private IInventoryService m_InventoryService; | 51 | private IInventoryService m_InventoryService; |
52 | private ILibraryService m_LibraryService; | 52 | private ILibraryService m_LibraryService; |
53 | private IScene m_Scene; | ||
53 | // private object m_fetchLock = new Object(); | 54 | // private object m_fetchLock = new Object(); |
54 | 55 | ||
55 | public FetchInvDescHandler(IInventoryService invService, ILibraryService libService) | 56 | public FetchInvDescHandler(IInventoryService invService, ILibraryService libService, IScene s) |
56 | { | 57 | { |
57 | m_InventoryService = invService; | 58 | m_InventoryService = invService; |
58 | m_LibraryService = libService; | 59 | m_LibraryService = libService; |
60 | m_Scene = s; | ||
59 | } | 61 | } |
60 | 62 | ||
61 | 63 | ||
62 | public string FetchInventoryDescendentsRequest(string request, string path, string param, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) | 64 | public string FetchInventoryDescendentsRequest(string request, string path, string param, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) |
63 | { | 65 | { |
64 | 66 | //m_log.DebugFormat("[XXX]: FetchInventoryDescendentsRequest in {0}, {1}", (m_Scene == null) ? "none" : m_Scene.Name, request); | |
67 | |||
65 | // nasty temporary hack here, the linden client falsely | 68 | // nasty temporary hack here, the linden client falsely |
66 | // identifies the uuid 00000000-0000-0000-0000-000000000000 | 69 | // identifies the uuid 00000000-0000-0000-0000-000000000000 |
67 | // as a string which breaks us | 70 | // as a string which breaks us |
@@ -725,20 +728,20 @@ namespace OpenSim.Capabilities.Handlers | |||
725 | 728 | ||
726 | itemsToReturn.InsertRange(0, links); | 729 | itemsToReturn.InsertRange(0, links); |
727 | 730 | ||
728 | //foreach (InventoryItemBase link in linkedFolderContents.Items) | 731 | foreach (InventoryItemBase link in linkedFolderContents.Items) |
729 | //{ | 732 | { |
730 | // // Take care of genuinely broken links where the target doesn't exist | 733 | // Take care of genuinely broken links where the target doesn't exist |
731 | // // HACK: Also, don't follow up links that just point to other links. In theory this is legitimate, | 734 | // HACK: Also, don't follow up links that just point to other links. In theory this is legitimate, |
732 | // // but no viewer has been observed to set these up and this is the lazy way of avoiding cycles | 735 | // but no viewer has been observed to set these up and this is the lazy way of avoiding cycles |
733 | // // rather than having to keep track of every folder requested in the recursion. | 736 | // rather than having to keep track of every folder requested in the recursion. |
734 | // if (link != null && link.AssetType == (int)AssetType.Link) | 737 | if (link != null && link.AssetType == (int)AssetType.Link) |
735 | // { | 738 | { |
736 | // //m_log.DebugFormat( | 739 | //m_log.DebugFormat( |
737 | // // "[WEB FETCH INV DESC HANDLER]: Adding item {0} {1} from folder {2} linked from {3} ({4} {5})", | 740 | // "[WEB FETCH INV DESC HANDLER]: Adding item {0} {1} from folder {2} linked from {3} ({4} {5})", |
738 | // // link.Name, (AssetType)link.AssetType, linkedFolderContents.FolderID, contents.FolderID, link.ID, link.AssetID); | 741 | // link.Name, (AssetType)link.AssetType, linkedFolderContents.FolderID, contents.FolderID, link.ID, link.AssetID); |
739 | // itemIDs.Add(link.AssetID); | 742 | itemIDs.Add(link.AssetID); |
740 | // } | 743 | } |
741 | //} | 744 | } |
742 | } | 745 | } |
743 | } | 746 | } |
744 | 747 | ||