aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/InventoryService/XInventoryService.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Massive tab and trailing space cleanupMelanie Thielker2017-01-051-19/+19
|
* Finally remove the requirement for an InventoryItem/FolderBase object toMelanie Thielker2016-07-041-15/+9
| | | | | | | | be passed into inventory queries. This makes the API more homogenous and also will more clearly show coding errors related to HG inventory where the .Owner field has a meaning for a query but wasn't always set.
* WARNING: massive refactor to follow libomv's latest changes regarding ↵Diva Canto2015-08-081-50/+50
| | | | | | | inventory folders. The newest version of libomv itself is committed here. Basically, everything that was using the AssetType enum has been combed through; many of those uses were changed to the new FolderType enum. This means that from now on, [new] root folders have code 8 (FolderType.Root), as the viewers expect, as opposed to 9, which was what we had been doing. Normal folders are as they were, -1. Also now sending folder code 100 for Suitcase folders to viewers, with no filter. All tests pass, but fingers crossed!
* Added inventory tests to Robust.Tests.Diva Canto2015-05-111-6/+6
|
* Another major overhaul of inventory downloading, this time pertaining to ↵Diva Canto2015-05-081-0/+15
| | | | inventory links. Added yet another function to IInventoryService to get multiple items at once, so that fetching collections of linked items is done once per folder instead of once per item.
* Major change in the way inventory is downloaded: added a method throughout ↵Diva Canto2015-05-071-1/+20
| | | | IIventoryService that fetches sets of folders at once. Also added folder id in the InventoryCollection data structure, so that we don't need to go to inventory server again just for that. This reduces the chatter between sims and inventory server by... a lot. On my tests, this reduces initial inventory download down to 30% of what it currently is.
* When creating a new user, create the folders "Current Outfit", "Favorites", ↵Oren Hurvitz2014-05-251-2/+10
| | | | | | and the standard subfolders of "Calling Cards". (If we don't create them now then they'll be created later by the viewer, but why wait.)
* - When sending the "My Suitcase" folder to the client, always claim it has ↵Oren Hurvitz2014-05-061-2/+2
| | | | Folder Type 8. (Previously we had used Folder Type -1 in one place, and LLClientView didn't even bother changing Folder Type 100 to anything else.)
* Removed GetUserInventory(). It wasn't being used, and was creating warnings ↵Oren Hurvitz2014-04-231-28/+0
| | | | because it's Obsolete.
* Fixed bugs when getting the root folder.Oren Hurvitz2013-01-021-1/+10
| | | | | | | | 1. The error checking for the case where there's no "My Inventory" folder was incorrect: it checked the wrong variable. 2. If GetSystemFolderForType() is called to get AssetType.RootFolder then it should return the root folder immediately; not look for another root folder below it.
* Do not allow invariants to change on calls to XInventoryService.UpdateItem()Justin Clark-Casey (justincc)2012-11-171-0/+40
| | | | | | | | This is to help track down http://opensimulator.org/mantis/view.php?id=6359 where creator IDs on items and rezzed objects have been reported to sometimes change. This should never happen - a particular item should never change creators (if an item is given then a new item (with new id) is created). Invariants are inventory type, asset type, folder (changed only on MoveItems()), CreatorIdentification and Owner. If caller attempts to change an invariant, warning is logged but other properties are still changed. If you see this warning, reporting on Mantis 6359 would be very welcome with the exact operation being done at the time.
* Update parent inventory folder version numbers when folders are ↵Justin Clark-Casey (justincc)2012-11-091-10/+1
| | | | | | | | moved/created/deleted to match version numbers cached by viewers. This is done in the way that one would expect (e.g. moving a folder increments version number on both source and destination parent folders). This should hopefully improve viewer reuse of its cached inventory information. Currently MySQL only but will be implement for SQLite/MSSQL if there are no issues.
* Fix regression introduced in a0d178b2 (Sat Aug 25 02:00:17 2012) where ↵Justin Clark-Casey (justincc)2012-08-291-1/+2
| | | | | | | | | | | folders with asset type of 'Folder' and 'Unknown' were accidentally treated as system folders. This prevented more than one additional ordinary folder from being created in the base "My Inventory" user folder. Added regression test for this case. Switched tests to use XInventoryService with mostly implemented TestXInventoryDataPlugin rather than InventoryService Disabled TestLoadIarV0_1SameNameCreator() since this has not been working for a very long time (ever since XInventoryService) started being used since it doesnt' preserve creator data in the same way as InventoryService did and so effectively lost the OSPAs. However, nobody noticed/complained about this issue and OSPAs have been superseded by HG like creator information via the --home save oar/iar switch.
* Following on from f8a89a79, do not allow more than one 'type' folder (e.g. ↵Justin Clark-Casey (justincc)2012-08-251-16/+49
| | | | | | | | calling cards) to be created in the base "My Inventory" user folder. This is to accomodate situations where viewers will create more than one 'type' subfolder (e.g. calling cards) But at the same time to prevent multiple such 'system' folders (those in the base "My Inventory" user folder). This also makes GetFolderForType() only return a folder in the base "My Inventory" folder, if such a type folder exists
* Allow multiple calling card type inventory folders to be created.Justin Clark-Casey (justincc)2012-08-251-0/+1
| | | | Modern viewers want to create Friends and All folders of this type inside the root Calling Cards folder.
* Fix various issues with http inventoryJustin Clark-Casey (justincc)2012-06-021-1/+1
| | | | | | | | 1) The return messages were being wrongly populated with the names of asset, inventory and sale types when their corresponding integers should have been used instead. 2) Folders with links were including the linked items in the descendents figure, when only the links should be included. 3) Links and linked items in link folders were not being included in the return data, and not in the correct order. Now that these issues have been addressed, outfits and attachments appear to work consistently when HTTP inventory is enabled (as is now the default).
* minor: extend commented out LinkInventoryItem log message for future useJustin Clark-Casey (justincc)2012-05-211-3/+3
|
* Fix bug where outfit folders could not be renamed.Justin Clark-Casey (justincc)2012-05-211-4/+13
| | | | Outfit folders are a type of system folder whose details are allowed to change.
* Fix issue where a new outfit folder is not created when a new outfit is ↵Justin Clark-Casey (justincc)2012-05-181-3/+9
| | | | | | saved if there are no previous outfits This was because AddFolder() was disallowing these though they are legal.
* refactor: Rename new DeleteFoldersEx/PurgeFoldersEx methods to ↵Justin Clark-Casey (justincc)2012-05-041-6/+7
| | | | | | DeleteFolders/PurgeFolders overloads as previously discussed with Oren - I think this makes more sense on balance These overloads are not publicly available on core connectors or IInventoryService.
* Allow deleting folders even if they're not in the TrashOren Hurvitz2012-05-041-4/+15
| | | | The functions DeleteFolders() and PurgeFolder() still work as before, i.e. they only allow deleting folders that are in the Trash. However, the functions DeleteFoldersEx() and PurgeFolderEx() can now be used to delete any folder.
* A few minor tweaks here and there in XInventoryService.Diva Canto2012-04-061-14/+48
|
* Reverse a conditional in XInventory that made updating system folder evrsion ↵Melanie2012-03-271-1/+1
| | | | numbers impossible
* Send the config section name up to the service classes themselves ↵Diva Canto2012-03-271-2/+10
| | | | (XInventory and Assets).
* Fix avatar parameter updating for viewer 3 and maybe 2.Justin Clark-Casey (justincc)2011-09-231-5/+9
| | | | | | | | | 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.
* HG inventory transfers over the profile working.Diva Canto2011-05-271-5/+5
|
* fix bug where outfit folder links could not be deletedJustin Clark-Casey (justincc)2011-05-261-4/+4
|
* Allow item links to be deleted even when other deletes and purges are disabled.Justin Clark-Casey (justincc)2011-05-191-6/+28
| | | | | | | If these links are not deleted, then they will build up in the player's inventory until they can no longer log in. Accidental deletion of links due to bugs or other causes is potentially inconvenient but on a par with items being accidentally moved. When a link is deleted, the target of the link is never touched. This is a general solution that accounts for the use of links anywhere in the user's inventory.
* Accidentally committed too earlyJustin Clark-Casey (justincc)2011-05-181-24/+6
| | | | | | Revert "Allow item links to be deleted even when other deletes and purges are disabled." This reverts commit 491279f99afc65860d44765ee7829c7dd5e4e38e.
* Allow item links to be deleted even when other deletes and purges are disabled.Justin Clark-Casey (justincc)2011-05-171-6/+24
| | | | | | | If these links are not deleted, then they will build up in the player's inventory until they can no longer log in. Accidental deletion of links due to bugs or other causes is potentially inconvenient but on a par with items being accidentally moved. When a link is deleted, the target of the link is never touched. This is a general solution that accounts for the use of links anywhere in the user's inventory.
* Commented verbose debug message.Diva Canto2011-04-241-1/+1
|
* Added creator info across the board -- TaskInventoryItems and InventoryItems ↵Diva Canto2010-11-211-2/+2
| | | | | | themselves. Tested. Seems to be working, main tests pass. Nothing done for IARs or HG transfers yet -- this only works for OARs for the time being. New migration in inventory table in order to make CreatorID varchar(255).
* Fix cast issueMelanie2010-09-021-1/+1
|
* Allow increasing the version in system foldersMelanie2010-09-021-1/+7
|
* Update: Allow the version to increase onlyMelanie2010-09-021-1/+2
|
* Disallow modification of system folders. Prevent changing the type of foldersMelanie2010-09-021-1/+16
| | | | and prevent resetting the version number
* Fix bug in llGiveInventory() where items were disappearing on relogJustin Clark-Casey (justincc)2010-08-231-1/+13
| | | | | This was a regression - the code to look up the correct type folder was no longer being called if items were added without a parent folder set This may have been broken since commit bd49985a on 2010-05-02
* Remove various warnings and improve logging messages. No functional changes.Justin Clark-Casey (justincc)2010-08-231-1/+6
|
* Allow the trash folder itself to be passed to PurgeFolderMelanie Thielker2010-08-061-0/+3
|
* Add some optionsMelanie2010-07-241-0/+11
|
* Fix some inventory issuesMelanie2010-07-241-0/+29
|
* Fix obvious bug in XInventoryService.GetFolderItems() which was preventing ↵Justin Clark-Casey (justincc)2010-07-141-2/+4
| | | | the iar module from being able to save single item iars
* Buglet fix in HG inventory. Make sure that GetRootFolder for non-HG ↵Diva Canto2010-06-291-1/+8
| | | | xinventory is the folder "My Inventory". Also changed the Suitcase folder name to "My Suitcase".
* Changed XInventoryData's CreatorID to a string.Diva Canto2010-06-081-2/+2
|
* Fixes mantis #4691Diva Canto2010-05-161-1/+1
|
* Started redoing HGInventoryBroker for XInventory and with multi-protocol in ↵Diva Canto2010-04-291-3/+3
| | | | mind. Unfinished.
* XInventory connector/handler showing signs of life. Tested, but needs more ↵Diva Canto2010-04-271-4/+4
| | | | testing.
* Create root inventory folder with proper type (9) instead of -1Melanie2010-02-081-1/+1
|
* * Bug fix in XInventoryData -- groupOwned is an int in the DBDiva Canto2010-01-311-2/+8
| | | | * Bug fix in InventoryServerInConnector -- m_config
* * Added a few files that were missing in the repo.Diva Canto2010-01-311-25/+25
| | | | * New HGInventoryService which allows restricted access to inventory while outside