Commit Graph

1080 Commits (0df0e92ff041797f763ecfd8bb5c9c5c4e33a99b)

Author SHA1 Message Date
Charles Krinke 831264fc98 Thank you kindly, BlueWall, for a patch that solves:
SQLite error on creating user.
2009-06-10 17:53:06 +00:00
Jeff Ames a23d64dec1 Formatting cleanup. 2009-06-10 04:28:56 +00:00
Dr Scofield 717fd3b5b9 From: Chris Yeoh <yeohc@au1.ibm.com>
This patch adds oar file date and time (UTC) meta data to an oar file
when it is created.  It also adds a unique ID, though this id does not
in anyway identify the machine that the oar file was created on.

When an oar file with this meta data is loaded this extra information
is saved with the region settings and available via LSL through:

- osLoadedCreationDate()
- osLoadedCreationTime()
- osLoadedCreationID()

If there is no meta data these fields will be blank. Subsequent oar
file loads will erase the information for the previous oar file
load. Persistence has only been implemented for MySQL, the other
backends need updating.

Overall this allows us to much more easily identify the specific version of
software that clients are using. Its very straightforward to edit the oar file
to change the ID string to be something more human friendly.

Included in the patch is a new file OpenSim/Data/MySQL/Resources/030_RegionStore.sql
required for the MySQL DB migration.

btw I had a chat with justincc about this a few weeks ago since he
wrote the oar file import/export and he sounded happy to accept
something that included date/time information but didn't want anything
that would silently leak private information like machine names.
2009-06-03 12:48:04 +00:00
Jeff Ames 840de6c036 Minor: Change OpenSim to OpenSimulator in older copyright headers and LICENSE.txt. 2009-06-01 06:37:14 +00:00
Charles Krinke 2d37ff6fb2 Thank you kindly, StrawberryFride for a patch that:
Added in some key code to read properties from MSSQL for user profiles 
which fixes issues of users having trouble editing estate settings on a 
grid where estate managers are not god, and fixes the option of enabling 
grid god functionality on MSSQL grids.

I have applied this to trunk only. I need someone else to examine and apply
to 0.6.5-Post-Fixes, or give me some direction, please.
2009-05-31 20:53:59 +00:00
Dr Scofield 901fdca13b From: Chris Yeoh <cyeoh@au1.ibm.com>
The attached patch implements llPassTouches. It has been added
to the export/import XML along with the flag for AllowedInventoryDrop.

The MySQL backend has been updated as well, though I haven't
done one of those before so could do with a check. I added
the migration mysql file as well.

The other data backends need updating as well.
2009-05-27 18:01:06 +00:00
lbsa71 ba360ede8b * Upped version number to 0.6.5 2009-05-25 11:43:56 +00:00
Dr Scofield c18c1f6c7c Revert "From: Chris Yeoh <cyeoh@au1.ibm.com>"
This reverts r9666. for some reason the mysql update does not work.
2009-05-25 11:32:31 +00:00
Dr Scofield 0bff818d39 From: Chris Yeoh <cyeoh@au1.ibm.com>
The attached patch implements llPassTouches. It has been added
to the export/import XML along with the flag for AllowedInventoryDrop.

The MySQL backend has been updated as well, though I haven't
done one of those before so could do with a check. I added
the migration mysql file as well.

The other data backends need updating as well.
2009-05-25 11:26:36 +00:00
Jeff Ames ecfad4944b Update svn properties. 2009-05-20 01:02:37 +00:00
Charles Krinke 7a8a481f88 Thank you kindly, StrawberryFride, for a patch that:
Adds maturity & access logic for MSSQL platform to 
mirror that of MySQL as committed in 9502.
2009-05-17 18:18:48 +00:00
Jeff Ames 5cfd84c924 Update svn properties. 2009-05-17 10:26:00 +00:00
Justin Clarke Casey 3791386d4d * Change default sqlite asset db back to Asset.db instead of AssetStorage.db
* This inconsistency has actually existed for some time but only the recent change brought it to light
* In the past, the default in ConfigurationLoader took precedence over the one in SQLiteAssetData
2009-05-15 18:50:38 +00:00
Charles Krinke c1d680b6c3 Thank you kindly, Patnad, for a patch that:
This is to handle the changes in the v1.23 viewer 
of LL regarding the adult rating. With this patch 
a region can be changed to the adult rating from 
LL viewer v1.23 and above.
2009-05-12 03:30:37 +00:00
Sean Dague 51a9c91909 WARNING: contains migration
Since creatorID is no longer treated as a UUID type in the code from the database we need to make sure that it isn't null in the database.  This updates all empty string and null values for this column to the Zero UUID, and makes the column a not null definition with a default fo the Zero UUID.
2009-05-08 14:16:07 +00:00
Sean Dague 3485b2b1c3 now that creatorID is no longer a strict UUID, and the column can still be NULL,
we lost protection from NULL strings.  This puts some protection in for that case.
This may address many of the inventory issues that are being seen intermitently.
2009-05-08 12:28:22 +00:00
Justin Clarke Casey 2284c8509f * Consistently used dashed uuid format for mysql region data, as is done for all other tables
* This revision contains a mysql data migration.  Please backup your mysql region database as a precaution before using this code.
* I also advise that you do a runprebuild[.sh|.bat] and a clean build ("nant clean build" if you're using the command line).
* This change is needed for future id schemes
2009-05-07 14:20:32 +00:00
Justin Clarke Casey e033f4028d * Consistently use dashed uuid format for sqlite region data, as was previously done for sqlite inventory data.
* This revision contains a data migration.  Please backup your sqlite region db as a precaution before using this code
* I also advise that you do a runprebuild[.sh|.bat] and a clean build ("nant clean build" if you're using the command line).
* This change is needed for future id schemes
2009-05-07 13:20:29 +00:00
Justin Clarke Casey c320dca2db * minor: remove some mono compiler warnings 2009-04-29 18:11:41 +00:00
Homer Horwitz 94ab683fe1 Thanks, Ewe Loon for a patch that
provides persistent AvatarAppearance for SQLite.
Fixes Mantis #3296.
2009-04-25 20:55:55 +00:00
Sean Dague de1aef9499 silly C# not letting me use a File.Exists test for a directory. Don't
you know a directory is just a special kind of file on Linux.
2009-04-24 12:40:42 +00:00
Sean Dague fefcb8432f change power linux detection method, the previous method only worked
with interactive logins, not under panda.
2009-04-24 12:06:24 +00:00
Justin Clarke Casey 0d51c22620 * Allow interested user data plugins to store temporary user profiles
* Database and the OGS1 plugins are not interested and hence ignore these calls
2009-04-23 18:57:39 +00:00
Justin Clarke Casey 342126b7b9 * Resolve http://opensimulator.org/mantis/view.php?id=3509 by putting some service initialization into CommsManager
* What is really needed is a plugin and interface request system as being done for region modules
2009-04-22 22:19:43 +00:00
Justin Clarke Casey 4c80685563 * Allow plugins to play nicely in UserManagerBase
* Some methods were returning the value of the first plugin queried, even if the return was null
* Other methods are probably best off querying more than one plugin and aggregating results
2009-04-22 19:26:18 +00:00
Sean Dague e0160e5640 add if exists to the drop table 2009-04-22 19:23:38 +00:00
Sean Dague b0ac6cd0e0 add cleardb to estate tests 2009-04-22 19:11:54 +00:00
Sean Dague 45b90ceef1 ensure we've got a clean data environment prior to running the region
tests
2009-04-22 19:00:40 +00:00
Justin Clarke Casey 2c81e41c8a * Fission OGS1UserServices into user service and OGS1 user data plugin components
* Make OGS1UserServices inherit from UserManagerBase
* This allows grid mode regions to use the same user data plugin infrastructure as grid servers and standalone OpenSims
2009-04-22 18:15:43 +00:00
Sean Dague 5ef6794165 make the asserts spit out messages about their test names 2009-04-13 21:04:50 +00:00
lbsa71 29355de6ee * Some more experimental work on distributed assets. Nothing hotwired yet.
* Introduced preprocess step in FetchAsset (Might revert this later)
  * Some minor CCC
  * Added actual implementation of GetUserProfile( uri ) and the corresponding handler to OGS1.
  * Introduced non-functioning GetUserUri( userProfile) awaiting user server wireup (this might move elsewhere)
2009-04-13 20:04:18 +00:00
Justin Clarke Casey bc515c3241 * Apply http://opensimulator.org/mantis/view.php?id=3439
* This corrects problems seen on some SQLite systems where the migration fails because the two argument substr() isn't implemented
* Thanks RemedyTomm!
2009-04-10 11:34:37 +00:00
Justin Clarke Casey 80ea563bcc * minor: correct some documentation in SQLiteAssetData.cs 2009-04-09 20:07:12 +00:00
Justin Clarke Casey 7f8552fe63 * Change SQLite asset UUID to dashed format to be consistent
* Remaining inconsistent uuids (non dashed) are in region store for sqlite and mysql
* Migration of these will happen at a later date, unless someone else wants to do it
2009-04-09 19:23:19 +00:00
Justin Clarke Casey 67333d48fc * Change UUIDs in SQLite user db to dashed format to match representations elsewhere 2009-04-09 19:01:52 +00:00
Justin Clarke Casey 39c6302972 * Improve inventory uuid conversions to make sure that we aren't converting anything that already contains a -
* Among other things, this means that if a migration is interrupted, it can simply be retried
2009-04-09 18:17:52 +00:00
Justin Clarke Casey b5ba5634fb * Migrate UUID representations in SQLite inventory store to dashed format
* This makes the representation consistent with that most commonly used in the other supported database layers
2009-04-09 16:56:01 +00:00
lbsa71 5572a00295 * Moved the DatabaseTestAttribute to Test.Common, and thus included ref to that in all db tests. *phew* 2009-04-09 16:40:02 +00:00
lbsa71 73ab6bd455 * Thank you, mpallari for a patch that updates NHibernate inventory base mapping.
This fixes mantis #3435
2009-04-09 07:49:16 +00:00
lbsa71 ed33878a0f * tagged some more database tests as such 2009-04-09 07:11:49 +00:00
lbsa71 a707fa7bea * Added custom DatabaseTestAttribute to help separating unit tests from component tests. 2009-04-09 06:42:15 +00:00
Sean Dague 65dcfdf031 SQLite doesn't work on ppc64, so ignore these tests if we are
on this platform
2009-04-08 20:16:23 +00:00
Justin Clarke Casey f3c7298fc5 * 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.
2009-04-08 17:50:57 +00:00
Homer Horwitz c44f4add8b Thanks StrawberryFride for a MSSQL patch to mirror r9011.
Fixes Mantis #3409
2009-04-05 18:05:55 +00:00
Homer Horwitz 97fa525f4e Adding migrations for MySQL and SQLite for removing the "old" cloud image.
The new one already in the Library will be reinserted automatically.
Fixes Mantis #964
2009-04-05 17:07:50 +00:00
lbsa71 958d764172 * Upped trunk version number to 0.6.4 as we just tagged 0.6.4-release 2009-04-01 19:44:46 +00:00
Adam Frisby 5225e40f9e * Removes some hard-coded magic numbers relating to RegionSize. We now use Constants.RegionSize as expected. (Working towards enlarged or smaller regionsizes that arent multiples of 256m)
* Adds minor functionality to MRM Scripting.
2009-04-01 05:58:07 +00:00
Melanie Thielker 62fcfe8924 Thank you, StrawberryFride, for a patch that adds offline inventory
functionality to the MSSQL module.
Fixes Mantis #3370
2009-03-31 11:32:30 +00:00
Teravus Ovares 52c482a7a7 * This updates LibOMV to the current release 0.6.0 on March 19 2009
* Important:  HttpServer.dll was changed to HttpServer_OpenSim.dll so that the HttpServer references do not conflict if you've copied the OpenMetaverse.Http.dll and requirements to the OpenSimulator bin folder.
This means that if you reference HttpServer.dll in any projects, you will need to change the reference to HttpServer_OpenSim.dll.   It still uses the Same HttpServer namespace though.
2009-03-27 22:13:09 +00:00
Melanie Thielker 412112acba Committing partial work on passing folders across instances. This may crash. 2009-03-23 00:11:34 +00:00
Melanie Thielker 16a6d60a21 Make offline gives work in SQLite standalones 2009-03-22 18:35:16 +00:00
Melanie Thielker 9b82b52096 MYSQL Only: Make items given while offline appear in inventory without
the need to clear cache.
2009-03-22 16:12:48 +00:00
Melanie Thielker 1121a214b9 Add a QueryItem method to the inventory subsystem. Currently implemented for
MySQL only, stubs for the others. This allows updating the cache with a single
item from the database.
2009-03-21 17:46:58 +00:00
Jeff Ames fb258c5ed9 Update svn properties, formatting cleanup. 2009-03-12 15:28:30 +00:00
lbsa71 33f511ee4b * Another stab at refactoring up the CustomiseResponse function. Two fixes:
* Sometimes, null is a valid return value to indicate 'none found'. doh.
  * Sometimes, the Grid server does not send simURI - this you need to reconstruct yourself. Euw.

(I believe) this solves mantis issue #3287
2009-03-12 10:50:59 +00:00
lbsa71 2133d35831 * Reverted r8750 to do another round of debugging on mantis #3287 2009-03-11 19:19:48 +00:00
Mike Mazur 8606d7d126 Remove chained tests in BasicGridTest.cs.
It's good practice to isolate unit tests so their outcome (pass/fail)
does not depend on whether another test has been run/passed/failed. A
method is used to populate the DB independently for each test, and a
TearDown method cleans up the database after each test.

Also adding extra comment in C-style comment test.
2009-03-11 00:33:34 +00:00
lbsa71 0df0258087 *** POTENTIAL BREAKAGE ***
* Finally got to the point where I could pull up the CustomiseResponse function. Major de-duplication.
* Introduced FromRegionInfo on RegionProfileData
* This revision needs both grid and standalone testing galore.

Work in progress!
2009-03-10 12:11:19 +00:00
lbsa71 1b34b94331 * Refactored out Create() methods to ensure proper transformation between RegionProfileData and RegionInfo
* Created ToRegionInfo method, still not using it pending peer review. 
* This is a preparatory commit for a subsequent login service refactoring.
2009-03-10 09:05:06 +00:00
Justin Clarke Casey ee73d72f1d * Apply http://opensimulator.org/mantis/view.php?id=3280
* Some small syntax and refactoring tweaks for asset and inventory MSSQL
* This means the MSSQL db plugin now requires SQL Server 2005
2009-03-09 18:04:23 +00:00
Mike Mazur a2f07ecd2e Implemented FetchAssetMetadataSet in DB backends.
This method fetches metadata for a subset of the entries in the assets
database. This functionality is used in the ForEach calls in the asset
storage providers in AssetInventoryServer. With this implemented,
frontends such as the BrowseFrontend should now work.

- MySQL: implemented, sanity tested
- SQLite: implemented, sanity tested
- MSSQL: implemented, not tested
- NHibernate: not implemented
2009-03-09 07:29:34 +00:00
lbsa71 5b5b784599 * Got rid of concrete GridDBService references 2009-02-26 11:50:49 +00:00
lbsa71 82efceb494 * renamed IRegionProfileService to IRegionProfileRouter to better reflect use (naming is a work in progress...)
* introduced new IRegionProfileService that is going to be _one_ profileService
* Had GridDBService inherit the IRegionProfileService

(preparing for re-wiring things and de-duplicating eventually)
2009-02-26 11:44:16 +00:00
Justin Clarke Casey 36e648a37a * minor: Remove most mono compiler warnings 2009-02-25 20:53:02 +00:00
lbsa71 41c883ea47 * Refactored SOP.FolderID weirdness by removing calls to empty setter. YEs, I do realize the setter has to be there for legacy reasons, but since the calls will never acually DO anyhting, I'm removing them.
* So, SOP.FolderID is actually a cruft field that should be removed.
2009-02-25 11:01:38 +00:00
Charles Krinke 8f55b9d735 Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:
* Added log4net dependency to physxplugin in prebuild.xml.
* Added missing m_log fields to classes.
* Replaced Console.WriteLine with appropriate m_log.Xxxx
* Tested that nant test target runs succesfully.
* Tested that local opensim sandbox starts up without errors.
2009-02-22 20:52:55 +00:00
lbsa71 1cadad9ec6 * Applied a patch that: Added estate ban table to migration scripts and nhibernate mapping. Refactored property getters and setters for estate ban object to support NHibernate.
* Added estate ban table to migration scripts of all supported databases.
* Added nhibernate mapping for EstateBans property of EstateSettings
* Refactored property accessors for EstateBan object.
* Added comments for EstateBan properties.
* Ensured that NHibernate tests pass with NUnitGUI.
* Ensured that nant test target passes.  

This fixes mantis #3210. Thank you, tlaukkan!
2009-02-21 09:39:33 +00:00
idb 6119b02860 * Apply http://opensimulator.org/mantis/view.php?id=3185
* Fixes NHibernate problem where prim contents show as textures
* Thanks Tommil!
2009-02-20 22:56:40 +00:00
lbsa71 2e095f5727 * Upped VersionInfo to 0.6.3 and in the process, changed assemblyinfo to 0.6.3.* to better track down dll ref and overwrite problems. 2009-02-20 16:47:31 +00:00
Justin Clarke Casey acf112ac40 * Apply http://opensimulator.org/mantis/view.php?id=3195
* Access NHibernate Manager as read-only property rather than public field
* Thanks Tommil
2009-02-20 14:36:53 +00:00
Jeff Ames 7d4846462b Update svn properties, add copyright headers, minor formatting cleanup. 2009-02-20 02:33:54 +00:00
lbsa71 b99d9bdeb1 * Reverted the AssetServer fix, apparently something was dependent on IAssetDataPlugin being in OpenSim.Data 2009-02-19 19:32:53 +00:00
lbsa71 b5502ef3c3 * Extracted IAssetData and moved it to OpenSim.Framework to prepare to get rid of ugly CoreModules dependency on AssetServer.exe
* And yes, the IAssetDataPlugin is misnomed, which became apparent on extracting it.
2009-02-19 18:40:32 +00:00
Justin Clarke Casey 631e10f269 * Apply http://opensimulator.org/mantis/view.php?id=3151
* Fixes NHibernate overflow exception when saving some objects (under at least PostgreSQL 8.3)
* Thanks Tommil!
2009-02-19 18:31:45 +00:00
Justin Clarke Casey 0760956561 * Apply http://opensimulator.org/mantis/view.php?id=3142
* Changes varchar(36) columns to UUID type in MSSQL - this will be much more efficient
* ===As always, please, please backup your database before applying this patch===
* Thanks Ruud Lathrop (for the patch) and StrawberryFride (for the review)
2009-02-19 18:09:10 +00:00
Melanie Thielker 2d7c15c560 Fix estate ban list persistence in MySQL and reenable tests 2009-02-18 18:48:59 +00:00
Sean Dague 8d23d97084 remove legacy pre-migration code for mysql grid adapter, who knew this
was still in there.
2009-02-18 12:56:28 +00:00
Sean Dague c417a5b619 remove all the very old create and upgrade sql files, these were
outdated by migrations 6 months ago.
2009-02-17 19:06:23 +00:00
lbsa71 93465df5e3 * Moved the nifty MySQLEstateData connectionstring password-stripper out into the Util project 2009-02-17 14:12:57 +00:00
Mike Mazur 76c0935ec7 - remove the Metadata property from AssetBase and return all previous
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-17 01:36:44 +00:00
Justin Clarke Casey 80759f708b * Apply http://opensimulator.org/mantis/view.php?id=3166
* Adds estate access list supports to NHibernate data module
* Thanks Tommil
2009-02-16 19:33:11 +00:00
Sean Dague c7a08752c0 line ending fixes and set native eol property 2009-02-16 19:23:53 +00:00
Mike Mazur ef19d32a39 - remove dependency on OpenSim.Grid.AssetServer.Plugins.Opensim in
OpenSim.Data.*.addin.xml, this is cruft left over from previous
  testing
- fix example SQLite connection string in
  AssetInventoryServer.ini.example
2009-02-16 02:28:00 +00:00
Mike Mazur 9e88cef033 AssetInventoryServer plugins can't be a dependency for the OpenSim.Data.MySQL addin. 2009-02-16 02:25:53 +00:00
Mike Mazur 8d30472551 Rename NewAssetServer AssetInventoryServer and fully qualify with
OpenSim.Grid.AssetInventoryServer.
2009-02-16 02:25:25 +00:00
Mike Mazur b3c0cea024 - add OpenSim.Grid.AssetServer.Plugins.OpenSim as a dependency for OpenSim.Data.*.addin.xml
- remove OpenSim.Grid.NewAssetServer.exe from bin/OpenSim.Data.addin.xml
- add prebuild.xml section for OpenSim.Grid.AssetServer.Plugins.OpenSim.dll
2009-02-16 02:25:15 +00:00
Charles Krinke 38b1f2dbfc Mantis 3164. Thank you kindly, TLaukkan (Tommil) for a patch that:
* Added tests for manager, user and group lists.
* Added test for ban list. The test had to be left as ignored as 
native MySQL throws exception when ban is saved.
* Added utility class to support parametrized unit tests for range checking.
2009-02-14 22:31:39 +00:00
Charles Krinke 3542630478 Remove the "?" that I inadvertently got into the first line
of EstateRegionLink.cs
2009-02-14 20:03:16 +00:00
Charles Krinke a583d8ad70 Thank you kindly, TLaukkan (Tommil) for a patch that:
* Created value object for EstateRegionLink for storing the estate region relationship.
* Refactored slightly NHibernateManager and NHibernateXXXXData implementations for accesing nhibernate generated ID on insert.
** Changed NHibernateManager.Save method name to Insert as it does Insert.
** Changed NHibernateManager.Save return value object as ID can be both UUID and uint currently.
** Changed NHibernateManager.Load method Id parameter to object as it can be both UUID and uint.
* Created NHibernateEstateData implementation. This is the actual estate storage.
* Created NHibernate mapping files for both EstateSettings and EstateRegionLink
* Created MigrationSyntaxDifferences.txt files to write notes about differences in migration scripts between different databases.
* Created estate storage migration scripts for all four databases.
* Created estate unit test classes for all four databases.
* Updated one missing field to BasicEstateTest.cs
* Tested NHibernate unit tests with NUnit GUI. Asset databases fail but that is not related to this patch.
* Tested build with both Visual Studio and nant.
* Executed build tests with nant succesfully.
2009-02-14 19:47:02 +00:00
Jeff Ames 95d53d48d4 Add copyright headers. Minor formatting cleanup. Fix some compiler warnings. Fix some m_log declarations. 2009-02-13 02:06:28 +00:00
Mike Mazur ebf268a593 Remove extra ID field from asset DB mapping. Mantis #3122, fixes Mantis #3080. 2009-02-13 00:02:26 +00:00
Sean Dague 5959e42683 large scale fix for svn props after "the great refactor" 2009-02-12 18:59:45 +00:00
lbsa71 84d56bc515 * Some more CCC 2009-02-12 10:30:53 +00:00
lbsa71 6187888456 * Renamed RegionProfileService to RegionProfileServiceProxy to better reflect actual use.
* Added IRegionProfileService
2009-02-12 10:21:21 +00:00
lbsa71 c3a4810e91 * Turned RegionProfileService non-static 2009-02-12 10:16:11 +00:00
lbsa71 792b7cba2f * Applied some CCC (Code Convention Conformance) 2009-02-12 10:08:47 +00:00
lbsa71 fa796308c3 * Added RegionProfileService and moved RequestSimData to it. 2009-02-12 10:05:15 +00:00
lbsa71 801da4346a * optimized usings. 2009-02-12 09:53:12 +00:00
Dr Scofield 180be7de07 this is step 2 of 2 of the OpenSim.Region.Environment refactor.
NOTHING has been deleted or moved off to forge at this point.  what
has happened is that OpenSim.Region.Environment.Modules has been split
in two:

- OpenSim.Region.CoreModules: all those modules that are either
  directly or indirectly referenced from  other  OpenSim packages, or
  that provide functionality that the OpenSim developer community
  considers core functionality:

      CoreModules/Agent/AssetTransaction
      CoreModules/Agent/Capabilities
      CoreModules/Agent/TextureDownload
      CoreModules/Agent/TextureSender
      CoreModules/Agent/TextureSender/Tests
      CoreModules/Agent/Xfer
      CoreModules/Avatar/AvatarFactory
      CoreModules/Avatar/Chat/ChatModule
      CoreModules/Avatar/Combat
      CoreModules/Avatar/Currency/SampleMoney
      CoreModules/Avatar/Dialog
      CoreModules/Avatar/Friends
      CoreModules/Avatar/Gestures
      CoreModules/Avatar/Groups
      CoreModules/Avatar/InstantMessage
      CoreModules/Avatar/Inventory
      CoreModules/Avatar/Inventory/Archiver
      CoreModules/Avatar/Inventory/Transfer
      CoreModules/Avatar/Lure
      CoreModules/Avatar/ObjectCaps
      CoreModules/Avatar/Profiles
      CoreModules/Communications/Local
      CoreModules/Communications/REST
      CoreModules/Framework/EventQueue
      CoreModules/Framework/InterfaceCommander
      CoreModules/Hypergrid
      CoreModules/InterGrid
      CoreModules/Scripting/DynamicTexture
      CoreModules/Scripting/EMailModules
      CoreModules/Scripting/HttpRequest
      CoreModules/Scripting/LoadImageURL
      CoreModules/Scripting/VectorRender
      CoreModules/Scripting/WorldComm
      CoreModules/Scripting/XMLRPC
      CoreModules/World/Archiver
      CoreModules/World/Archiver/Tests
      CoreModules/World/Estate
      CoreModules/World/Land
      CoreModules/World/Permissions
      CoreModules/World/Serialiser
      CoreModules/World/Sound
      CoreModules/World/Sun
      CoreModules/World/Terrain
      CoreModules/World/Terrain/DefaultEffects
      CoreModules/World/Terrain/DefaultEffects/bin
      CoreModules/World/Terrain/DefaultEffects/bin/Debug
      CoreModules/World/Terrain/Effects
      CoreModules/World/Terrain/FileLoaders
      CoreModules/World/Terrain/FloodBrushes
      CoreModules/World/Terrain/PaintBrushes
      CoreModules/World/Terrain/Tests
      CoreModules/World/Vegetation
      CoreModules/World/Wind
      CoreModules/World/WorldMap

- OpenSim.Region.OptionalModules: all those modules that are not core
  modules:

      OptionalModules/Avatar/Chat/IRC-stuff
      OptionalModules/Avatar/Concierge
      OptionalModules/Avatar/Voice/AsterixVoice
      OptionalModules/Avatar/Voice/SIPVoice
      OptionalModules/ContentManagementSystem
      OptionalModules/Grid/Interregion
      OptionalModules/Python
      OptionalModules/SvnSerialiser
      OptionalModules/World/NPC
      OptionalModules/World/TreePopulator
2009-02-10 13:10:57 +00:00
Jeff Ames a3d14832af Update svn properties, minor formatting cleanup. 2009-02-09 22:49:05 +00:00
Charles Krinke 29f54db90a Thank you kindly, TLaukkan (Timmil) for a patch that:
* Fixed and added athursv's BasicEstateTest
* Added MySQLEstateTest
* Added SQLiteEstateTest
2009-02-09 22:07:27 +00:00
Charles Krinke 70051278c4 Thank you kindly, TLaukkan (Tommil) for a patch that:
* Updated migration scripts and hbm.xml so that nhibernate tests work.
2009-02-09 21:44:39 +00:00
Justin Clarke Casey eddcf620d8 * Apply http://opensimulator.org/mantis/view.php?id=3080
* Changes the NHibernate asset mapping and expose FullID on AssetBase for NHibernate
* mikem has seen this patch :)
2009-02-09 17:31:03 +00:00
Justin Clarke Casey 828049ac8f * Apply http://opensimulator.org/mantis/view.php?id=3094
* Add NHibernate PostgreSQL database tests.  
* Tests not yet being run as the PostgreSQL module is not yet fully functional
2009-02-09 17:02:10 +00:00
Sean Dague 56318f97bf * Fixing refactoring +1 (Fixes Mantis #3113)
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2009-02-09 15:40:31 +00:00
Dr Scofield 11f0ac88ee fixing refactoring artefact. (fixes mantis #3113) 2009-02-09 09:45:09 +00:00
Mike Mazur d01fffb8b5 Remove unused OpenSim/Data/{DataStore,InventoryData}Base.cs. 2009-02-09 00:34:01 +00:00
Mike Mazur 369eef5fcd The DataPluginFactory is now a set of generic methods instead of
multiple duplicates of the same code.
2009-02-09 00:33:44 +00:00
Dr Scofield 9b66108081 This changeset is the step 1 of 2 in refactoring
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-06 16:55:34 +00:00
Mike Mazur 0c03a48fb2 - add OpenSim.Framework.AssetMetadata class. AssetBase is now composed of it
- trim trailing whitespace
2009-02-04 00:01:36 +00:00
Mike Mazur 52deb50884 Embed OpenSim.Data.addin.xml as a resource into OpenSim.Data.dll. 2009-02-03 05:20:52 +00:00
Mike Mazur d259238c74 - moved data plugin loading code from various places to
OpenSim/Data/DataPluginFactory.cs
- removed dependencies on a few executable assemblies in
  bin/OpenSim.Data.addin.xml
- trim trailing whitespace
2009-02-03 05:20:44 +00:00
Mike Mazur d3eae4073e - move OpenSim/Framework/IUserData.cs to OpenSim/Data/IUserData.cs
- trim trailing whitespace
2009-02-03 05:20:35 +00:00
Mike Mazur 9377c6f2b2 - move OpenSim/Framework/IInventoryData.cs to
OpenSim/Data/IInventoryData.cs
- trim trailing whitespace
2009-02-03 05:20:26 +00:00
Mike Mazur e12b0a2496 - move IAssetDataPlugin from OpenSim/Framework/IAssetProvider.cs to
OpenSim/Data/IAssetData.cs
- remove some trailing whitespace
2009-02-03 05:20:16 +00:00
Mike Mazur f8e45e8e98 Rename IAssetProviderPlugin to IAssetDataPlugin aligning with the other data plugins. 2009-02-03 05:20:03 +00:00
lbsa71 d91bc08737 * Removed the unused Data.Base Framework 2009-02-02 11:16:41 +00:00
Justin Clarke Casey 13f069b945 * If an orphaned group is found in the mysql or mssql databases (i.e. there is no prim where UUID = SceneGroupID), then force one prim to have UUID = SceneGroupID.
* A warning is posted about this on startup giving the location of the object
* This should allow one class of persistently undeletable prims to be removed
* This change should not cause any issues, but I still suggest that you backup your database beforehand
* If this doesn't work for previously linked objects, then you could also try the workaround in http://opensimulator.org/mantis/view.php?id=3059
* This change has been made to mysql and mssql, but sqlite appears to work in a different way
2009-01-29 20:08:04 +00:00
Mike Mazur 7aa216d574 Slight cleanup of docs, removing trailing whitespace. 2009-01-28 01:55:45 +00:00
Adam Johnson 444320e4a6 Applied patch from #3012 Fixing a minor bug where nhibernate mappings from outside OpenSim.Data.NHibernate assembly were not included in sessionFactory. Thanks mpallari! 2009-01-25 08:31:08 +00:00
Jeff Ames 676b7c1073 Update svn properties. 2009-01-24 08:18:41 +00:00
Charles Krinke bd2c345e56 Thank you kindly, TLaukkan (Tommil) for a patch that:
* Added Npgsql.dll and Mono.Security.dll which are NpgsqlDriver dlls.
* Added missing field to schema creation scripts: PathTaperY.
* Added schema creation scripts for PostgreSQL.
* Added unit test classes for PostgreSQL.
* Added schema creation script folder to NHibernate project in prebuild.xml
* Added Npgsql.dll to NHibernate test project dependencies in prebuild.xml
* Ensured that build works with both nant and Visual Studio.
* Executed build unit tests with nant and NHibernate unit tests with NUnitGUI
  - Couple of region tests fail due to double precission float rounding errors need to sort out how these are handles in unit tests and if higher precission numeric field needs to be used in Postgresql.
2009-01-23 20:21:43 +00:00
Jeff Ames c1e9990d82 Update svn properties, minor formatting cleanup. 2009-01-22 16:16:34 +00:00
Justin Clarke Casey 6495ff9624 * Apply http://opensimulator.org/mantis/view.php?id=3021
* Adds MSSQL 2005 unit tests
* Thanks Tommil!
2009-01-20 18:49:16 +00:00
Justin Clarke Casey 37f7c5a0ea * Apply http://opensimulator.org/mantis/view.php?id=3020
* Adds a grid db implementation and unit tests to the NHibernate module
2009-01-20 18:38:51 +00:00
Justin Clarke Casey 84a4a9ecf7 * Apply http://opensimulator.org/mantis/view.php?id=3012
* Allows different assemblies to be used in NHibernateManager, which makes it possible to use mapping and migration files in different assemblies.
* Thanks mpallari!
2009-01-20 18:27:30 +00:00
Justin Clarke Casey 0828c28501 * Remove unused prims.ParentID field from SQLite and MySQL
* Since this is a db change, as always I strongly recommend that you backup your database before updating to this revision
* Haven't touched MSSQL in case I get it wrong - looking for some kind soul to take care of this.
2009-01-19 15:16:17 +00:00
Melanie Thielker c5395feadd Avoid an invalid cast on legacy data 2009-01-18 23:31:13 +00:00
Jeff Ames 23bd915ecd Minor formatting cleanup, add copyright header. 2009-01-16 04:42:24 +00:00
Jeff Ames 5c310efb79 Update svn properties. 2009-01-16 04:23:10 +00:00
Sean Dague 7934094cf3 * Added MySQL Grid unit tests
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2009-01-14 19:34:14 +00:00
Justin Clarke Casey e10de20772 * Apply http://opensimulator.org/mantis/view.php?id=2995
* This fixes MSSQL for user friends lookups
* Thanks StrawberryFride
2009-01-14 14:53:42 +00:00
Justin Clarke Casey 1baa921463 * minor: remove some mono compiler warnings 2009-01-13 18:35:20 +00:00
Justin Clarke Casey 2676927466 * Add copyright notice to NHibernate.UserFriend 2009-01-13 17:16:56 +00:00
Justin Clarke Casey bfef9a7b0d * Apply http://opensimulator.org/mantis/view.php?id=2991
* Puts ordinary getters and setters into NHibernate.UserFriend since previous c# 3.0 get/set failed on MSVC#2005
* Thanks mpallari
2009-01-13 17:13:49 +00:00
Justin Clarke Casey c8ea09f325 * Apply http://opensimulator.org/mantis/view.php?id=2992
* Removes now unnecessary revision 2 and 3 files that should have been removed in an earlier patch
* Thanks tlaukkan!
2009-01-13 17:04:52 +00:00
Charles Krinke c00c855cc5 Thank you kindly, Tlaukkan (Tommil) for a patch that:
Cleaned up schema creation scripts of MySQL to compliant form and created 
SQLite scripts from them. In future it would be optimal if scripts from 
different databases could be generated from MySQL scripts to ensure optimal 
consistency between schemas of different databases. Did not yet review 
column names. ID columns seem to have variety in naming which can be confusing.
2009-01-12 20:14:39 +00:00
Homer Horwitz 2cfd18b6a2 Fix some C#3.0-isms that broke build in Mono 1.2.6 and MSVC# 2005.
Fixes Mantis #2989.
2009-01-12 19:28:40 +00:00
Homer Horwitz 7caf1a4abf Fixed some svn properties 2009-01-12 19:24:20 +00:00
Justin Clarke Casey af0fcb96a4 * Apply http://opensimulator.org/mantis/view.php?id=2965
* Adds first version of MsSql2005Dialect support for NHibernate
* Thanks mpallari
2009-01-12 17:51:43 +00:00
Justin Clarke Casey 41377008e1 * Apply http://opensimulator.org/mantis/view.php?id=2980
* Add single conversion to MSSQLManager.DbTypeFromType
* May resolve storage of prim information under MSSQL
* Thanks SirKimba
2009-01-12 17:44:39 +00:00
Charles Krinke 40f34aeffd Thank you kindly, Tlaukkan (Tommil) for a patch that:
Fixed all NHibernate unit tests by implementing missing persistency 
methods, tables, columns and fixing bugs in the existing implementation.
Two minor changes to classes outside NHibernate module: Added Scene 
instantiation for SceneObjectGroup in OpenSim.Data.Tests.BasicRegionTest 
as this was required by the NHibernate persistency. In the process added 
also mock constructor to Scene which only populates RegionInfo in the scene 
which is used by ScenePart.RegionUUID. NHibernate module is still in 
experimental state and has not been tested at opensim region or ugaim runtime 
configuration. Adding unit tests to build is not yet advisable nor using 
NHibernate module in any production setup.
2009-01-11 18:24:16 +00:00
Charles Krinke 16561bd528 Thank you kindly, Tlaukkan (Tommil) for a patch that:
NHibernate MySQL migration was not working as mysql dialect is 
MySQL5Dialect now instead of MySQLDialect which is the migration 
sub folder name. Fixed this by adding simple dialect to migration 
sub type mapping to manager initialization to avoid need of renaming 
migration script folder each time MySQL version changes. Removed 
shared session and changed session to be constructed per call as 
NHibernate session is not thread safe. Refactored manager member 
names to be according to the naming convention (full words in camel case).
2009-01-10 16:31:00 +00:00
Jeff Ames b0a59c3bf3 Update svn properties, minor formatting cleanup. 2009-01-08 01:13:08 +00:00
Justin Clarke Casey 8d035b196d * Apply http://opensimulator.org/mantis/view.php?id=2948
* This fixes adding and updating user profiles in MySQL on platforms that have a commas as a decimal separator
* Thanks Tommil!
2009-01-07 18:46:27 +00:00
Charles Krinke 0f9918f1d3 Thank you kindly, StrawberryFride for a patch that:
Solves the problem of unable to load prim items on region start in MSSQL.
The error was in the MSSQLRegionData code that loads objects from the database, 
due to reliance on the ParentID field that is not used.
2009-01-07 15:03:41 +00:00
Justin Clarke Casey e98385dd74 * Stop bothering to populate and retrieve the parent local ids for MSSQL, as was done for SQLite and MySQL in r7586
* This may resolve http://opensimulator.org/mantis/view.php?id=2939
2009-01-05 20:43:03 +00:00
Justin Clarke Casey c6294efdbb * Add the actual tests from http://opensimulator.org/mantis/view.php?id=2950
* Apologies for missing these out yet again
* Thanks to Tommil for this code
2009-01-05 18:33:12 +00:00
Justin Clarke Casey 0d3a99f6bc fixes mantis #2950 2009-01-05 18:04:47 +00:00
Sean Dague d8a2ad5cb5 change the drop order to see if this affects unit test fails
From: Sean Dague <sdague@gmail.com>
2009-01-05 15:59:08 +00:00
Jeff Ames 2be0f7a6f0 Update svn properties, minor formatting cleanup. 2008-12-30 01:08:07 +00:00
Charles Krinke 0125a98a1f Thank you kindly, StrawberryFride for a patch that:
Persists appearance with MSSQL more properly.
2008-12-28 22:31:21 +00:00
Justin Clarke Casey e64d9b66a9 * Fix http://opensimulator.org/mantis/view.php?id=2889
* Primshapes uuid wasn't being converted to raw (non-dashed) format before being used in primshapes delete command
2008-12-23 20:41:52 +00:00
Justin Clarke Casey 94d267303f * Correct build break, no idea how that one managed to slip by me 2008-12-23 19:07:29 +00:00
Justin Clarke Casey f49daf9708 * Modify SQLite implementation of UpdateUserProfile() to allow modifications where the name has not been changed 2008-12-23 18:56:56 +00:00
Homer Horwitz fb49e010b7 Update the MySQL connector to 5.2.5. Fixes Mantids#2673. Thanks for the hint, jhurliman. 2008-12-22 19:49:17 +00:00
Dahlia Trimble 6e68a11082 Thanks Gerhard for a patch that implements part 3 of VolumeDetection / persistance 2008-12-22 09:29:59 +00:00
Charles Krinke ad05d613a6 Mantis#2881. Thank you kindly, SirKimba for a patch that:
Solves inserting Wolrdparameters in SQL Database with 
OpenSim.Data.MSSQL.dll always crash cause there were 
missing some fields in the Insert-String
2008-12-20 21:26:00 +00:00
Justin Clarke Casey ac451485d6 * minor: Remove unused AppearanceTableMapper as pointed out by jonc in http://opensimulator.org/mantis/view.php?id=2843 2008-12-17 16:47:38 +00:00
Justin Clarke Casey b4680f653d * Implement 'Save Object Back to My Inventory'. On the Linden client this is in the Tools menu available when editing an object
* This facility allows you to save changes to an object that you've rezzed into a region back into their original inventory item without having to take a copy of the rezzed 
object.
2008-12-17 16:11:03 +00:00
Homer Horwitz ef2c0d115a Color was set twice, first correctly, then incorrectly, in SQLiteRegionData.
Removed the second set. Fixes Mantis#2380.
2008-12-14 18:17:35 +00:00
Charles Krinke 6cf0b81864 Mantis#2811. Thank you kindly, Diva for a patch that resolves
some of our DNS/dotted decimal issues that plague teleporting.
We are increasing the MajorInterfaceVersion from 1 to 2 in the
gridserver, so sims will need to be updated on various grids.
2008-12-13 16:25:20 +00:00
Homer Horwitz d943abea57 Move from IP to hostname for seed caps on login, for gridmode and standalone.
All the other caps (except the initial one) are already sent with hostname
instead of IP.
NOTE: This changes gridserver and userserver
2008-12-11 19:52:29 +00:00
idb 7e65697142 Reinstate setting timeout to never, the default 30 second timeout was causing problems with big migrations 2008-12-08 18:55:19 +00:00
Sean Dague 444436db15 change a UUID cast to an actual new UUID call to be consistant with
the rest of the assignments here.
2008-12-08 17:06:47 +00:00
Sean Dague a260466147 fix an issue I found where primshapes weren't every being removed
because of a logic error.
attempt to speed up deletes a bit by batching up all the primitem
deletes and primshape deletes into single delete statements.  This
removes the lock/release/lock/release/lock/release for loop.
2008-12-08 16:29:48 +00:00
Justin Clarke Casey bdee86563c * Check in another patch from http://opensimulator.org/mantis/view.php?id=2710
* This allows removal of the old NHiberate.Mapping.Attributes.dll
* Also add in the files I forgot about last time.  Doh!
2008-12-04 20:48:08 +00:00
Sean Dague 95de4717b6 * Minor test correction, comment removal
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-12-03 19:19:51 +00:00
Sean Dague b2ab15ba34 Extends Avatar Appearance tests
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-12-03 19:19:39 +00:00
Justin Clarke Casey dde32f1130 * Reapply http://opensimulator.org/mantis/view.php?id=2710
* This patch gets NHibernate working
*** PLEASE NOTE: This patch now requires the libmono-oracle2.0-cil library to be installed on Ubuntu (to stop the System.Data.Oracle missing failure) ***
* Not sure what the dependency is on other distros.  Adding this info to http://opensimulator.org/wiki/Build_Instructions would be most welcome
* Adds Castle.* libraries that were missing last time (note, dlls have been added from http://downloads.sourceforge.net/nhibernate/NHibernate-2.0.1.GA-bin.zip)
2008-12-02 15:22:58 +00:00
Justin Clarke Casey 26fd6c741f * Resolve http://opensimulator.org/mantis/view.php?id=2743 and http://opensimulator.org/mantis/view.php?id=2739 by no longer bothering to store or retrieve the local parentID in
the region database
* The original issue is that the now randomly generated local ids do not fit into the int parentID datatype
* However, as far as I know it's actually pointless to store this local parent ID anyway (we already store the groupUUID), especially as we don't bother to store the localID (as 
opposed to UUID itself).
* Conservatively, the actual column will be removed in a later commit
2008-12-02 14:59:52 +00:00
Melanie Thielker bf4ccf3858 Catch all possible exceptions in the mysql module. It throws non-mysql
exceptions as well.
2008-12-02 01:50:15 +00:00
Melanie Thielker 733faf9748 Fix the terrain loader 2008-12-01 19:08:58 +00:00
Melanie Thielker 5727146d61 More reverts. Revert the MySQL database module. This caused more issues
than it solved by trying to use, and then exhausting, the connection pool
2008-12-01 18:59:13 +00:00
Justin Clarke Casey 80520206fc * Unforunately it turns out not to be that simple. Revert the rest of r7560 for now. 2008-12-01 18:42:14 +00:00
Charles Krinke 01fc0492d0 Mantis#2730. Thank you kindly, StrawberryFride for a patch that:
MSSQL Fix to accommodate random ParentIDs. uint values now 
cleanly converted to ints and vice versa to hopefully prevent 
outofrange exceptions on prim storage.
2008-12-01 15:03:57 +00:00
Adam Frisby 4ed7ca62b1 * From Mantis#2701 - Implements NHibernate data adapter, adds support for MsSql2005 to NHibernate.
* Patch courtesy of Adminotech and realXtend. Thanks!
2008-12-01 07:50:38 +00:00
Homer Horwitz 96921c402c Try to fix Mantis#2727. SQLite seems to be able to store bigger numbers in
an INTEGER column (using 6 bytes), but the mapping was wrong.
Question: Should we move localIDs to int instead of uint to save some bytes?
2008-11-30 22:27:22 +00:00
Melanie Thielker 38380def17 More changes to the MySQL adapter. take advantage of pooling and run lock-free.
This should finally kill the "There is already an open data reader associated
with this connection, which must be closed first" error that makes people's
builds not save
2008-11-30 05:20:19 +00:00
Jeff Ames 077314cdd3 Update svn properties. Add copyright header. Minor formatting cleanup. 2008-11-30 00:51:40 +00:00
Melanie Thielker d579246257 Explicitly Dispose() all cmd objects 2008-11-29 21:24:54 +00:00
Justin Clarke Casey 8ba6b2b11a * minor: remove mono compiler warnings 2008-11-27 19:51:11 +00:00
Justin Clarke Casey 45c50998c2 * Remove unused and largely unimplemented UpdateUserCurrentRegion()
* please say if this causes you a problem
2008-11-27 19:43:26 +00:00
Justin Clarke Casey c85e2a0fb0 * restore deleted method documentation, some to IRegionDataStore and some to MySQLRegionData
* I would like to keep documentation on methods, even if it sometimes seems obvious (and not all of these are)
2008-11-26 17:42:35 +00:00
Melanie Thielker f1f4b16bc8 Change the max value of the bytes in tests to 127. MySQL bytes are signed
by default
2008-11-26 12:34:32 +00:00
Melanie Thielker fdf5f55a5b Yay for unit tests. Increased the type width of the prims and primshapes
tables, and changed the database modules to actually push these doubles
down into the database layer.
2008-11-26 12:23:56 +00:00
Melanie Thielker 4fdda32cd3 A migration to make the floats in prims table be doubles 2008-11-26 11:38:58 +00:00
Melanie Thielker bd6f58184a Reduce the numerical range of text values to match what MySQL offers 2008-11-26 11:27:02 +00:00
Melanie Thielker c7d39fb4e3 Comment one more field that can't be tested that way anymore 2008-11-26 10:55:06 +00:00
Melanie Thielker 841c53003f A migration to convert the floats int the database to doubles.
Maybe we don't have to say "Shift happens" as often anymore....
2008-11-26 09:05:11 +00:00
Melanie Thielker 3388584aa8 Fix 2 of the failed tests. Cause terrain queries to return null when no
terrain is found, rather than a default "0" terrain.
Remove the "remove object wrong region" test. UUIDs either are unique
or they're not. This test tested a bad behavior I have chosen not to 
duplicate.
2008-11-26 08:06:14 +00:00
Melanie Thielker 3efdccbb12 Committing the LCO database layer. Native MySQL, no ADO. New reconnect
mechanism to prevent prim loss. Preserve link order on sim restart
and drag copy. Fix drag-copied prims' inventories. Fix persistence
of child prim inventories.
2008-11-26 07:34:38 +00:00
Justin Clarke Casey 759a667247 * Make a step on removing direct access to TaskInventoryDictionary from other packages 2008-11-25 17:15:21 +00:00
Justin Clarke Casey 11f7471d9c * Remove direct access to Inventory.Serial 2008-11-25 17:01:18 +00:00
Melanie Thielker 95fec14201 Remove code from an experimantal patch that wasn't supposed to be committed 2008-11-23 21:03:54 +00:00
Melanie Thielker fba9e3f513 Don't serve texture preview from other people's objects if you
havenever seen that texture before.
2008-11-23 20:39:51 +00:00
Melanie Thielker cbd0221870 Plumb in the presence notifications and region shutdown/restart messages
from the presence module to the message server, through the user server
and on into the database. This should fix the "Already logged in" issue
that grids see after a sim crashes, or a user crashes out of a sim.
Not yet a 100% solution for friends, but getting there.
2008-11-23 05:16:07 +00:00
Justin Clarke Casey c0cd681608 * Comment out unused access time method in MSSQL
* This should probably be being called in FetchAsset() instead as for all the other databases, but I lack the means to test MSSQL
2008-11-21 21:24:39 +00:00
Justin Clarke Casey 915593bfbc * refactor: Rip out SOP inventory from the partial into a separate class
* SceneObjectPartInventory.cs isn't a particularly good name but it's probably not got a long life
* A proper inventory interface to follow
* Parallel changes for other inventory partial classes to follow at a later date
2008-11-21 21:16:42 +00:00
Jeff Ames ecac5c9c5a Update svn properties, minor formatting cleanup. 2008-11-21 18:44:48 +00:00
Charles Krinke b0ee8fc271 Mantis#2658. Thank you kindly, StrawberryFride for a patch that:
Keeping up with MySQL and SQLite. Small code changes and 
another resource file to add.
2008-11-19 23:57:19 +00:00
Charles Krinke 9babdb1095 Mantis#2657. Thank you kindly, StrawberryFride for a patch that:
Added access_time and create_time, plus the new sun position 
data to MSSQL code.
2008-11-19 18:36:04 +00:00
Charles Krinke 44c56a974c Mantis#2656. Thank you kindly, Nlin for a patch that:
Attached patch implements llCollisionSound. Thanks T. Sado.
2008-11-19 18:30:16 +00:00
Melanie Thielker f518ca7feb Reapply r7369 r7367 r7366 r7370 r7381. This brings it back up to the new
libOMV.
2008-11-19 06:25:34 +00:00
Melanie Thielker 3234472d62 Reverting the texture sending patch and the new libOMV. This makes this
release a direct descendant of the stable 7364, with all the features and
none of the issues.
This omits the following patch chain: r7383 r7382 r7381 r7377 r7375 r7373
r7372 r7370 r7369 r7368 r7367 r7366
2008-11-19 06:15:21 +00:00
Sean Dague 5517ea3dfd Fixed MySQL and SQLite so they will save the
variable sun vector, adding 3 new fields on both.

From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-11-18 12:48:36 +00:00
Sean Dague 99fb0d7b33 Extended Agent Tests
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-11-18 12:48:29 +00:00
Justin Clarke Casey c25a0ea792 * Update libOMV to r2359. This is necessary for the progressive texture patch
* Update libopenjpeg as well for this patch.
* Appears to be okay on a very short sniff test
* Source code will be placed in opensim-libs shortly
2008-11-17 21:00:34 +00:00
Dr Scofield 68019e8d98 cleaning up warnings in MSSQL code. 2008-11-17 11:07:18 +00:00
Melanie Thielker 8e119130c5 Make a quick stab at the "Open data reader" issue.
MySqlDataReader needs to be Close()d explicitly. Disposing it or letting
it fall out of scope will not free it's hold on the connection.
2008-11-16 04:39:41 +00:00
Homer Horwitz 9a6cdf662b Mantis#2626: Thank you Ruud Lathrop, for a patch that cleans up MSSQL code. 2008-11-15 21:27:10 +00:00
Homer Horwitz e26169f0b0 Mantis#2552: Thanks idb, for a patch that fixes persistence of physical prims.
(added a fix for the broken build from last commit, too)
2008-11-15 18:00:34 +00:00
Jeff Ames e40fe2db26 Update svn properties, minor formatting cleanup. 2008-11-15 02:21:52 +00:00
Melanie Thielker 5214d39e7c Mantis #2618
Thank you, StrawberryFride, for a patch that adds group permission support
to MSSQL. Contains a migration, back up your database.
2008-11-14 19:36:29 +00:00
Melanie Thielker 1bd0721dbe Add SQLite and the missing migrations files for last commit 2008-11-14 19:00:14 +00:00
Melanie Thielker d66f3993de Add group permissions to agent inventory.
Contains a migration. May contain nuts.
Please back up your inventory data store. This revision changes the interface
version!! No older regions can connect to these new UGAIM, and the new regions
can't connect to the old UGAIM. Fixes a long-standing issue of permissions loss
Currently persisted on MySQL only.
2008-11-14 18:54:38 +00:00
Melanie Thielker 9960637545 Try to make the test pass again 2008-11-14 17:53:58 +00:00
Melanie Thielker edee11ff87 Reapplying a revised version of Christopher Yeoh's (IBM) patch for allow
inventory drop. Also adds a new flags, "propagate_permissions" to
OpenSim.ini to control that feature.
2008-11-14 17:24:56 +00:00
Dr Scofield 5c21ec6d10 reverting #7295, as it still fails a test case (as pointed out very
kindly by sean) --- lesson learned: just running a "make test" is not
sufficient, you need to precede it by a "make clean".
2008-11-14 13:03:18 +00:00
Dr Scofield 5e20e32b69 From: Christopher Yeoh <cyeoh@au1.ibm.com>
This patch makes llAllowInventoryDrop work with the permissions module
enabled. Changes include:

- Enabled PropagatePermissions when permissions module serverside perms
  is on

- change ownership of item when item is dropped into an object.
  Ownership changes to the owner of the object the item is dropped into

- propagation of permissions if the permissions module enabled (eg
  next-owner mask applied)

- CHANGED_ALLOWED_DROP is now passed to the change script event if an
  item was allowed to be dropped into the object only because
  llAllowInventoryDrop is enabled (instead of CHANGED_INVENTORY being
  passed).

- Sets object flags correctly when llAllowInventoryDrop is called so
  clients are notified immediately of the change in state. Am not
  sure that calling aggregateScriptEvents is the right way to do it,
  but it works and seems to be the only way without making further
  changes to update LocalFlags
2008-11-14 10:55:14 +00:00
Sean Dague cc5ccfb315 make inventory item listing more robust. It turns out that a bad item
(one that won't parse right) will prevent all other items in that folder
to load when inventory is requested.  This is very careful to no longer
add inventory items that return as null to the hash table for
getInventoryInFolder, as well as be more careful parsing UUIDs for
fields that aren't marked not null in MySQL.

The net result, you may see previously missing inventory items return
after this checkin.  Folders probably need to be hardened in the same
way, but I'm out of time for today.
2008-11-13 22:53:49 +00:00
Melanie Thielker c18ce34d06 Update avatar picker search to work with OpenSearch people search 2008-11-13 03:24:23 +00:00
Justin Clarke Casey 0e180b0ad3 * refactor: Expose SOG.SetRootPart for outsiders to use rather than setting RootPart and adding the part separately
* Make RootPart read only
2008-11-10 20:04:55 +00:00
Jeff Ames 8da726c3a8 Update svn properties. Add copyright headers. Minor formatting cleanup. 2008-11-09 01:31:38 +00:00
Charles Krinke 62bc9c2e8e Mantis#2591. Thank you kindly, Ruud Lathrop for a patch that:
This patch is two script that fixes a issue when adding more 
then 1 avatar to estateban/estatemanager list. It removes a 
key and adds a index to the tables.
2008-11-09 00:53:54 +00:00
Homer Horwitz 344b725d3b Mantis#2598: Thanks Fly-Man- for a patch that fixes a client-thread crash by
allowing landFlags bit 31 to be used (Int32 -> UInt32).
2008-11-08 20:04:28 +00:00
Tedd Hansen 9511a8c763 Work in progress on SECS stuff. Have been holding it off until after 0.6 release. Still messy as hell and doesn't really work yet. Will undergo dramatic changes. AND MOST IMPORTANTLY: Will be conformed to work in coop with todays DNE and XEngine, hopefully one day providing a common interface for all components. 2008-11-08 17:35:48 +00:00
Jeff Ames bbb8d6fc51 Remove empty OSUUID.cs file. Add copyright headers. Minor formatting cleanup. 2008-11-08 14:28:43 +00:00
Sean Dague 629b0d9f28 add create_time and access_time to asset db for mysql, as well
as the code to update these at the appropriate time.  This isn't
surfaced in AssetBase yet.

Change the replace into to an insert into for asset create.  Assets
are not supposed to be updatable, and the replace into is more
expensive.

From: Sean Dague <sdague@gmail.com>
2008-11-06 21:21:46 +00:00
Sean Dague 46492f3c11 From: arthursv@linux.vnet.ibm.com
Add more unit tests for user cases
Persist more user fields into mysql that already had columns
defined but weren't getting passed to the mysql manager.
2008-11-06 17:07:08 +00:00
Jeff Ames 638fe7a7b5 Update svn properties, minor formatting cleanup. 2008-11-05 15:15:41 +00:00
Sean Dague 8bacdbd49c add a test that ensures that databases work if email is null.
From: Sean Dague <sdague@gmail.com>
2008-11-05 13:23:25 +00:00
Dahlia Trimble 6d195ce3ce added missing file from mantis #2555 2008-11-05 10:38:37 +00:00
Justin Clarke Casey 349f6ec3e5 * Apply http://opensimulator.org/mantis/view.php?id=2555
* Add new e-mail field to users table for MSSQL
* Thanks StrawberryFride
2008-11-04 21:44:57 +00:00
Sean Dague 7d6dc3b099 add some null protection on email
From: Sean Dague <sdague@gmail.com>
2008-11-04 19:26:17 +00:00
Sean Dague 972143b592 - Added stronger persistence tests for BasicUserTests
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-11-04 18:53:13 +00:00
Sean Dague 45dd97a262 - Stronger inventory tests
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-11-04 18:53:06 +00:00
Sean Dague 702249358b implement email field for MySQL and SQLite
From: Sean Dague <sdague@gmail.com>
2008-11-04 14:54:42 +00:00
Adam Frisby 84136c70d8 * Minor cleanup
* Added additional error message when a Object/SOG DB save fails so we can trace why.
2008-11-01 22:20:54 +00:00
Homer Horwitz 38e8853e57 Megapatch that fixes/adds: friend offer/deny/accept, friendship termination,
on-/offline updates, calling cards for friends.
This adds methods in the DB layer and changes the MessagingServer, so a full
update (incl. UGAIM) is necessary to get it working. Older regions shouldn't
break, nor should older UGAIM break newer regions, but friends/presence will
only work with all concerned parts (UGAIM, source region and destination
region) at this revision (or later).
I added the DB code for MSSQL, too, but couldn't test that.
BEWARE: May contain bugs.
2008-11-01 22:09:48 +00:00
Homer Horwitz 44e377d1fb Fix a compile warning about unreachable code 2008-11-01 21:55:48 +00:00
Melanie Thielker 4fb2d70373 A stab a getting the user server to act right. Move acquisition of the
locks to just before the try/catch/finally block, so that an exception
thrown between taking the lock and entering the try doesn't leave a mutex
locked
2008-11-01 15:10:45 +00:00
Adam Frisby 129610e797 * Added some debug information to MySQL UserDataManager to help diagnose a potential issue when in high load. Related to mantis #2508. 2008-10-31 04:58:14 +00:00
Justin Clarke Casey 9f9d97c57b * minor: remove mono warning 2008-10-30 19:32:36 +00:00
Sean Dague 9e353d5713 - Includes consistency test for new and updated objects, as
some fixes in MySQL and SQLite

From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-10-30 12:56:10 +00:00
Sean Dague 409e7262df Mid-work, trying to fix region part insertion and retrieval
SQLite reports System NUll Reference, but works, inside
LoadItems, on SQLiteRegionData.cs

From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2008-10-30 12:56:04 +00:00
Jeff Ames b2d6b0a3d4 Update svn properties, minor formatting cleanup. 2008-10-27 01:43:59 +00:00
Charles Krinke 8cb889cb0e Thank you kindly, Ruud Lathrop for a patch that solves:
Primary Key violation when just linked a lot of prims using MSSQL.
2008-10-27 00:46:17 +00:00
Melanie Thielker af7fcb540c Add a resource file on Strawberry's patch I missed 2008-10-18 16:31:05 +00:00
Melanie Thielker c3ba97c80a Thank you, Strawberry Fride, for a patch that brings MSSQL even with MySQL 2008-10-18 13:04:35 +00:00
Melanie Thielker efe3f3eb2a Megapatch. :) Fix skull attachment editing. Streamline Object terse updates.
Add rezzing time to objects. Add Object return and traffic fields to land
database. Add plumbing for auto return. Implement auto return.
Contains a migration. May contain nuts.
2008-10-18 05:51:36 +00:00
Jeff Ames f5c9600eb7 Update svn properties, minor formatting cleanup. 2008-10-17 02:50:39 +00:00
Sean Dague a29d8b9abb - Removed debug print method 2008-10-16 19:05:32 +00:00
Sean Dague b61f124cc3 more fun with rebasing 2008-10-16 18:41:24 +00:00
Sean Dague 43928d5253 resorting out this merge from arthur, sorry for so many commits here. 2008-10-16 17:46:46 +00:00
Sean Dague 8795bb623d - Enforced no user or agent with UUID 0 on agent DB insertion 2008-10-16 17:46:43 +00:00
Sean Dague 24822ab890 - New attempt after merging problem 2008-10-16 15:58:06 +00:00
Sean Dague fa3d8220f2 - Enforced no user or agent with UUID 0 on agent DB insertion 2008-10-16 15:58:05 +00:00
Sean Dague b9a736f0b8 - Removed a Console.Writeline and added a Test that will be changed
if the last commit is accepted
2008-10-16 15:58:03 +00:00
Sean Dague 8621303ea9 - Removed debug print method 2008-10-16 15:58:01 +00:00
Sean Dague 72725a0894 - Enforced no user or agent with UUID 0 on agent DB insertion 2008-10-16 15:57:59 +00:00
Sean Dague ceb5830142 clean up a merge conflict and remove a console message 2008-10-15 21:00:08 +00:00
Justin Clarke Casey fac4d02d7e * minor: comment out persisting prim inventory log messages 2008-10-15 19:54:07 +00:00
Sean Dague 63ef14bd8c - Added User Appearance Set and Get tests 2008-10-15 18:15:46 +00:00
Sean Dague f2eca571b8 - Removed a Console.Writeline and added a Test that will be changed
if the last commit is accepted
2008-10-15 18:15:45 +00:00
Sean Dague fa8c0d7683 - Makes MySQL reject inserting UUID 0
- Makes SQLite mimick MySQL default behavior on first
  and last name already on db: it does not insert the
  new record.
- Added tests for UUID 0 and for new UUID with existing
  first and last name.
2008-10-15 18:15:43 +00:00
Sean Dague 8e3c10234a Removed some comments 2008-10-15 18:15:40 +00:00
Sean Dague 7d6426f156 move from index based to exists strategy here 2008-10-14 20:07:11 +00:00
Sean Dague a27352010a Merge commit 'arthur/master' 2008-10-14 19:00:43 +00:00
Homer Horwitz 16d68749a4 Add the missing bits for the new region-search:
- Added lookup in the data-layer
  - MySQL works
  - SQLite doesn't have a grid-db, so it won't work there
  - I added MSSQL-code to the best of my knowledge; but I don't know MSSQL :-)
- Added the plumbing up to OGS1GridServices. This speaks with the grid-server
  via XMLRPC.
- Modified MapSearchModule to use the new data. It's backward compatible; if
  used with an old grid-server, it just returns one found region instead of a
  list.
- Refactored a bit.
Note: This updates data, grid-server and region code. No new files.
2008-10-03 23:00:42 +00:00
Justin Clarke Casey 8c55f3eaa6 * minor: remove warnings (the code cleaners strike again) 2008-10-03 14:18:17 +00:00
Sean Dague 5f8e241e81 fix the sqlite break. There were two issue here:
1. type issues on column create in ado.net
 2. not setting a field in the ado.net row translates into explicitely
    setting it to null in sqlite land (because it can't read the defaults
    stanzas out of the database)

Things should work again after this.
2008-10-03 12:36:54 +00:00
Melanie Thielker ec47a1bff2 Add database persistence for material setting 2008-10-03 12:11:38 +00:00
Sean Dague 9d7a9d3461 stick a TODO in here about land tests, which really can't be done in
the current state as the Land Object has all these live references back
to Scene.
2008-10-01 21:10:08 +00:00
Sean Dague b7454b1a2b enhance boundary tests for no terrain. Put in a null load
test for land.
2008-10-01 21:10:02 +00:00
Sean Dague 7b1e82a8aa remove tests for inventory 2008-10-01 19:29:06 +00:00
Sean Dague 0f7f3b45cc add basic store retrieve prim inventory test. the prim
inventory interfaces definitely need some rethinking.
2008-10-01 18:51:12 +00:00
Sean Dague d009927194 add delete prim tests. Found and fixed bugs where region
is not respected by sqlite or mysql drivers so that deleting
and object in a region actually deletes that object from any
region.
2008-10-01 15:41:36 +00:00
Sean Dague 97107961e0 add a test for updating region settings and fix a bug in uuid
translation in sqlite uncovered by this test.
2008-09-29 21:55:59 +00:00
Justin Clarke Casey 464c3c7091 * Add missing mssql migration files from http://opensimulator.org/mantis/view.php?id=2295
* Sorry about that
2008-09-29 20:26:34 +00:00
Justin Clarke Casey 4daaac662f * Apply http://opensimulator.org/mantis/view.php?id=2295
* Updated MSSQL to reflect resend changes 
* Added the new columns in prims table.
* Created a implementation for getting gestures.
* Remove configurable table names for user. 
* Thanks Ruud Lathorp
2008-09-29 15:22:48 +00:00
Charles Krinke 5ddba2a3a7 Mantis#2291. Thank you kindly, StrawberryFride for a patch that solves:
User server won't start up for a MSSQL grid migrating from a significantly 
older version to current version due to duplication in three of the 
migrations code files. Patch included takes out the duplicated code from 
the three files so a smooth update should happen on start up.
2008-09-28 22:07:05 +00:00
Jeff Ames 0b4415849a Update svn properties. Minor formatting cleanup. Fix a compiler warning. Fix a UUID vs null comparison. 2008-09-28 03:21:11 +00:00
Teravus Ovares 16b6738cda * Patch from JHurliman
* Updates to libomv r2243, 
* Remove lots of unnecessary typecasts
* Improves SendWindData()
Thanks jhurliman. 
* Will update OpenSim-libs in 10 minutes..
2008-09-26 17:25:22 +00:00
Justin Clarke Casey 97323345ee * minor: remove warnings 2008-09-26 15:28:14 +00:00
Sean Dague 7117f8b680 removal of more dead alter table code 2008-09-25 00:20:57 +00:00
Sean Dague c3f66be405 light mysql user tests 2008-09-24 21:17:00 +00:00
Sean Dague 2ef1b194fd expose it for real, missed the public keyword 2008-09-24 21:16:58 +00:00
Sean Dague b4f204e526 expose MySQLUserData class so that it can be tested 2008-09-24 21:16:56 +00:00
Sean Dague dabb311711 remove configurable table names from the mysql user driver. That
doesn't work in a world of migrations anyway, and is only cruft that
will confuse people.
2008-09-24 21:16:47 +00:00
Homer Horwitz fe9aea258f Add persistence of active gestures. This needs an UGAIM update to work.
Active gestures are sent as part of the login-response. Added
fetchActiveGestures to SQLite and MySQL; added an empty one for MSSQL and
NHibernate. Using the empty ones won't cause errors, but doesn't provide
persistence either, of course.
2008-09-24 21:12:21 +00:00
Sean Dague cffb975dd9 light the mysql region tests 2008-09-24 21:03:11 +00:00
Sean Dague 6392671335 let the asset tests run on MySQL. Interesting difference here, the
sqlite driver can handle .Data = Null, the mysql driver can not.  We
should decide which is the right behavior and adjust code for it.
2008-09-24 20:43:32 +00:00
Sean Dague 70d6cb8570 remove a bunch of out of date inline ALTER table commands that would only
confuse people.
2008-09-24 20:43:27 +00:00
Sean Dague 1aab81e235 couple of minor test cleanups to see if this gets us past the bamboo hump 2008-09-23 21:56:38 +00:00
Sean Dague a70efd1fdf create the first attempted mysql test. This only runs locally if you
have a database configured as opensim-nunit with user opensim-nunit /
password opensim-nunit that has full perms on the database.
2008-09-23 21:03:03 +00:00
Sean Dague 9a17d2b1fd remove log4net references, see if that helps fix bamboo 2008-09-23 19:11:06 +00:00
Sean Dague 908f1bcbe2 check in stubbing for mysql tests. This is ignored with
Assert.Ignore() for now, so it won't change anything, but
I want to make sure it doesn't break the bamboo infrastructure
in it's current state.
2008-09-23 18:38:25 +00:00
Justin Clarke Casey 451bd5a0ca * minor: warnings removal 2008-09-21 20:56:39 +00:00
Sean Dague 6a691df1a6 remove some extraneous debug messages from migrations 2008-09-20 12:44:39 +00:00
Homer Horwitz 025441d722 Small formatting cleanup, before chi11ken notices. Me bad. 2008-09-19 21:32:41 +00:00
Sean Dague 6dd2841ed8 add in bits to attempt to enable log4net on these tests to help when debugging 2008-09-19 20:53:42 +00:00
Sean Dague 858d8416b4 add a region settings test 2008-09-19 20:00:09 +00:00
Sean Dague 7ac264c2f0 convert to using proper .net tempfiles, should have done this
initially.
2008-09-19 17:47:37 +00:00
Homer Horwitz e2564f2563 Add a db.Dispose before calling Delete on the SQLite database.
On Windows, you are not able to delete a file while there is
still a handle to it open.
2008-09-18 20:15:04 +00:00
Homer Horwitz 1c08f46ec3 - Add Dispose method to IRegionDataStore
- Add necessary dummy Dispose-methods where they are missing
- Implement the SQLite Dispose-methods
(currently only used for unit tests, in the next commit)
2008-09-18 20:10:09 +00:00
Teravus Ovares e6f3181d3a * Updates the SQLite region database to support the same properties that the MySQL version does for the table, prims.
* If this causes any unit tests to fail, the tests need to be updated.
2008-09-18 17:47:29 +00:00
Dr Scofield 03f246d6fe adds support to delete a region completely and offers that
functionality via the console command "delete-region" and also via
RemoteAdminPlugin.

minor typo fix.
2008-09-18 15:44:05 +00:00
Sean Dague 232d1af663 add some comments and some try blocks around object storage
in the hopes this will help debug why this is failing for some people.
2008-09-18 15:39:22 +00:00
Homer Horwitz 0ad5d8c0e7 Adding currentLookAt to useragents table in SQLite. This complements the
MySQL change from http://opensimulator.org/mantis/view.php?id=2073
2008-09-17 19:21:28 +00:00
Sean Dague ad379ed136 Added some terrain tests, and found a fun race condition in the sqlite
terrain driver in the process, which is now fixed.  yay for unit tests!
2008-09-16 19:51:14 +00:00
Sean Dague fe7a1af2bd we can use equals on strings because they are comparible, and
this is the prefered way of doing these tests.
2008-09-16 19:48:21 +00:00
Homer Horwitz e3cbde0f39 Mantis #904: Thanks jonc, for a patch that adds "useragents" table to
SQLite and stores the logout position in standalone mode.
Note: This adds a migration for SQLite, so do your runprebuild
2008-09-16 18:59:13 +00:00
Sean Dague 2ff91dac41 add an inventory change test. 2008-09-16 18:33:49 +00:00
Jeff Ames ab30c6dc62 Update svn properties, minor formatting cleanup, fix a compiler warning. 2008-09-15 14:21:57 +00:00
Melanie Thielker 2819559499 Mantis #2124
Thank you, RuudL, for a patch that brings MSSQL up to the same
implementation level as MySQL.
2008-09-14 13:23:02 +00:00
Charles Krinke 1d5e870ee2 Thank you kindly, CMickeyb for a patch that:
Moved intialization of appearance from the SendInitialData 
event handler into CompleteMovement handler. That ensures 
that m_appearance is initialized before the inventory is 
retrieved (so there is a place to check on attachments).
2008-09-14 02:56:51 +00:00
Teravus Ovares af899e50c2 * Adds regiondata and estatedata persistence in Sqlite. This commit is actually an assist. 99% of the work was already done by Melanie. 2008-09-13 22:29:36 +00:00
Jeff Ames b4141f9e56 Formatting cleanup. 2008-09-13 22:07:07 +00:00
Teravus Ovares e8d51b76fe * Fixes SQLite load crash.
* added primary key to regionsettings table in the cached table
* initialized the data adapter.
* Still untested fully, so watch out!
2008-09-13 21:01:21 +00:00
Melanie Thielker 9b9f1bc191 Add region settings support to SQLite (untested!) 2008-09-13 20:37:36 +00:00
Sean Dague 39902fef77 wrap log4net configure in try block so that it will run if you don't have a
.config (which no one does).  Dropping in the .config lets you see that debug
messages, which is handy while writing tests and figuring out why things don't
behave like you would guess.
2008-09-13 02:29:04 +00:00
Sean Dague fcc716104b 2 more InventoryItem tests, plus see if I can leave the log4net
configure in there to help me get debug messages while developing.
2008-09-13 02:06:23 +00:00
Justin Clarke Casey 1edee634ca * minor: spelling mistake and message tidying on Migration messages 2008-09-12 21:24:11 +00:00
Sean Dague ecc2a0f866 add first round of folder tests 2008-09-12 21:00:40 +00:00
Justin Clarke Casey f1e4001c90 * Make fix to MSSQLRegionData.cs in LoadLandObjects as recommended by Garrett Hussey in Re: [Opensim-dev] MSSQL runtime error in latest build..
* Thanks!
2008-09-12 20:53:21 +00:00
Justin Clarke Casey 2d7aca6d9d * Add userstore sql upgrade I carelessly forgot to check in a couple of revisions ago
* Hopefully there wasn't a problem anyway, since the look at stuff isn't enabled yet
2008-09-12 20:38:20 +00:00
Justin Clarke Casey 2fcc131ef3 * Patch http://opensimulator.org/mantis/view.php?id=2163
* Add prim ClickAction persistence to SQLite 
* This will require a prebuild
* Thanks nlin!
2008-09-12 20:37:07 +00:00
Justin Clarke Casey 52a4c4d82f * Check in first part of http://opensimulator.org/mantis/view.php?id=2073
* This patch aims to introduce look at direction persistence between logins.  It won't be active until the second part of the patch is committed in about two weeks time.  At 
this point, region servers that haven't upgraded past this revision may run into problems
* This checkin upgrades the user database.  As always, we recommend you have backups in case something goes wrong.
* Many thanks to tyre for this patch.
2008-09-12 20:12:03 +00:00
Sean Dague 4b7e287ab2 because UUID supports equality, we can do a straight equals instead of
convert to string and match.
2008-09-12 18:46:55 +00:00
Sean Dague d312f10420 use new style asserts. They are much easier to read. 2008-09-12 18:46:44 +00:00
Sean Dague 9349cf3149 move the actual [Test] methods for databases to OpenSim.Data.Tests
classes.  This did mean loosing 1 unit test that was actually testing
an sqlite function directly instead of the interface.
2008-09-12 18:13:43 +00:00
Sean Dague 1f42c89480 change order in prebuild.xml so this works in nant on a clean
checkout.
2008-09-12 17:45:02 +00:00
Sean Dague 96c720b04a be more clever and move the bulk of the db tests for inventory into
OpenSim.Data.Tests, then subclass with custom init bits for sqlite.
As I've only been testing the plugin interfaces anyway, this should
make it very easy to write only a little bit of code to use these
tests for other databases.  It will also give us the framework for
definining the datastore behavior and making sure that all the databases
do the same thing.
2008-09-12 16:05:06 +00:00
Sean Dague 7d61559058 more inventory folder tests 2008-09-11 20:52:35 +00:00
Sean Dague 45df1aaa64 add some folder create and list tests 2008-09-11 18:49:37 +00:00
Sean Dague 380af0b939 added simple add / exists folder check 2008-09-11 18:49:10 +00:00
Sean Dague 7ba9bfc8ad add a few more SQLite Asset tests. 2008-09-11 17:52:11 +00:00
Sean Dague 0a9c6aecb5 added very basic stubs for User and Inventory db creates and empty
calls to make sure they worked
2008-09-10 21:36:20 +00:00
Sean Dague a90d2b491f fix typo in name of test db 2008-09-10 21:36:12 +00:00
Sean Dague 121398732a add basic sniff tests for SQLite Asset store. Initializes a db,
stores an asset, fetches that asset, make sure it has the name
we gave it.  All simple stuff, but should catch the more egregious
breaks.
2008-09-10 20:33:13 +00:00
Sean Dague 71f2176c4b add a simple update attribute test for SOG & SQLite 2008-09-10 20:33:02 +00:00
Sean Dague cc7ff3ac2e added in a few more tests 2008-09-10 19:14:12 +00:00
Sean Dague 3f73884674 the explicit log4net configure attempt was maybe breaking bamboo, get
rid of that.
2008-09-10 18:17:10 +00:00
Sean Dague f970597194 added the first couple of sqlite tests. we'll see how bamboo
handles them.
2008-09-10 17:49:41 +00:00
Sean Dague 1799913593 add shell for SQLite testing. No tests yet.
add another nant target for test-xml to get the verbose
version
2008-09-10 17:49:37 +00:00
Melanie Thielker a68e34b558 Mantis #511
Allow parsing of hexadecimal int constants from strings.
Also fixes a DBNull value in the touch type field crashing the sim
2008-09-10 06:14:38 +00:00
Jeff Ames b9b996be38 Update svn properties, minor formatting cleanup.
Fix unreachable code due to typo in llDetectedGroup.
2008-09-10 05:17:28 +00:00
Mike Mazur e0d092ec53 Thanks, nlin, for a patch implementing persistence for "When Left Clicked"
object property. Fix issue 2149.
2008-09-10 00:19:36 +00:00
Teravus Ovares fac18f608d * Fixes Sqlite crash bug when saving a prim. 2008-09-09 23:42:44 +00:00
Sean Dague 6f15ec2d46 possible fix for EARTH SHATTERING KABOOM! when trying to save a prim 2008-09-09 20:45:21 +00:00
Sean Dague 017a6f5511 fix an automatically stripped out UUID from SQLiteManager
fix some spacing in SQLiteRegionData
2008-09-09 20:23:10 +00:00
Sean Dague 66dad4ab03 hopefully fix embedded inventory for sqlite 2008-09-09 18:44:54 +00:00
Jeff Ames fae34bb10c Update svn properties, formatting cleanup. 2008-09-09 01:26:48 +00:00
Melanie Thielker 490ac0be00 Implement proper persistence of the following prim properties:
Floating text, Rotation, Texture animation, Particle System
This will make "Eye Candy" scripts work without modification in
XEngine. The use of the CHANGED_REGION_RESTART hack is no longer
needed. Implemented in MySQL only, hovertext also in SQLite.
2008-09-08 02:40:20 +00:00
Melanie Thielker 9e545c9984 Mantis #2133
Thank you, Xugu Madison and ChrisDown, for a patch that
fixes linux filename extensions from .Xml back to .xml
2008-09-06 14:58:23 +00:00
Teravus Ovares 7d89e12293 * This is the fabled LibOMV update with all of the libOMV types from JHurliman
* 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-09-06 07:52:41 +00:00
Justin Clarke Casey a4078c280a * Blind fix what looks like a bug in the new land MSSQL code
* The data returned from the db was never inserted in the list to be processed and return
* This is an example where a warning has revealed a bug
2008-09-06 00:11:50 +00:00
Justin Clarke Casey de467f4903 * Remove lots of warnings from the CMS module
* Remove a few other miscellaneous warnings
2008-09-06 00:09:24 +00:00
Jeff Ames 9053e8510c Update svn properties. 2008-09-03 14:05:49 +00:00
Melanie Thielker e98780fea5 Mantis #2099
Thank you, cmickeyb, for a patch that corrects the database connection
handling in the multithreaded user server.
2008-09-03 02:51:34 +00:00
Sean Dague abb0ad36bd apparently I missed one of the old version routines that could be
removed.  Removing that now.
2008-09-02 20:17:57 +00:00
Melanie Thielker 9806c0b374 Committing the missing resource file for MSSQL. Sorry... 2008-09-02 20:05:20 +00:00
Melanie Thielker 930b2ec602 Mantis #2102
Thank you, RuudL, for a patch that supplements the previous MSSQL
patch.
2008-09-02 13:43:49 +00:00
Melanie Thielker b6bb5f944f Mantis #2095
Thank you, RuudL, for a complete adaptation of migration and estate
data to MSSQL, and the updating of the RegionData handling in MSSQL.
2008-09-01 17:10:01 +00:00
Adam Frisby 2133fa56e7 * Added new MySQLSuperManager support for the grid servers.
* In theory, login and a large number of grid functions should now at least be multithreaded.
2008-08-30 19:35:22 +00:00
Adam Frisby 72b0a53ada * Fixed #2807 Again, Whoops. 2008-08-30 16:46:51 +00:00
Adam Frisby e471a33961 * Fix for Mantis #2087, Standalone MySQL broken with threading improvements. (Didnt realise this code was being shared with the gridservers) 2008-08-30 14:27:28 +00:00
Adam Frisby b63922dcfe * Minor fix to previous threading patch, every nTH request would previously have been delayed for 1000ms. This has been fixed. 2008-08-30 13:46:04 +00:00
Adam Frisby 0a5280edb5 * Added new "SuperManager" class for MySQL connections, for allowing multiple concurrent MySQL threads.
* Implemented SuperManager inside of UserData. This means the userserver when running on MySQL will use 10 connections (+1 system connection) to handle requests, preventing the previous mire of locking resulting in singlethreadedness.
* This requires testing and grids relying on stability should not upgrade to this revision until it's been properly tested.
2008-08-30 13:38:46 +00:00
Sean Dague 605ceb6176 Fix for Bug #2065: New check out crashes on sqlite migration
I apparently missed one drop tables statement that was actually needed
when I did the cleaning to make this work for old sqlite versions.
2008-08-28 12:47:55 +00:00
Sean Dague 3465a5772a cleaning out cruft from pre-Migration days 2008-08-27 19:24:48 +00:00
Sean Dague 066715415a getting rid of pre-Migration cruft 2008-08-27 19:24:46 +00:00
Sean Dague c75f1fcde8 we are now past change 6000, so getting rid of pre-Migration cruft 2008-08-27 19:24:45 +00:00
Sean Dague b625a36ae5 we are now past change 6000, so getting rid of the pre-Migration
upgrade cruft
2008-08-27 19:24:40 +00:00
Sean Dague 5bf5e1c320 remove legacy pre-Migration database upgrade routines 2008-08-27 18:51:43 +00:00
Sean Dague 49df787665 remove the legacy pre-Migration database upgrade paths 2008-08-27 18:51:42 +00:00
Sean Dague ba16a27ab0 remove pre-Migration upgrade paths 2008-08-27 18:51:40 +00:00
Sean Dague 53afa23608 we're past checkin 6000, so now cleaning up all the cruft of the pre
migration database upgrade paths.  This is coming in in stages.
2008-08-27 18:51:36 +00:00
Sean Dague f87f8b3b9f get rid of the "drop if exists" lines in this old migration, as those
tables shouldn't exist yet, and the exists keyword is relatively new in
sqlite.  This has been breaking a lot of people on Suse Enterprise Linux,
for instance.
2008-08-27 17:32:02 +00:00
Charles Krinke e2b0852c93 Mantis#2052. Thank you kindly, Avdleeuw for a patch that:
After having built revision 5992, OpenSim would start while 
issuing some errors regards updates to user profiles (Master 
Avatar, and other manually added avatars). Issue 2027 dealt 
with the MySQL part. This issue deals with the SQLite part.
2008-08-27 02:45:10 +00:00
Charles Krinke d2f2ec12fd Mantis#2027. Thank you kindly, HomerHorwitz for a patch that addresses:
Analysis shows that the XMLRPC-request contains an empty string (<string />) 
for the custom_type parameter, which is deserialized wrongly to a null-value, 
thus leading to the exception above. The attached patch (against r5967) fixes 
the symptom and uses "" for customType in that case.
2008-08-24 18:32:39 +00:00
Melanie Thielker 07cb1d4f0e Selling an object in-place (as original) now works. Builders can
now ply their trade. Is that nuts?
2008-08-24 06:39:54 +00:00
Melanie Thielker c9b5641c49 Plumb the data path for all those eye candy values. Saves texture
animation, target omega, looped sound, script access pin, allowed
drop state and sale data. Loads it, too. Not all tested.
Code: No Nuts. Data: Cannot Guarantee Nut Free.
2008-08-24 05:25:26 +00:00
Melanie Thielker f9ec65bc21 Add the fields for the eye candy and sale featires to the prims table.
No user functionality yet.
Run prebuild. Contains a Migration. May contain nuts.
2008-08-24 03:15:02 +00:00
Jeff Ames 07b04213d7 Update svn properties, minor formatting cleanup. 2008-08-19 22:41:39 +00:00
Melanie Thielker 41440e184b Attachment persistence (Mantis #1711)
Change user server to handle attachment assets record properly. Ensure
that attachments are not re-rezzed on region crossing. Persistence
will NOT WORK with earliser UGAI!!
Change region server to match.
2008-08-19 18:34:46 +00:00
Jeff Ames bea7d4d81a Update svn properties, formatting cleanup. 2008-08-19 02:59:27 +00:00
Melanie Thielker 6d2e1ad6ba Attachment persistence!!! Patch #9169 (Mantis #1171)
Attachments now save to MySQL. No reattach on login yet.
2008-08-19 02:12:40 +00:00
Justin Clarke Casey a179089d1c * If two regions have configuration information that conflicts (save xy location, same uuid or same internal ip port) then complain loudly and don't start up 2008-08-18 21:46:07 +00:00
Justin Clarke Casey 9e6b38078a * Properly dispose of the reader after readAttachments() has finished with it in the Mysql User data manager 2008-08-18 21:18:59 +00:00
Melanie Thielker 05506cff49 Avatar Attachment persistence!! Patch #9168 (Mantis #1171)
Plumbs in attachment persistence and adds the tables. Currently MySQL
only, no user functionality yet.
2008-08-18 17:22:36 +00:00
Jeff Ames 6ef9d4da90 Formatting cleanup. 2008-08-18 00:39:10 +00:00
Justin Clarke Casey d7f2c454f1 * Rename *DataStore classes to *RegionData to align with SQLite 2008-08-16 20:50:43 +00:00
Melanie Thielker 04488d9d38 Plumb in the partner and the account title fields for profile info. 2008-08-15 22:49:26 +00:00
Melanie Thielker 3e7e0c8ced Small fox in the database, god level was being overwritten with the user
flags value
2008-08-15 14:33:43 +00:00
Melanie Thielker 7161689a97 Adds UserFlags and GodLevel to the user data store and plumbs then in.
This will have no effect unless both the UGAI and the region are
this revision or later
2008-08-14 19:59:32 +00:00
Melanie Thielker 35aeb9010a Mantis #1953
Thank you, HomerHorwitz, for a patch that changes login location handling
to use the sim UUID if it has already been stored.
2008-08-14 16:48:51 +00:00
Melanie Thielker 17715da311 Add the UserStore migrations to the TP fixes patch 2008-08-14 11:15:11 +00:00
Melanie Thielker e3157e61aa Mantis #1946
Thank you, HomerHorwitz, for a patch that corrects and improves TP
to landmark and home position handling.
2008-08-14 00:04:37 +00:00
Jeff Ames f894f5d87b Minor formatting cleanup. 2008-08-12 00:08:41 +00:00
Charles Krinke 54af3b4f4d Mantis#1903. Thank you kindly, CMickeyb for a patch that:
patch attached replaces the tree walk algorithm used to build the 
folder hierarchy with a single database query. That is, we replace 
1 database query per folder with 1 query for the root folder's 
properties and 1 query to retrieve the entire collection of folders for a user.
2008-08-10 16:44:25 +00:00
Jeff Ames 0718aa0b7f Minor formatting cleanup. 2008-08-07 12:55:46 +00:00
Mike Mazur d367f0bf0c Thanks, zaki, for a patch that embeds plugin manifest files into plugin dlls. Fix issue 1876. 2008-08-06 01:20:31 +00:00
Melanie Thielker 12c5bfa3e0 Estate series, patch 9 (#9157)
Adds the new access semantics and the new flag (allow only age verified)
Plumbs in the abuse email address from sim to viewer. The other way around,
libomv appears to be lacking support for the data field in the packet.
Includes a migration, run prebuild!
2008-08-01 21:08:00 +00:00
Melanie Thielker c9b39972ca Add the missing migration files :/ 2008-08-01 02:54:28 +00:00
Melanie Thielker 43f3b9ad7b Patch #8 in the estate series. Introduces the concept of an estate
owner (alongside the master avatar) and provides storage fo the
abuse email address. No user functionality yet.
This patch includes a migration.
2008-08-01 02:14:34 +00:00
Mike Mazur 15669281fa Apply updated patch from issue 1871. Thanks sempuki. 2008-07-31 23:53:24 +00:00
Mike Mazur 2270b25265 Thanks, sempuki, for a patch that moves all Grid Server's plugins to
PluginLoader. Fix issue 1871.
2008-07-31 09:24:28 +00:00
lbsa71 8edab95bad * Refactored some heavily duplicated RequestSimProfileData functions
* Changed InventoryUrl and GridServerURL type to Uri instead of string - to address '/' issues.
2008-07-29 19:52:58 +00:00
Melanie Thielker 2a1bc318b0 The hazards if unclean sourc trees. Yours truly got bitten this time.
Re-fix the re-fix from a clean build. This makes the region based
settings work as advertised
2008-07-26 18:54:59 +00:00
Melanie Thielker 3b1efa4348 Re-Fix the fix 2008-07-26 18:46:04 +00:00
Melanie Thielker 1321bd25b8 Fix Mantis #1830
Makes region settings save on second and subsequent sim restarts
after upgrading.
2008-07-26 18:03:50 +00:00
Justin Clarke Casey fd4e703f25 * Remove dumb bug I put in which meant that an archive save would never complete if there were any missing assets 2008-07-25 15:18:24 +00:00
Dr Scofield 81cb72b5ad squashing warning. 2008-07-25 12:59:18 +00:00
Melanie Thielker 5998fb712a Patch #9155 (Mantis #1793)
Fix a regression that caused the region settings not to save.
Still no SQLite support for region settings. MySQL now functional.
2008-07-25 06:17:43 +00:00
Sean Dague 1c9551eaae few additional fixed to get prim inventory up on nhibernate 2008-07-23 22:14:37 +00:00
Sean Dague 30a77b5b9f implemented prim inventories for nhibernate 2008-07-23 22:14:34 +00:00
Sean Dague 47ad705675 fix column mapping 2008-07-23 22:14:32 +00:00
Sean Dague 6720f4c289 complete the prim inventory mapping 2008-07-23 22:14:31 +00:00
Sean Dague cf317f5c33 refactor TaskInventoryItem Mask -> Permissions to be consistant with how things
are stored in the db.
2008-07-23 22:14:29 +00:00
Sean Dague 3c227390c0 add primitems migration for nhibernate 2008-07-23 22:14:23 +00:00
Sean Dague 090159defc refactored LandData to use properties, and cleaned up the naming on
the properties a bit to be more consistant with other objects (having things
like .Name .Description, etc).
2008-07-23 15:50:32 +00:00
Jeff Ames 80d8e2889e Update svn properties. Formatting cleanup. Remove a compiler warning. 2008-07-23 13:24:25 +00:00
Mike Mazur a0930aa80d Thanks, sempuki, for a patch that moves control of Mono.Addins from source attributes to external XML files. Fix issues 1682 and 1786. 2008-07-23 03:08:31 +00:00
Jeff Ames 186f83692c Update svn properties. Squash a couple of warnings. 2008-07-22 15:01:04 +00:00
Charles Krinke 681433c4b7 Mantis#1796. Thank you kindly, StrawberryFride for a patch that:
Agent table code (INSERT / UPDATE, etc) now added to MSSQL provider.
2008-07-20 22:16:50 +00:00
Melanie Thielker 212ab8c6d9 Change SQLite argument marker from the more standard '@' to the ':' supported
but earlier versions of the SQLite dll
2008-07-19 21:01:10 +00:00
Jeff Ames 19fd2230bf Update svn properties. Fix some inconsistent newlines. 2008-07-19 09:35:48 +00:00
Melanie Thielker a73d87ef16 Introduce a separate connection string for estates, which defaults to the one gi
ven for the region datastore. Removes the flag to store prim inventories, which are now always stored.
2008-07-18 20:50:47 +00:00
Melanie Thielker bbd076544d Patch to fix saving of estate managers list loaded during migration.
No longer teleports an agent home unless their root agent is being banned.
Visual blocking is still in effect.
2008-07-18 19:32:05 +00:00
Dr Scofield 449c09234d fixing copy & paste artefact. 2008-07-18 15:36:38 +00:00
Sean Dague 611b56070b add some locks back into the sqlite asset path, as something changed
that is causing a lot of out of order execution on asset fetches on
multi region sims.
2008-07-18 15:34:32 +00:00
Sean Dague df1485fc51 remove all the odd quoting, on the off chance this was causing some
of the issue.
2008-07-18 15:19:52 +00:00
Sean Dague d9ba7c8339 put the entire thing inside a transaction. This probably doesn't
help much, but it might.
2008-07-18 15:13:19 +00:00
Sean Dague e2a3be254f fix typo in create index that caused the entire migration to fail.
put some drop table if exist clauses in here to hopefully let this
migration work for people that are in an intermediary broken state
right now.
2008-07-18 15:10:20 +00:00
Sean Dague aec5f0ceed found a better pattern for SaveOrUpdate with nhibernate
cleaned up the asset path a bit
2008-07-18 15:06:24 +00:00
Sean Dague d44dcdf97b remove NHPrim, this turned out to be a bad idea 2008-07-18 13:44:16 +00:00
Dr Scofield 0171e76246 squashing further warnings. 2008-07-18 10:57:18 +00:00
Mike Mazur e0e0db3660 Thanks, sempuki, for a patch that moves all grid plugins to new PluginLoader (issue 1763). 2008-07-18 04:51:41 +00:00
Dahlia Trimble 230a7ecaec masks MySQL password from console startup messages 2008-07-18 03:23:40 +00:00
Melanie Thielker 263633e274 Patch #9151
Makes the estate dialog fully functional. Implements all client facing functionality. Moves estate data from estate_settings.xml, which is used to provide defaults, to the region data store. Creates one estate for each region, and places the region in it. Converts all region bans to estate bans.
2008-07-18 02:40:47 +00:00
Sean Dague f54828c957 fix build break 2008-07-17 21:07:39 +00:00
Sean Dague 18a5cfd10f terrain is close to working, but I still end up at the bottom of the sea
right now.
2008-07-17 20:58:24 +00:00
Sean Dague 50eab18590 need to synchronize the terrain updates 2008-07-17 20:58:23 +00:00
Sean Dague 4663999c24 first pass at Terrain implementation 2008-07-17 20:58:20 +00:00
Sean Dague 366e09b543 add a Terrain object for the purpose of mapping. This may make sense
to stick up in framework later, but for now we'll just keep it close
to the data.
2008-07-17 19:58:47 +00:00
Sean Dague 8f2154916b if no texture, make it plywood 2008-07-17 19:58:45 +00:00
Sean Dague 6084a7ea3e Revert "git merge"
This reverts commit 80e1c3742a3ba7eb9aa1686a242b36f64331095a.
2008-07-17 18:59:10 +00:00
Sean Dague dd144e12ba git merge 2008-07-17 18:59:06 +00:00