re-enable item.CreatorId check in TestLoadIarV0_1AbsentCreator()
							parent
							
								
									b821f748ac
								
							
						
					
					
						commit
						ce4421497e
					
				|  | @ -411,7 +411,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
|                  | ||||
|                 item.CreatorIdAsUuid = ospResolvedId; | ||||
| 
 | ||||
|                 // XXX: For now, don't preserve the OSPA in the creator id (which actually gets persisted to the | ||||
|                 // Don't preserve the OSPA in the creator id (which actually gets persisted to the | ||||
|                 // database).  Instead, replace with the UUID that we found. | ||||
|                 item.CreatorId = ospResolvedId.ToString(); | ||||
| 
 | ||||
|  | @ -419,7 +419,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
|             } | ||||
|             else if (item.CreatorData == null || item.CreatorData == String.Empty) | ||||
|             { | ||||
|                 item.CreatorIdAsUuid = m_userInfo.PrincipalID; | ||||
|                 item.CreatorId = m_userInfo.PrincipalID.ToString(); | ||||
|                 item.CreatorIdAsUuid = new UUID(item.CreatorId); | ||||
|             } | ||||
| 
 | ||||
|             item.Owner = m_userInfo.PrincipalID; | ||||
|  |  | |||
|  | @ -236,9 +236,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests | |||
|                 = InventoryArchiveUtils.FindItemByPath(scene.InventoryService, m_ua1.PrincipalID, m_item1Name); | ||||
|              | ||||
|             Assert.That(foundItem1, Is.Not.Null, "Didn't find loaded item 1"); | ||||
| //            Assert.That( | ||||
| //                foundItem1.CreatorId, Is.EqualTo(userUuid),  | ||||
| //                "Loaded item non-uuid creator doesn't match that of the loading user"); | ||||
|             Assert.That( | ||||
|                 foundItem1.CreatorId, Is.EqualTo(m_ua1.PrincipalID.ToString()),  | ||||
|                 "Loaded item non-uuid creator doesn't match that of the loading user"); | ||||
|             Assert.That( | ||||
|                 foundItem1.CreatorIdAsUuid, Is.EqualTo(m_ua1.PrincipalID),  | ||||
|                 "Loaded item uuid creator doesn't match that of the loading user"); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Justin Clark-Casey (justincc)
						Justin Clark-Casey (justincc)