aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Agent/AssetTransaction/AgentAssetsTransactions.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-09-25Insert transaction ID into AssetXferUploader constructor rather than at ↵Justin Clark-Casey (justincc)1-4/+4
UploadAsset() to prevent item creation failure when NewInventoryItem thread reachs the object first. This was preventing the previous race condition fix in 4fc0cfb from actually working. This commit also removes some of the pointless transaction id checks - these conditions are already being enforced in AgentAssetsTransactions.
2012-09-25Move UDP update task item code to AssetXferUploader to match existing create ↵Justin Clark-Casey (justincc)1-45/+2
user item and update user item mechanisms This is done for consistency and to allow removal or some access methods that increase code complexity. However, this path has not been used for a long time, not even by LL 1.23 - viewers use caps http upload for this instead
2012-09-25Fix occasional race condition failure when creating new clothing/body parts ↵Justin Clark-Casey (justincc)1-85/+38
in the viewer or updating existing assets. On creating these items, the viewer sends a UDP AssetUploadRequest followed by a CreateInventoryItem. It was possible for the CreateInventoryItem/UpdateInventoryItem to occasionally outrace the AssetUploadRequest and fail to find an initialized Xfer object, at which point the item create would fail. So instead we always set up a Xfer object on either the asset or inventory item update request. This does not introduce a new race because code already exists to delay the item operation until the asset is uploaded if necessary (but this only worked if the xfer object already existed)
2011-11-14minor: remove some mono compiler warningsJustin Clark-Casey (justincc)1-2/+0
2011-09-23Fix avatar parameter updating for viewer 3 and maybe 2.Justin Clark-Casey (justincc)1-45/+123
When a slider parameter is changed, the viewer uploads a new shape (or other asset) and the item is updated to point to it. Viewer 1 uploaded the data in the initial request itself, so the asset references was almost always correctly updated. However, viewer 3/2 always uploads data in a subsequent xfer, which exposed a race condition where the viewer would make the item update before the asset had uploaded. This commit shuffles the order of operations to avoid this race, the item is updated with the new asset id instead of the old one while the upload was still taking place. A second race had to be fixed where avatar appearance would also be updated with the old asset id rather than the new one. This was fixed by updating the avatar appearance ids when the appearance was actually saved, rather than when the wearables update was made.
2011-04-28Stop CHANGED_INVENTORY firing twice if a notecard is edited in prim.Justin Clark-Casey (justincc)1-4/+5
Addresses http://opensimulator.org/mantis/view.php?id=5444 Fix is to stop the asset transaction calling UpdateInventoryItem() since the caller is doing it anyway, which is more correct. This did not effect scripts.
2011-01-21remove some mono compiler warningsJustin Clark-Casey (justincc)1-2/+2
2010-12-04Simplify updating of agent inventory assets. Make newly created asset IDsMelanie1-19/+6
random rather than using IDs known by the client ahead of time.
2010-12-04Convert the agent asset transactions module to a new style module.Melanie1-72/+43
Refactor to remove the property "MyScene" and the pointless circular refs to the managing classes. Converted the module to a non-shared module. Reformatted source for 80 columns. Removed the special role the module had in the old loader.
2010-07-14Fixes mantis #4870.Diva Canto1-1/+7
2010-04-19Make the "notecard saved" text appear in the saver rather than the notecard ↵Justin Clark-Casey (justincc)1-0/+3
owner, if the notecard is saved by a permitted group member This means moving the alert up to a place where the IClientAPI is available. One can also argue that such client messages shouldn't be sent directly from the scene data model
2010-01-11OpenSim/Framework/Communications/Cache deleted. LibraryRootFolder deleted.Diva Canto1-1/+1
2009-08-12Redirected all calls to CachedUserProfile methods to the inventory service. ↵Diva Canto1-29/+18
Redirection of the RootFolder property is still todo. This compiles but probably inventory will be inconsistent.
2009-06-01Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames1-1/+1
LICENSE.txt.
2009-05-15Heart surgery on asset service code bits. Affects OpenSim.ini configuration ↵diva1-5/+4
-- please see the example. Affects region servers only. This may break a lot of things, but it needs to go in. It was tested in standalone and the UCI grid, but it needs a lot more testing. Known problems: * HG asset transfers are borked for now * missing texture is missing * 3 unit tests commented out for now
2009-02-17- remove the Metadata property from AssetBase and return all previousMike Mazur1-10/+10
properties as before - prefix private variables with m_ in AssetBase.cs - related to Mantis #3122, as mentioned in https://lists.berlios.de/pipermail/opensim-dev/2009-February/005088.html - all services will likely need to be upgraded after this commit
2009-02-12* optimized usings.lbsa711-3/+4
2009-02-09starting phase 2 of the OpenSim.Region.Environment commit: relocatingDr Scofield1-1/+1
OpenSim.Region.Environment.Modules.Agent en bloc to OpenSim.Region.CoreModules
2009-02-06This changeset is the step 1 of 2 in refactoringDr Scofield1-1/+1
OpenSim.Region.Environment into a "framework" part and a modules only part. This first changeset refactors OpenSim.Region.Environment.Scenes, OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region modules in OpenSim.Region.Environment. The next step will be to move region modules up from OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and then sort out which modules are really core modules and which should move out to forge. I've been very careful to NOT BREAK anything. i hope i've succeeded. as this is the work of a whole week i hope i managed to keep track with the applied patches of the last week --- could any of you that did check in stuff have a look at whether it survived? thx!
2009-02-04- add OpenSim.Framework.AssetMetadata class. AssetBase is now composed of itMike Mazur1-13/+13
- trim trailing whitespace
2008-11-24Some refactoring from about a week ago that I forgot to commit, of ↵MW1-21/+111
AssetTransactionModule to cut down on number of classes and to work towards having a base AssetXferUploader class than can be shared with EstateTerrainXferHandler
2008-09-26* refactor: split out AssetXferUploaderJustin Clarke Casey1-284/+0
2008-09-26* Implment task inventory item asset update for the old non CAPS transaction ↵Justin Clarke Casey1-15/+37
system * This means that saving notecards in prim inventories should now work. * Not the nicest code in the world - the transactions system is pretty fugly right now * PLEASE NOTE: Currently, the prim will not repersist until up to 15 seconds after it is unselected. * What we really need is a proper mechanism so that any prim updates still waiting when the simulator is quit are performed before exit.
2008-09-06* This is the fabled LibOMV update with all of the libOMV types from JHurlimanTeravus Ovares1-17/+17
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle. * This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big! * Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
2008-07-02* Drop InvType from the assets table since it is no longer usedJustin Clarke Casey1-3/+0
* Migration should be automatic on sqlite and mysql * Migration is not automatic on mssql, you will need to drop the invType column manually * Migration should be fine, but as for any db change, I would recommend making sure you have backups before moving past this revision
2008-05-21Clean out some crufty in AvatarFactoryModule Sean Dague1-0/+2
Fix RequestUpdateInventoryItem so that asset changes generate a new asset, which is needed for editing appearance to do the right thing. Persistant appearance seems to work after this, except you need to rebake textures some times.
2008-05-17Formatting cleanup.Jeff Ames1-1/+1
2008-05-16* Applying patch in mantis 0001293: [PATCH] Fix a bug that corrupts uploaded ↵Teravus Ovares1-3/+4
assets on disk write from Melane. Thanks Melanie!
2008-05-16Formatting cleanup.Jeff Ames1-4/+4
2008-05-10Refactored out a few warnings related to Adam's bane OutPacketTeravus Ovares1-19/+8
2008-05-10* Experiment in Zerocoding.Teravus Ovares1-0/+3
2008-05-03* Refactor: remove redundant userId parameter from UpdateItem() and DeleteItem()Justin Clarke Casey1-1/+1
* Put warning in remove folder method about non implementation (not that this is used anyway - may be legacy)
2008-05-03* Refactor: remove pointless agentId parameter from CachedUserInfo.AddItem()Justin Clarke Casey1-1/+1
* Remove old framework asset transactions files which were region modularized
2008-05-01* Rolled back a few changes.Adam Frisby1-10/+10
2008-05-01* Spring cleaning on Region.Environment. Adam Frisby1-10/+10
* Converted a large number of read-only fields to be actually, readonly. * Reformatted code sections. * Removed redundant code.
2008-05-01Update svn properties. Minor formatting cleanup.Jeff Ames1-411/+411
2008-04-30* Cruft removal step #1. Cleaning Modules directory.Adam Frisby1-39/+44
2008-04-30* Refactored Environment/Modules directory - modules now reside in their own ↵Adam Frisby1-408/+407
directory with any associated module-specific classes. * Each module directory is currently inside one of the following category folders: Agent (Anything relating to do with Client<->Server communications.), Avatar (Anything to do with the avatar or presence inworld), Framework (Classes modules can use), Grid (Grid traffic, new OGS2 grid comms), Scripting (Scripting functions, etc), World (The enrivonment/scene, IE Sun/Tree modules.) * This should be moved into a seperate project file.
2008-04-30* Long awaited patch from A_Biondi Mantis 923. Kept alive by Melanie. ↵Teravus Ovares1-0/+3
Thanks A_Biondi and Melanie! * This builds but might not work. JustinCC will examine.. it may work out of the box.
2008-04-07Refactor InventoryItemBase to do the following:Sean Dague1-18/+18
* wrap fields as Properties * rename some fields/properties to more sensible names * set style to PropName to match more standard C# approach
2008-03-18Formatting cleanup.Jeff Ames1-26/+25
2008-03-03* Removed and sorted using clauses in a number of files.Adam Frisby1-2/+0
* Cleaned up ITerrainChannel * Implemented Raise, Lower, Smooth, Flatten, Noise Terrain Paint Brushes * Implemented Raise, Lower, Smooth, Flatten, Noise Terrain Fill Brushes * Implemented Export functionality for RAW32 terrain loader * Implemented Import/Export for SLRAW terrain loader * Implemented Export for JPEG terrain loader
2008-02-20Fixed big bug in AgentAssetTransactions, now don't seem to be getting any ↵MW1-4/+4
AbortXfer packets. And the "saving data" message in the client on logout seems to have gone. (So that message was all my fault.)
2008-02-17Added copyright notices.Jeff Ames1-3/+29
2008-02-16Moved the AgentAssetTransactionsManager (and AgentAssetTransactions) out of ↵MW1-190/+17
CommsManager and into a module (AgentAgentTransactionModule), still needs cleaning up though. But its one more thing out of the CommsManager. One day we will kill the CommsManager!
2008-02-13Clean up more unnecessary String.Format callsJeff Ames1-4/+3
2008-02-13Commenting and a spelling correctionJustin Clarke Casey1-2/+2
2008-02-13* Refactor: Move last commit's refactor back to AgentAssetTransactionsManagerJustin Clarke Casey1-0/+47
* Push asset update (invoked when clothing is altered) down into AgentAssetTransactions from Scene.Inventory.cs to join others * I've tested that clothing creation and update still works, but please let me know if it suddently breaks for you. * Add/correct comments
2008-02-12* Refactoring: Rename AssetTransactions.cs and AssetTransactionsManager and ↵Justin Clarke Casey1-2/+5
align classes with file names * Small amount of ndoc * This will probably require a prebuild and nant clean
2008-02-11Re-enabled Inventory creation of body partsMW1-2/+4