diff options
author | Justin Clarke Casey | 2009-04-08 17:50:57 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-04-08 17:50:57 +0000 |
commit | f3c7298fc5bdb35e8a293c9aee4134c8e8fe2856 (patch) | |
tree | cdcef4e023e1adf8bb4a83e5ebe81448dbf33c6b /OpenSim/Region | |
parent | * Fix the remainder of the packets that require sessionId checks. (diff) | |
download | opensim-SC-f3c7298fc5bdb35e8a293c9aee4134c8e8fe2856.zip opensim-SC-f3c7298fc5bdb35e8a293c9aee4134c8e8fe2856.tar.gz opensim-SC-f3c7298fc5bdb35e8a293c9aee4134c8e8fe2856.tar.bz2 opensim-SC-f3c7298fc5bdb35e8a293c9aee4134c8e8fe2856.tar.xz |
* Make it possible to store creator strings in user inventory items as well as UUIDs
* All existing functionality should be unaffected.
* Database schemas have not been changed.
Diffstat (limited to 'OpenSim/Region')
9 files changed, 30 insertions, 29 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 891fa9e..7e99337 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -1729,7 +1729,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1729 | descend.ItemData[i] = new InventoryDescendentsPacket.ItemDataBlock(); | 1729 | descend.ItemData[i] = new InventoryDescendentsPacket.ItemDataBlock(); |
1730 | descend.ItemData[i].ItemID = item.ID; | 1730 | descend.ItemData[i].ItemID = item.ID; |
1731 | descend.ItemData[i].AssetID = item.AssetID; | 1731 | descend.ItemData[i].AssetID = item.AssetID; |
1732 | descend.ItemData[i].CreatorID = item.Creator; | 1732 | descend.ItemData[i].CreatorID = item.CreatorIdAsUuid; |
1733 | descend.ItemData[i].BaseMask = item.BasePermissions; | 1733 | descend.ItemData[i].BaseMask = item.BasePermissions; |
1734 | descend.ItemData[i].Description = LLUtil.StringToPacketBytes(item.Description); | 1734 | descend.ItemData[i].Description = LLUtil.StringToPacketBytes(item.Description); |
1735 | descend.ItemData[i].EveryoneMask = item.EveryOnePermissions; | 1735 | descend.ItemData[i].EveryoneMask = item.EveryOnePermissions; |
@@ -1928,7 +1928,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1928 | inventoryReply.InventoryData[0] = new FetchInventoryReplyPacket.InventoryDataBlock(); | 1928 | inventoryReply.InventoryData[0] = new FetchInventoryReplyPacket.InventoryDataBlock(); |
1929 | inventoryReply.InventoryData[0].ItemID = item.ID; | 1929 | inventoryReply.InventoryData[0].ItemID = item.ID; |
1930 | inventoryReply.InventoryData[0].AssetID = item.AssetID; | 1930 | inventoryReply.InventoryData[0].AssetID = item.AssetID; |
1931 | inventoryReply.InventoryData[0].CreatorID = item.Creator; | 1931 | inventoryReply.InventoryData[0].CreatorID = item.CreatorIdAsUuid; |
1932 | inventoryReply.InventoryData[0].BaseMask = item.BasePermissions; | 1932 | inventoryReply.InventoryData[0].BaseMask = item.BasePermissions; |
1933 | inventoryReply.InventoryData[0].CreationDate = item.CreationDate; | 1933 | inventoryReply.InventoryData[0].CreationDate = item.CreationDate; |
1934 | 1934 | ||
@@ -1950,13 +1950,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1950 | inventoryReply.InventoryData[0].SaleType = item.SaleType; | 1950 | inventoryReply.InventoryData[0].SaleType = item.SaleType; |
1951 | 1951 | ||
1952 | inventoryReply.InventoryData[0].CRC = | 1952 | inventoryReply.InventoryData[0].CRC = |
1953 | Helpers.InventoryCRC(1000, 0, inventoryReply.InventoryData[0].InvType, | 1953 | Helpers.InventoryCRC( |
1954 | inventoryReply.InventoryData[0].Type, inventoryReply.InventoryData[0].AssetID, | 1954 | 1000, 0, inventoryReply.InventoryData[0].InvType, |
1955 | inventoryReply.InventoryData[0].GroupID, 100, | 1955 | inventoryReply.InventoryData[0].Type, inventoryReply.InventoryData[0].AssetID, |
1956 | inventoryReply.InventoryData[0].OwnerID, inventoryReply.InventoryData[0].CreatorID, | 1956 | inventoryReply.InventoryData[0].GroupID, 100, |
1957 | inventoryReply.InventoryData[0].ItemID, inventoryReply.InventoryData[0].FolderID, | 1957 | inventoryReply.InventoryData[0].OwnerID, inventoryReply.InventoryData[0].CreatorID, |
1958 | FULL_MASK_PERMISSIONS, 1, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS, | 1958 | inventoryReply.InventoryData[0].ItemID, inventoryReply.InventoryData[0].FolderID, |
1959 | FULL_MASK_PERMISSIONS); | 1959 | FULL_MASK_PERMISSIONS, 1, FULL_MASK_PERMISSIONS, FULL_MASK_PERMISSIONS, |
1960 | FULL_MASK_PERMISSIONS); | ||
1960 | inventoryReply.Header.Zerocoded = true; | 1961 | inventoryReply.Header.Zerocoded = true; |
1961 | OutPacket(inventoryReply, ThrottleOutPacketType.Asset); | 1962 | OutPacket(inventoryReply, ThrottleOutPacketType.Asset); |
1962 | } | 1963 | } |
@@ -2075,7 +2076,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2075 | 2076 | ||
2076 | itemBlock.ItemID = item.ID; | 2077 | itemBlock.ItemID = item.ID; |
2077 | itemBlock.AssetID = item.AssetID; | 2078 | itemBlock.AssetID = item.AssetID; |
2078 | itemBlock.CreatorID = item.Creator; | 2079 | itemBlock.CreatorID = item.CreatorIdAsUuid; |
2079 | itemBlock.BaseMask = item.BasePermissions; | 2080 | itemBlock.BaseMask = item.BasePermissions; |
2080 | itemBlock.Description = LLUtil.StringToPacketBytes(item.Description); | 2081 | itemBlock.Description = LLUtil.StringToPacketBytes(item.Description); |
2081 | itemBlock.EveryoneMask = item.EveryOnePermissions; | 2082 | itemBlock.EveryoneMask = item.EveryOnePermissions; |
@@ -2138,7 +2139,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2138 | bulkUpdate.ItemData[0] = new BulkUpdateInventoryPacket.ItemDataBlock(); | 2139 | bulkUpdate.ItemData[0] = new BulkUpdateInventoryPacket.ItemDataBlock(); |
2139 | bulkUpdate.ItemData[0].ItemID = item.ID; | 2140 | bulkUpdate.ItemData[0].ItemID = item.ID; |
2140 | bulkUpdate.ItemData[0].AssetID = item.AssetID; | 2141 | bulkUpdate.ItemData[0].AssetID = item.AssetID; |
2141 | bulkUpdate.ItemData[0].CreatorID = item.Creator; | 2142 | bulkUpdate.ItemData[0].CreatorID = item.CreatorIdAsUuid; |
2142 | bulkUpdate.ItemData[0].BaseMask = item.BasePermissions; | 2143 | bulkUpdate.ItemData[0].BaseMask = item.BasePermissions; |
2143 | bulkUpdate.ItemData[0].CreationDate = item.CreationDate; | 2144 | bulkUpdate.ItemData[0].CreationDate = item.CreationDate; |
2144 | bulkUpdate.ItemData[0].Description = LLUtil.StringToPacketBytes(item.Description); | 2145 | bulkUpdate.ItemData[0].Description = LLUtil.StringToPacketBytes(item.Description); |
@@ -2186,7 +2187,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2186 | InventoryReply.InventoryData[0] = new UpdateCreateInventoryItemPacket.InventoryDataBlock(); | 2187 | InventoryReply.InventoryData[0] = new UpdateCreateInventoryItemPacket.InventoryDataBlock(); |
2187 | InventoryReply.InventoryData[0].ItemID = Item.ID; | 2188 | InventoryReply.InventoryData[0].ItemID = Item.ID; |
2188 | InventoryReply.InventoryData[0].AssetID = Item.AssetID; | 2189 | InventoryReply.InventoryData[0].AssetID = Item.AssetID; |
2189 | InventoryReply.InventoryData[0].CreatorID = Item.Creator; | 2190 | InventoryReply.InventoryData[0].CreatorID = Item.CreatorIdAsUuid; |
2190 | InventoryReply.InventoryData[0].BaseMask = Item.BasePermissions; | 2191 | InventoryReply.InventoryData[0].BaseMask = Item.BasePermissions; |
2191 | InventoryReply.InventoryData[0].Description = LLUtil.StringToPacketBytes(Item.Description); | 2192 | InventoryReply.InventoryData[0].Description = LLUtil.StringToPacketBytes(Item.Description); |
2192 | InventoryReply.InventoryData[0].EveryoneMask = Item.EveryOnePermissions; | 2193 | InventoryReply.InventoryData[0].EveryoneMask = Item.EveryOnePermissions; |
@@ -6746,7 +6747,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6746 | InventoryItemBase item = new InventoryItemBase(); | 6747 | InventoryItemBase item = new InventoryItemBase(); |
6747 | item.ID = rezScriptx.InventoryBlock.ItemID; | 6748 | item.ID = rezScriptx.InventoryBlock.ItemID; |
6748 | item.Folder = rezScriptx.InventoryBlock.FolderID; | 6749 | item.Folder = rezScriptx.InventoryBlock.FolderID; |
6749 | item.Creator = rezScriptx.InventoryBlock.CreatorID; | 6750 | item.CreatorId = rezScriptx.InventoryBlock.CreatorID.ToString(); |
6750 | item.Owner = rezScriptx.InventoryBlock.OwnerID; | 6751 | item.Owner = rezScriptx.InventoryBlock.OwnerID; |
6751 | item.BasePermissions = rezScriptx.InventoryBlock.BaseMask; | 6752 | item.BasePermissions = rezScriptx.InventoryBlock.BaseMask; |
6752 | item.CurrentPermissions = rezScriptx.InventoryBlock.OwnerMask; | 6753 | item.CurrentPermissions = rezScriptx.InventoryBlock.OwnerMask; |
diff --git a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs index 8bdf084..a8e5ae3 100644 --- a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs +++ b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs | |||
@@ -211,7 +211,6 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction | |||
211 | } | 211 | } |
212 | } | 212 | } |
213 | 213 | ||
214 | |||
215 | private void DoCreateItem(uint callbackID) | 214 | private void DoCreateItem(uint callbackID) |
216 | { | 215 | { |
217 | m_userTransactions.Manager.MyScene.CommsManager.AssetCache.AddAsset(m_asset); | 216 | m_userTransactions.Manager.MyScene.CommsManager.AssetCache.AddAsset(m_asset); |
@@ -223,7 +222,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction | |||
223 | { | 222 | { |
224 | InventoryItemBase item = new InventoryItemBase(); | 223 | InventoryItemBase item = new InventoryItemBase(); |
225 | item.Owner = ourClient.AgentId; | 224 | item.Owner = ourClient.AgentId; |
226 | item.Creator = ourClient.AgentId; | 225 | item.CreatorId = ourClient.AgentId.ToString(); |
227 | item.ID = UUID.Random(); | 226 | item.ID = UUID.Random(); |
228 | item.AssetID = m_asset.FullID; | 227 | item.AssetID = m_asset.FullID; |
229 | item.Description = m_description; | 228 | item.Description = m_description; |
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs index edb2c56..246cf55 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | |||
@@ -819,7 +819,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
819 | item.AssetType = (int)AssetType.CallingCard; | 819 | item.AssetType = (int)AssetType.CallingCard; |
820 | item.BasePermissions = (uint)PermissionMask.Copy; | 820 | item.BasePermissions = (uint)PermissionMask.Copy; |
821 | item.CreationDate = Util.UnixTimeSinceEpoch(); | 821 | item.CreationDate = Util.UnixTimeSinceEpoch(); |
822 | item.Creator = creator; | 822 | item.CreatorId = creator.ToString(); |
823 | item.CurrentPermissions = item.BasePermissions; | 823 | item.CurrentPermissions = item.BasePermissions; |
824 | item.Description = ""; | 824 | item.Description = ""; |
825 | item.EveryOnePermissions = (uint)PermissionMask.None; | 825 | item.EveryOnePermissions = (uint)PermissionMask.None; |
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs index 8dec2c4..8732e2e 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs | |||
@@ -97,7 +97,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
97 | item.InvType = Convert.ToInt32(reader.ReadString()); | 97 | item.InvType = Convert.ToInt32(reader.ReadString()); |
98 | reader.ReadEndElement(); | 98 | reader.ReadEndElement(); |
99 | reader.ReadStartElement("CreatorUUID"); | 99 | reader.ReadStartElement("CreatorUUID"); |
100 | item.Creator = UUID.Parse(reader.ReadString()); | 100 | item.CreatorId = reader.ReadString(); |
101 | reader.ReadEndElement(); | 101 | reader.ReadEndElement(); |
102 | reader.ReadStartElement("CreationDate"); | 102 | reader.ReadStartElement("CreationDate"); |
103 | item.CreationDate = Convert.ToInt32(reader.ReadString()); | 103 | item.CreationDate = Convert.ToInt32(reader.ReadString()); |
@@ -329,7 +329,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
329 | // Don't use the item ID that's in the file | 329 | // Don't use the item ID that's in the file |
330 | item.ID = UUID.Random(); | 330 | item.ID = UUID.Random(); |
331 | 331 | ||
332 | item.Creator = m_userInfo.UserProfile.ID; | 332 | item.CreatorId = m_userInfo.UserProfile.ID.ToString(); |
333 | item.Owner = m_userInfo.UserProfile.ID; | 333 | item.Owner = m_userInfo.UserProfile.ID; |
334 | 334 | ||
335 | // Reset folder ID to the one in which we want to load it | 335 | // Reset folder ID to the one in which we want to load it |
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs index 90a51c3..f302696 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | |||
@@ -140,7 +140,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
140 | writer.WriteString(inventoryItem.InvType.ToString()); | 140 | writer.WriteString(inventoryItem.InvType.ToString()); |
141 | writer.WriteEndElement(); | 141 | writer.WriteEndElement(); |
142 | writer.WriteStartElement("CreatorUUID"); | 142 | writer.WriteStartElement("CreatorUUID"); |
143 | writer.WriteString(inventoryItem.Creator.ToString()); | 143 | writer.WriteString(inventoryItem.CreatorId); |
144 | writer.WriteEndElement(); | 144 | writer.WriteEndElement(); |
145 | writer.WriteStartElement("CreationDate"); | 145 | writer.WriteStartElement("CreationDate"); |
146 | writer.WriteString(inventoryItem.CreationDate.ToString()); | 146 | writer.WriteString(inventoryItem.CreationDate.ToString()); |
@@ -189,7 +189,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
189 | 189 | ||
190 | m_archive.WriteFile(filename, sw.ToString()); | 190 | m_archive.WriteFile(filename, sw.ToString()); |
191 | 191 | ||
192 | UUID creatorId = inventoryItem.Creator; | 192 | UUID creatorId = inventoryItem.CreatorIdAsUuid; |
193 | 193 | ||
194 | // Record the creator of this item | 194 | // Record the creator of this item |
195 | m_userUuids[creatorId] = 1; | 195 | m_userUuids[creatorId] = 1; |
diff --git a/OpenSim/Region/CoreModules/Communications/REST/RESTInterregionComms.cs b/OpenSim/Region/CoreModules/Communications/REST/RESTInterregionComms.cs index 8b2a5ca..87272a1 100644 --- a/OpenSim/Region/CoreModules/Communications/REST/RESTInterregionComms.cs +++ b/OpenSim/Region/CoreModules/Communications/REST/RESTInterregionComms.cs | |||
@@ -24,6 +24,7 @@ | |||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | |||
27 | using System; | 28 | using System; |
28 | using System.Collections; | 29 | using System.Collections; |
29 | using System.IO; | 30 | using System.IO; |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 11cee7c..bebf234 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -478,7 +478,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
478 | // Insert a copy of the item into the recipient | 478 | // Insert a copy of the item into the recipient |
479 | InventoryItemBase itemCopy = new InventoryItemBase(); | 479 | InventoryItemBase itemCopy = new InventoryItemBase(); |
480 | itemCopy.Owner = recipient; | 480 | itemCopy.Owner = recipient; |
481 | itemCopy.Creator = item.Creator; | 481 | itemCopy.CreatorId = item.CreatorId; |
482 | itemCopy.ID = UUID.Random(); | 482 | itemCopy.ID = UUID.Random(); |
483 | itemCopy.AssetID = item.AssetID; | 483 | itemCopy.AssetID = item.AssetID; |
484 | itemCopy.Description = item.Description; | 484 | itemCopy.Description = item.Description; |
@@ -836,7 +836,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
836 | { | 836 | { |
837 | InventoryItemBase item = new InventoryItemBase(); | 837 | InventoryItemBase item = new InventoryItemBase(); |
838 | item.Owner = remoteClient.AgentId; | 838 | item.Owner = remoteClient.AgentId; |
839 | item.Creator = remoteClient.AgentId; | 839 | item.CreatorId = remoteClient.AgentId.ToString(); |
840 | item.ID = UUID.Random(); | 840 | item.ID = UUID.Random(); |
841 | item.AssetID = asset.FullID; | 841 | item.AssetID = asset.FullID; |
842 | item.Description = asset.Description; | 842 | item.Description = asset.Description; |
@@ -1086,7 +1086,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1086 | InventoryItemBase agentItem = new InventoryItemBase(); | 1086 | InventoryItemBase agentItem = new InventoryItemBase(); |
1087 | 1087 | ||
1088 | agentItem.ID = UUID.Random(); | 1088 | agentItem.ID = UUID.Random(); |
1089 | agentItem.Creator = taskItem.CreatorID; | 1089 | agentItem.CreatorId = taskItem.CreatorID.ToString(); |
1090 | agentItem.Owner = destAgent; | 1090 | agentItem.Owner = destAgent; |
1091 | agentItem.AssetID = taskItem.AssetID; | 1091 | agentItem.AssetID = taskItem.AssetID; |
1092 | agentItem.Description = taskItem.Description; | 1092 | agentItem.Description = taskItem.Description; |
@@ -1549,7 +1549,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1549 | taskItem.Type = itemBase.AssetType; | 1549 | taskItem.Type = itemBase.AssetType; |
1550 | taskItem.InvType = itemBase.InvType; | 1550 | taskItem.InvType = itemBase.InvType; |
1551 | taskItem.OwnerID = itemBase.Owner; | 1551 | taskItem.OwnerID = itemBase.Owner; |
1552 | taskItem.CreatorID = itemBase.Creator; | 1552 | taskItem.CreatorID = itemBase.CreatorIdAsUuid; |
1553 | taskItem.BasePermissions = itemBase.BasePermissions; | 1553 | taskItem.BasePermissions = itemBase.BasePermissions; |
1554 | taskItem.CurrentPermissions = itemBase.CurrentPermissions; | 1554 | taskItem.CurrentPermissions = itemBase.CurrentPermissions; |
1555 | taskItem.EveryonePermissions = itemBase.EveryOnePermissions; | 1555 | taskItem.EveryonePermissions = itemBase.EveryOnePermissions; |
@@ -1946,12 +1946,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
1946 | } | 1946 | } |
1947 | 1947 | ||
1948 | item = new InventoryItemBase(); | 1948 | item = new InventoryItemBase(); |
1949 | item.Creator = objectGroup.RootPart.CreatorID; | 1949 | item.CreatorId = objectGroup.RootPart.CreatorID.ToString(); |
1950 | item.ID = UUID.Random(); | 1950 | item.ID = UUID.Random(); |
1951 | item.InvType = (int)InventoryType.Object; | 1951 | item.InvType = (int)InventoryType.Object; |
1952 | item.Folder = folder.ID; | 1952 | item.Folder = folder.ID; |
1953 | item.Owner = userInfo.UserProfile.ID; | 1953 | item.Owner = userInfo.UserProfile.ID; |
1954 | |||
1955 | } | 1954 | } |
1956 | 1955 | ||
1957 | AssetBase asset = CreateAsset( | 1956 | AssetBase asset = CreateAsset( |
@@ -2115,6 +2114,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2115 | 2114 | ||
2116 | CachedUserInfo userInfo = | 2115 | CachedUserInfo userInfo = |
2117 | CommsManager.UserProfileCacheService.GetUserDetails(AgentId); | 2116 | CommsManager.UserProfileCacheService.GetUserDetails(AgentId); |
2117 | |||
2118 | if (userInfo != null) | 2118 | if (userInfo != null) |
2119 | { | 2119 | { |
2120 | AssetBase asset = CreateAsset( | 2120 | AssetBase asset = CreateAsset( |
@@ -2125,7 +2125,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2125 | CommsManager.AssetCache.AddAsset(asset); | 2125 | CommsManager.AssetCache.AddAsset(asset); |
2126 | 2126 | ||
2127 | InventoryItemBase item = new InventoryItemBase(); | 2127 | InventoryItemBase item = new InventoryItemBase(); |
2128 | item.Creator = grp.RootPart.CreatorID; | 2128 | item.CreatorId = grp.RootPart.CreatorID.ToString(); |
2129 | item.Owner = remoteClient.AgentId; | 2129 | item.Owner = remoteClient.AgentId; |
2130 | item.ID = UUID.Random(); | 2130 | item.ID = UUID.Random(); |
2131 | item.AssetID = asset.FullID; | 2131 | item.AssetID = asset.FullID; |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 3266703..041d981 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3368,7 +3368,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3368 | CommsManager.AssetCache.AddAsset(asset); | 3368 | CommsManager.AssetCache.AddAsset(asset); |
3369 | 3369 | ||
3370 | InventoryItemBase item = new InventoryItemBase(); | 3370 | InventoryItemBase item = new InventoryItemBase(); |
3371 | item.Creator = part.CreatorID; | 3371 | item.CreatorId = part.CreatorID.ToString(); |
3372 | 3372 | ||
3373 | item.ID = UUID.Random(); | 3373 | item.ID = UUID.Random(); |
3374 | item.Owner = remoteClient.AgentId; | 3374 | item.Owner = remoteClient.AgentId; |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs index 5c47710..4c2b50f 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs | |||
@@ -151,7 +151,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
151 | taskItem.Name = item.Name; | 151 | taskItem.Name = item.Name; |
152 | taskItem.Description = item.Description; | 152 | taskItem.Description = item.Description; |
153 | taskItem.OwnerID = part.OwnerID; // Transfer ownership | 153 | taskItem.OwnerID = part.OwnerID; // Transfer ownership |
154 | taskItem.CreatorID = item.Creator; | 154 | taskItem.CreatorID = item.CreatorIdAsUuid; |
155 | taskItem.Type = item.AssetType; | 155 | taskItem.Type = item.AssetType; |
156 | taskItem.InvType = item.InvType; | 156 | taskItem.InvType = item.InvType; |
157 | 157 | ||