Commit Graph

1080 Commits (0df0e92ff041797f763ecfd8bb5c9c5c4e33a99b)

Author SHA1 Message Date
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
Sean Dague 1c0f27b013 finish NHibernate mapping for prims, and it even seems to work 2008-07-17 18:59:04 +00:00
Sean Dague 43df32c52c fix the null case for deep copy 2008-07-17 18:59:02 +00:00
Sean Dague d5e0a3a184 got basic region object saves working time for lunch 2008-07-17 18:58:47 +00:00
Sean Dague 9aa0302e5b early remove calls 2008-07-17 18:53:38 +00:00
Charles Krinke e8412dcd42 Mantis#1736. Thank you kindly, StrawberryFride for a patch that:
Many issues with handling connections in MSSQL, have rearchitected to 
ensure that connections are always opened and closed in a timely fashion 
& disposed of cleanly, and removed unnecessary lock statements. SQL 
Server performance seems to have improved considerably as a result, 
and various timeout errors seem to have been fixed.
2008-07-17 13:43:31 +00:00
Sean Dague 2a30e85c97 added index to ParentID on prims, as this is sorted on for prim loading.
This should speed up initial load of prims, especially on primy regions.
2008-07-16 22:16:46 +00:00
Sean Dague 40ab5f2085 clean up mappings for parent id 2008-07-16 21:28:01 +00:00
Sean Dague 6adac3bd5a getting close on saving prims via nhibernate 2008-07-16 21:27:59 +00:00
Sean Dague d3190236cc fix RegionStore creation so that the .sql file works 2008-07-16 21:27:55 +00:00
Sean Dague 194ffb4d88 made SOP have a blank setter for 2 convenience properties.
Got RegionStore mapping to the point that nhibernate would start, though
definitely not complete
2008-07-16 21:27:52 +00:00
Sean Dague f3173735fa Revert "refactoring of PrimitiveBaseShape to properties"
This reverts commit 60e13a9997da89d224fbe8a97ab42bfc6114a45f.
2008-07-16 15:10:35 +00:00
Sean Dague 1e447478b8 refactoring of PrimitiveBaseShape to properties 2008-07-16 14:41:57 +00:00
Sean Dague c6b1a190bc refactoring primitive base shape to use properties 2008-07-16 14:41:49 +00:00
Sean Dague 309e479ac4 work in progress on nhibernate 2008-07-16 14:40:19 +00:00
Sean Dague 2f46ab5096 add migration for SceneGroupID to char(36) plus add an index. This
should actually speed up deletes substantially, especially for large
regions, as this was a table scan before.
2008-07-15 20:06:58 +00:00
Sean Dague b5efb49d74 added new ParentUUID property to map out from SOP.
Updated some nhibernate parts, started in on migration.
2008-07-15 18:57:18 +00:00
Dr Scofield 5d0b6343a0 killing a lonesome warning that managed to creep in... 2008-07-15 12:02:49 +00:00
Melanie Thielker 12173034d9 Patch #9148
Patch 5 in the region settings series. Adds a migration to ensure corrupted
data is purged and re-read from defaults. Some changes. Still no full
functionality
2008-07-14 01:29:48 +00:00
Justin Clarke Casey da55f4d2ae * minor: comment out a couple of lines to eliminate nhibernate compile warnings for now 2008-07-12 22:18:54 +00:00
Charles Krinke 932ed5ec54 Mantis#1726. Thank you kindly, StrawberryFride for a patch that:
On an MSSQL-based Grid OpenSim installation, users could log in to the sim once, 
then log off - after a short time before retrying users would be unable to log in, 
and would see an empty alert box on the client with just a "close" button and no text. 
Despite no users being logged into the sim, user server would report a higher number 
of logins than logouts.
2008-07-12 18:05:57 +00:00
Sean Dague 19c4c9798b changes to use NHPrim instead of SOP directly 2008-07-07 21:50:45 +00:00
Sean Dague b2febd03f0 add NHPrim to subclass SOP so we can stick region uuid in there.
I think the only place we need it is in NHibernate so a subclass
is probably appropriate.
2008-07-07 20:52:13 +00:00
Sean Dague 7634c1311e added skeleton (no function) region store component 2008-07-07 20:40:14 +00:00
Sean Dague 867d72c956 change SitTarget calls from functions to properties 2008-07-07 20:12:14 +00:00
Justin Clarke Casey 1813946937 * remove unused CommitAssets() hook for now 2008-07-07 19:18:44 +00:00
Jeff Ames d470d30c09 Copyright notices and formatting cleanup. 2008-07-06 14:02:22 +00:00
Charles Krinke 7fea52be35 Mantis#1661. Thank you kindly, CMickeyb for a patch that:
patch attached to check for timeouts on mysql connections *before* 
operations occur that are likely to timeout. if timeout occurs or 
the connections is down, it is reconnected before the operation fails.
2008-07-03 22:30:16 +00:00
Sean Dague a9b3c2582a add 3 migrations, 1 each for prims, primshapes, and primitems
to move all their UUID stores from varchar(255) -> char(36).  Based
on past evidence, this should help with performance.
2008-07-03 19:41:01 +00:00
Sean Dague 8eb57b68f3 migrate the myisam mysql regions to innodb 2008-07-03 18:45:32 +00:00
Sean Dague f0f1e00ec3 add a couple of LL conversion properties to SOP. I'll wait to clean
up the sit target usage until the sit target fix patch goes in, but it should
be cleaned.
Get prims table mappings to the point where nhibernate likes them enough
to start.
Remove field from asset mapping so it will start
2008-07-03 18:25:18 +00:00
Sean Dague b9bba13c39 playing with multicolumn mapping of vectors using a custom type 2008-07-03 16:37:44 +00:00
Jeff Ames fde6983cce Update svn properties. 2008-07-03 03:01:02 +00:00
Justin Clarke Casey 9052c43319 * Drop InvType from the assets table since it is no longer used
* Migration should be automatic on sqlite and mysql
* Migration is not automatic on mssql, you will need to drop the invType column manually
* Migration should be fine, but as for any db change, I would recommend making sure you have backups before moving past this revision
2008-07-02 16:20:54 +00:00
Charles Krinke bf34f65125 Mantis#1639. Thank you, Melanie for a patch that:
Reads estate_settings.xml and populates the database from it. 
If there is no record, just passes the defaults to the application.
2008-07-01 02:16:58 +00:00
Charles Krinke 4cb42d4c35 Mantis#1637. Thank you kindly, Melanie for a patch that:
Make each region load it's settings from the database on startup. 
No user functionality yet.
2008-06-30 14:09:19 +00:00
Justin Clarke Casey 31c63558c8 * Fix for http://opensimulator.org/mantis/view.php?id=1512
* Introduce experimental wait timeout checking to mysql region datastore code 
* This should mean that if the mysql connection has timed out, we should automatically reconnect and not fail or drop queries on region database manipulations
2008-06-29 18:10:38 +00:00
MW f3f31744ab patch and files from mantis #1630, Thanks Melanie 2008-06-29 11:48:58 +00:00
Dr Scofield 748f72326d last round of warning squashing. calling it a day now. 2008-06-27 23:03:39 +00:00
Dr Scofield feb30217de dr scofield's warning safari:
* commented out [Obsolete(....)] attributes where no replacement feature
  was available: if we want to attribute code that we think needs to be 
  reworked, we should define a new attribute and use that instead 
  (together with a little tool to retrieve all the attributed code then)
* commenting out unused variables
2008-06-27 16:58:21 +00:00
Sean Dague afd2a4b206 somehow, I seem to have actually made appearance persistant
correctly with nhibernate.  Go figure. :)
User services still remain partial, but I'm going to move
on to Region Store to get that chunk out of the way.
2008-06-27 14:53:56 +00:00
Sean Dague c8cd381c56 added in new type for mapping texture objects to the db 2008-06-27 14:22:18 +00:00
Charles Krinke ca8d1d57e1 Mantis#1591. Thank you graciously, Sempuki for a patch that:
Currently module loading is done ad-hoc. I propose creating a simple 
loader class that leverages Mono.Addins (and perhaps the new .NET 
addins when they become available in mono). Attached is a basic 
patch for review that compiles into HEAD, but doesn't yet replace 
any existing ad-hoc loaders.
2008-06-27 02:15:57 +00:00
Jeff Ames f8ccf00f1c Apply patch from bug #1609 -- Documentation for Data/MSSQL. Thanks kerunix_Flan! 2008-06-26 20:25:57 +00:00
Jeff Ames d96caaa14e Apply patch from bug #1606 -- Documentation for Data/Null, Data/Base. Thanks kerunix_Flan! 2008-06-26 20:20:30 +00:00
Jeff Ames 9fae975a53 Apply patch from bug #1605 -- Documentation for Data/SQLite. Thanks kerunix_Flan! 2008-06-26 20:14:33 +00:00
Jeff Ames ca724636d4 Apply patch from bug #1601 -- more documentation for Data/MySQL. Thanks kerunix_Flan! 2008-06-26 12:38:03 +00:00
Charles Krinke 1c6bf4fe77 Mantis#1595. Thank you, Melanie for a patch that:
Adds pipes for the prim item flags field
2008-06-26 02:51:59 +00:00
Jeff Ames 8a0a0f9bb5 Add patch from bug #1596 - adds Doxygen documentation in OpenSim.Data.MySQL files. Thanks kerunix_Flan! 2008-06-26 01:12:28 +00:00
Sean Dague d1d846f23f chugging away on nhibernate, more incremental process 2008-06-25 19:45:56 +00:00
Sean Dague ce9c584341 add migrations to mysql and sqlite for flags on embedded inventory 2008-06-25 18:57:21 +00:00
Sean Dague ee4d7703a2 lazy=true for these mappings, as we don't do full lists very often 2008-06-25 18:51:48 +00:00
Jeff Ames a2b1a1787d Minor formatting cleanup. 2008-06-25 14:30:28 +00:00
Sean Dague c0a083ad38 based on positive feedback on performance of making keys fixed length
for assets, make all the indexed columns in the inventory fixed length
via migration.
2008-06-24 18:01:28 +00:00
Sean Dague ca7aac1c27 fix typo in Inventory nhibernate mappings. nhibernate should
load now.
2008-06-23 20:02:15 +00:00
Sean Dague 8b6bd93d68 add migration to go from varchar -> char for uuid. Tested
on my machine, and works, but backing up before migrations
is always a good idea.
2008-06-23 16:00:18 +00:00
Teravus Ovares 2758bc81ad * Persists region banlists across reboots for the sqlite datastore also now. 2008-06-21 06:50:38 +00:00
Teravus Ovares a5860ad438 * Adds Region ban capability to Regions. You access this by going to World->Region/Estate. Then on the Estate tab, at the lower right hand corner, clicking the 'Add' button and picking an avatar.
* It only persists across reboots for the mySQL datastore currently.
* Currently have stubs in the other datastores.
2008-06-21 03:29:08 +00:00
Sean Dague 17fd6cf661 lots of futzing with nhibernate to make it more efficient. I
don't think this works, but I don't want to loose the work before
the weekend, and it doesn't break the build.
2008-06-20 20:23:55 +00:00
Teravus Ovares 4448fd4b2f * Handle parcel telehub location corruption gracefully. DBNull
* mySQL this time.
2008-06-20 18:46:43 +00:00
Teravus Ovares f8b1785467 * Handle parcel telehub location corruption gracefully. DBNull 2008-06-20 17:07:01 +00:00
Sean Dague ccc2adb331 fixed to inventory for nhibernate that actually make it so I can
log in using it as the driver for users, assets, inventory.  User
driver is still missing a lot of function.
2008-06-19 22:11:04 +00:00
Sean Dague c2e2997a99 more work towards nhibernate working with mysql, not there yet,
but moving in the right direction.
2008-06-19 21:20:23 +00:00
Sean Dague 40f32a9271 oops, build break. needed to include another reference. 2008-06-19 15:44:33 +00:00
Sean Dague d28a5a4de7 add migrations support for mysql log store. This should complete
all the mysql bits for migration.
2008-06-19 15:42:57 +00:00
Sean Dague fcd7cf5e4a fix an edge case with migrations in the region store.
Add migration support to gridstore.
2008-06-19 15:03:00 +00:00
Sean Dague c2dc1636a6 oops, it helps to reference the *right* migration 2008-06-19 14:46:54 +00:00
Sean Dague 6dea8f3435 clean up the nhibernate definitions to work with mysql
integrate migration support into nhibernate
2008-06-18 21:14:19 +00:00
Sean Dague b58dc7fb33 add mysql migrations for nhibernate driver 2008-06-18 21:08:16 +00:00
Sean Dague 6711adb8b1 add inventory store migration 2008-06-18 20:51:42 +00:00
Sean Dague be79b56cc3 I really didn't expect that one to work out of the box, but just managed
to get NHibernate + MySQL + Assets working.
2008-06-16 19:58:48 +00:00
Sean Dague bdb0dddfcf set CommandTimeout = 0 in the migration commands so that long
migrations (like converting asset ids) don't run into the 
normal 30 second kill switch.
2008-06-16 19:39:08 +00:00
Sean Dague e1409e0c04 be a bit more verbose about what we are doing on the migration
side so that people don't think we're hung.
2008-06-16 19:33:08 +00:00
Sean Dague 340ef33e2e fix nhibernate driver so that it starts (based on the appearance
changes it wouldn't come up).
include embedded dialect specific sql files for nhibernate migrations
figure out how to get the raw db connection so that migrations can
work with nhibernate.
create initial migration for NHibernate + SQLite + Assets.
2008-06-16 19:22:00 +00:00
Sean Dague caa6b8467d futzing around on the NHibernate side again trying to connect
migrations into it.
2008-06-16 18:53:55 +00:00
Sean Dague 94034d665d change some messages on the migrations front to be
more clear
2008-06-16 16:03:37 +00:00
Sean Dague ec78a2871b the beginning of the great id format migration. This makes
asset uuids no longer binary.  I've tested this migration a
few times, and it seems working in all the scenarios I've found
but it wouldn't hurt to backup your asset db before running this
as it does touch a very sensitive part of our content system.
2008-06-16 14:10:51 +00:00
Sean Dague 6c23acf41b add indexes for sqlite inventory 2008-06-13 14:27:46 +00:00
Jeff Ames 64f01ade04 Update svn properties, clean up formatting, refactor out duplicate hard-coded port numbers. 2008-06-13 00:21:53 +00:00
Sean Dague 1451d6fb9a look mom, migrations in action. This adds a couple of indexes
to mysql regions that should help on performance of some of the
selects.  We should start capturing more data on performance bits
to figure out where else we are missing indexes and add them via
migrations as well.
2008-06-12 20:48:06 +00:00
Sean Dague 202a4bec13 Fix mysql migrations. This is tested with an existing up to date schema,
and no schema.  It should also work with a non up to date schema as well.

Btw, meetings in which I can get code done are the right kind of meetings.
2008-06-12 18:44:58 +00:00
Justin Clarke Casey 7cdedcaf0e * minor: Remove and tidy duplicate 'storing object to scene' messages in log 2008-06-12 18:18:59 +00:00
Sean Dague e1140a4f9b this, in theory, adds migration support to mysql for all
data sources besides the grid store.  It is only lightly tested
so the less adventurous should wait a couple of checkins before
upgrading.
2008-06-12 15:47:33 +00:00
Sean Dague cee071ea60 check in region store initial migration definition,
now on to integrating this approach into the mysql
driver.  Beware the next couple of checkins.
2008-06-12 15:21:34 +00:00
Sean Dague 4387744a78 check in migration files for mysql 2008-06-12 14:44:52 +00:00
Sean Dague 6c1fce6147 check in working migration code fore SQLite. This
is now using migrations instead of the old model to
create tables.  Tested for existing old tables, 
and for creating new ones.
2008-06-11 21:01:33 +00:00
Sean Dague 68b98aecab updated resources for current sqlite schema for migrations 2008-06-11 20:04:01 +00:00
Charles Krinke aba396cb32 Mantis#1528. Thank you kindly, Boscata for:
MSSQL Avatar appearance solved.
Appearance functions and modified table.
2008-06-11 13:57:32 +00:00
Sean Dague be400d1bd0 I'm going to need the Version property to manage
migrating from the old to the new system.  Silly legacy
code.
2008-06-10 23:17:18 +00:00
Sean Dague 68cda63761 update of migration code to be more sane on version
tracking, and support sub types that we'll need for
nhibernate.
2008-06-10 22:57:20 +00:00
Charles Krinke 53cc63e243 Mantis#1501. Thank you kindly, Nebadon, for a patch that
addresses the 'terrain fill 0' error.
2008-06-10 16:02:18 +00:00
Jeff Ames 5910a49da6 Update svn properties. Formatting cleanup. 2008-06-10 08:35:46 +00:00
Sean Dague c62f081380 actually create and populate the migrations table correctly. 2008-06-09 22:20:28 +00:00
Sean Dague 69fb4ee208 migrations seem to not break anything at this point.
Tomorrow I'll start trying to integrate them into sqlite
to see if this works right for table migration.
2008-06-09 22:01:21 +00:00
Sean Dague 504ab4477d move Migration support into OpenSim.Data, because it
really turned out to be small enough to not need it's own
assembly
2008-06-09 21:40:16 +00:00
Sean Dague 2e2dde71f2 fill out some more migration facilities 2008-06-09 19:37:13 +00:00
Sean Dague c30e9ff0f1 more work in progress migration code, still a while before
this becomes useful
2008-06-09 19:11:49 +00:00
Sean Dague 283cc90566 start in on the shell for a generic database versioning module. My
intent is to create an easier way to manage database table versions
like the model used for ruby on rails migrations.
2008-06-09 18:24:07 +00:00
mingchen c3292a9afa *Patched CreateItemsTable.sql (MSSQL). Patch by Kyle and Chris from G2. 2008-06-09 14:48:28 +00:00
mingchen de0bd2b5a0 MSSQL Inventory Fix. Patch by Kyle and Chris from G2 2008-06-06 00:56:51 +00:00
Charles Krinke c289c2b6d4 Mantis#1450. Thank you kindly, Boscata for a patch that addresses:
I have detected a bug of conversion data type in OpenSim.Data.MSSQL.MSSQLInventoryData.addInventoryItem(InventoryItemBase item)
in the GroupOwned field.
My sollution is to change the flield to bit in the table. In the 
readInventoryItem(IDataReader reader) change too item.Flags = 
(uint) reader["flags"]; to item.Flags = Convert.ToUInt32(reader["flags"]);
Now Inventory runs fine.
2008-06-05 13:57:58 +00:00
Jeff Ames 4ec4e16c80 Formatting cleanup, minor refactoring, svn properties. 2008-06-04 09:59:27 +00:00
Justin Clarke Casey 4453c8bc5c * experimental: Make OpenSim archiver save and reload all prim textures when not all faces have the same texture 2008-06-02 17:23:13 +00:00
Justin Clarke Casey 0c21f90ba7 * Duh, actually returning from the CreateAsset method once we know the asset exists would be better than carrying on 2008-05-31 21:54:13 +00:00
Justin Clarke Casey 7752211376 * Remove the mysql logging noise I accidentally left in a few commits ago 2008-05-31 21:53:17 +00:00
Justin Clarke Casey d703e2004f * Change MySQL to check whether an asset already exists before inserting it into the database 2008-05-31 21:44:57 +00:00
Teravus Ovares febe78d062 * Implements UserServer logoff in a few situations
* User tries to log-in but is already logged in.  Userserver will send message to simulator user was in to log the user out there.
* From the UserServer, admin types 'logoff-user firstname lastname message'.
* Some regions may not get the message because they're not updated yet.
2008-05-31 12:18:29 +00:00
Jeff Ames 0462510956 Update svn properties. Formatting cleanup. 2008-05-30 08:35:57 +00:00
Sean Dague 858ddfa605 update the nhibernate inventory item base definition 2008-05-28 19:40:42 +00:00
Sean Dague 11d83cb737 actually user the database_connect string for mysql.
This means you can run all the OpenSim grid services without
needing a mysql_connection.ini
2008-05-28 18:12:32 +00:00
Sean Dague 89c164fbc1 let Grid Servers specify a connect string in their configuration. 2008-05-28 17:59:46 +00:00
Sean Dague 7ddf183da4 remove terrain bloat, only keep last terrain revision
for mysql.  For active terraformers this should return
a lot of database space.
2008-05-28 15:02:04 +00:00
Sean Dague a28a6e9aaa remove an erroneous line to fetch the terrain table in a way that
isn't actually used.
2008-05-28 14:57:24 +00:00
Adam Frisby 77281ed85c * Potential fix for Mantis#167, 332 - MySQL Thread collision. 2008-05-26 21:53:32 +00:00
Jeff Ames 5d77625e9a Update svn properties. Formatting cleanup. 2008-05-25 23:27:38 +00:00
Sean Dague 1ebc6bfd0a add a lock on the update, this should have been there before.
still not convinced this will help, but it was wrong.
2008-05-22 18:31:47 +00:00
Sean Dague 3e997772ea implement in memory appearance cache for sqlite. This
isn't db backed, but will hang around between reboots.
2008-05-21 20:36:34 +00:00
Sean Dague 53bcf2139e this removes use of the mapper for wearables, and I can confirm things
get saved to the database.  There are still issues on wearing things
after a cleared cache that I'm looking at now.
2008-05-21 18:02:09 +00:00
Sean Dague 0e39250506 create some direct sql calls for appearance 2008-05-21 14:34:52 +00:00
Sean Dague 6d2f6be82b autocreate appearance table if it isn't there 2008-05-19 21:47:31 +00:00
Sean Dague 419adadc46 prep for changes need to create the appearance tables
by default
2008-05-19 21:39:02 +00:00
Sean Dague d1c4fc94e7 make the super class conveniance appearance stuff virtual
so they can be overrided correctly by subclasses
2008-05-19 20:49:57 +00:00
Sean Dague 9808f39b6f i can haz pantz?
You sure can.  This change set restores pants (and the rest of the
default appearance) in grid mode.  The 
root issue had to do with serializing multi-faced textures to the 
grid server.  This also restores the lookup path through the avatar
factory module, as that seems the reasonable place to have it live.
Some clean up patches are coming later as well, plus testing on 
standalone, but this should be in a good kicking around state for 
grid users.
2008-05-19 19:08:59 +00:00
Jeff Ames a5f08b430d Formatting cleanup. 2008-05-17 00:06:35 +00:00
Sean Dague 8a7ae313be it helps to actually create the database if the connect
string is provided.  My bad.
2008-05-16 18:43:53 +00:00
Sean Dague 0076ed40ff in theory, this moves the appearance mapper to live
under the MySQLUserData.  There is a lot of in theory here
so testing would be appreciated.
2008-05-16 14:30:25 +00:00
Sean Dague e6d4c8f0c9 move AppearanceTableMapper to OpenSim.Data.Base. The mapper
stuff should probably be collapsed soon, as it takes up 4 assemblies
now.
2008-05-16 14:05:12 +00:00
Jeff Ames 7fefb80abb Minor cleanup. 2008-05-16 13:33:57 +00:00
Jeff Ames 9040213366 Set svn:ignore. Minor formatting cleanup. 2008-05-16 05:30:39 +00:00
Jeff Ames 65c5efe43b Formatting cleanup. 2008-05-16 01:22:11 +00:00
Sean Dague fc77364972 appearance now survives logout. Tommorrow will involve moving
the MSSQL and MYSQL mappers back in under datastores and looking at doing
gid bits for this
2008-05-16 00:04:46 +00:00
Sean Dague 129e7e19c5 fixed the key issue that caused appearance to go wonky 2008-05-15 21:14:42 +00:00
Sean Dague 4a9ee9f870 testing avatar appearance as a user service 2008-05-15 20:25:42 +00:00
Sean Dague 4ff4475d02 remove my UserAppearance object, switch all code to use
AvatarAppearance instead.
2008-05-15 18:42:27 +00:00
Sean Dague b1327dda01 fix for a change in inventory that meant I was returning a lot
of empty inventory folders
2008-05-14 15:43:19 +00:00
Jeff Ames b7a0855c3a More formatting cleanup. Minor refactoring. 2008-05-14 06:09:39 +00:00
Jeff Ames 6a1b787436 More formatting cleanup. 2008-05-14 05:33:32 +00:00
Jeff Ames c995d60d37 Formatting cleanup. 2008-05-14 05:11:23 +00:00
Adam Frisby 4fa0cbdfbb * You can haz more spring cleaning.
* Eventually this codebase will be clean. >_>
2008-05-08 05:35:01 +00:00
Adam Frisby ba8ff761c0 * Reduced sleep durations in a number of files. 2008-05-08 04:47:38 +00:00
Adam Frisby 5843f595a7 * Fixed some compiler warnings
* Fixed prebuild.xml to remove DB4o references (more compiler warnings)
2008-05-07 21:42:23 +00:00
Jeff Ames 0ea48cf786 De-tabify source. 2008-05-06 22:41:38 +00:00
Sean Dague 94a3442baf this should fix zariok's issue 2008-05-06 19:22:05 +00:00
Teravus Ovares 7b446aba91 * Implemented DIE_AT_EDGE and Temporary objects don't save to the database. 2008-05-04 22:55:52 +00:00
Sean Dague e538a34acc fixed up a bunch of the nhibernate user driver. Friends are not
implemented, and something is still funny with agents, but this
at least got me logged in, so is good enough to plumb through
appearance and see how that goes.
2008-05-02 19:57:35 +00:00
Sean Dague 17496f3edf in theory fix the user table mapping 2008-05-02 19:39:27 +00:00
Sean Dague 260927bf68 move it out of the Types namespace 2008-05-02 19:31:41 +00:00
Sean Dague 286d681673 in theory this gives me a back end that will do persistance
to actually have something to test plumbing in appearance
saving.
2008-05-02 19:16:54 +00:00
Sean Dague 1b7f1c956c plumb in connection string to the user database paths. mysql and mssql
just ignore this for now, but it lets us get connect strings to sqlite
and nhibernate.
2008-05-02 18:59:12 +00:00
Sean Dague 72a7c2e2bb added user appearance mapping in nhibernate 2008-05-02 18:39:13 +00:00
Sean Dague 4a8f432441 minor refactoring. Change getName and GetVersion methods (yes the had different casings)
to Name and Version properties for the User stores.
2008-05-02 12:35:24 +00:00
Justin Clarke Casey 1de6cffa28 * Refactor: Remove the unused userID parameter that was being passed into almost every inventory method
* This allows lots of redundant inventory methods with only slightly different names to be eliminated.
2008-05-01 20:47:33 +00:00
Sean Dague 62c663c37b remove DB4o, we're pretty sure no one uses this, and
no core developer supports it anyway.
2008-05-01 20:17:57 +00:00
Sean Dague 86d2e53d1f added stubs for appearance bits to all the db layers 2008-05-01 20:16:26 +00:00
Adam Frisby 76d8eaa406 * Thanks to Mic Bowman for inspiring me to look at that we are still using ASCIIEncoder in places we shouldn't. 2008-05-01 18:50:44 +00:00
Adam Frisby 20a9bf08f5 * Rolled back a few changes. 2008-05-01 18:04:42 +00:00
Adam Frisby fc6c4dc399 * Cleaning code still. 2008-05-01 16:41:01 +00:00
Adam Frisby 01f31fd933 * Breaking all the code, breaking all the code..!
* Made a bunch more members static, removed some dead code, general cleaning.
2008-05-01 16:23:53 +00:00
Adam Frisby 5231903778 * In ur code. Making it static.
* Converted a bunch of functions to static functions.
2008-05-01 16:03:53 +00:00
Adam Frisby a1c8aa4050 * Cleaned namespaces of entire solution. OpenSim directories now correspond with namespaces. 2008-05-01 15:36:39 +00:00
Adam Frisby 4692e92312 * Assorted spring cleanings. 2008-05-01 14:45:56 +00:00
Jeff Ames d51ce47b2d Update svn properties. Minor formatting cleanup. 2008-05-01 14:31:30 +00:00
Justin Clarke Casey 13e51b197c * Add more class cast exceptions to mysql read inventory item to cover all new fields - not just those I think are initially failing.
* This is more likely to allow existing mysql databases to work temporarily, if the previous revision doesn't work
2008-05-01 13:41:36 +00:00
Justin Clarke Casey d72bdf432a * Align new fields upgrade sql to have the same 'not null' and default settings as when an inventoryitems table is newly created
* Normalize logging titles in database code, though this doesn't yet cover invoking code
2008-05-01 13:27:40 +00:00
Justin Clarke Casey 6e9042c3d3 * Change mysql inventory items table version 3 upgrade sql to provide explicit default values 2008-05-01 12:33:05 +00:00
Justin Clarke Casey 9024fe68fc * Insert temporary cast exception catching code to deal with mantis 1099 - mysql inventoryitems table problem 2008-05-01 12:08:22 +00:00
Teravus Ovares 4dfc9bdd0b * Whoops, SQLite land data malfunction. Fixed. 2008-05-01 00:40:47 +00:00
Adam Frisby 25a49ac4de * Spring cleaned a bunch of '//TODO: unused' marked functions. 2008-04-30 23:11:07 +00:00
Teravus Ovares 19723767a9 * Adds the AuthbuyerID field to sqlite and makes use of it.
* Includes a more user-friendly way of adding it saying, 'Your land table was recently updated.  You need to restart the simulator.  Exiting'
2008-04-30 21:15:48 +00:00
Teravus Ovares b3f44fbb94 * Refactored the land table to be versionable in mySQL.
* Added AuthbuyerID so that if someone sets a land for sale to someone and then restarts the simulator, when the simulator comes back up, the setting persists.
2008-04-30 20:08:15 +00:00
Justin Clarke Casey 8ed9e57896 * Add a scratch implementation of the new inventory fields to the mssql database adapter
* I don't use mssql so this may not work, corrections (in the form of patches) are welcome.
* Unlike mysql, mssql requires manual updating of existing tables here (which should mean just adding the new fields manually)
2008-04-30 19:28:36 +00:00
Justin Clarke Casey f57ff4c36b * Change new inventory groupID field to 36 rather than 63
* Add updated stub mssql inventory sql (only really because I was in the middle of this when I spotted the numeric transposition)
2008-04-30 19:13:06 +00:00
Justin Clarke Casey dbcd6112b9 * Actually enable the inventory upgrade sql if appropriate 2008-04-30 17:11:59 +00:00
Teravus Ovares b70da6ac19 * Patch by Melanie. Implements proper objectflags on child objects. Thanks Melanie!
RE: 0001079: r4387. touch() event does not fire when touch script is in root prim and child prims are touched
2008-04-30 16:52:12 +00:00
Justin Clarke Casey eac3fd51f0 * Deal with a situation where the new fields in the inventory store are null on sqlite
* This is due to a preparatory change I made yesterday
2008-04-30 16:41:05 +00:00
Justin Clarke Casey f3b44deeee * Trivial sqlite inventory db log message change so I can pick out the messages more easily 2008-04-30 16:28:29 +00:00
Teravus Ovares a9cc76e0ef * Long awaited patch from A_Biondi Mantis 923. Kept alive by Melanie. Thanks A_Biondi and Melanie!
* This builds but might not work.   JustinCC will examine..   it may work out of the box.
2008-04-30 16:08:24 +00:00
Justin Clarke Casey 41207b5fa0 * Preparatory work for autoupgrade of sqlite inventory tables in preparation for patches in mantis #923 2008-04-29 17:21:17 +00:00
Sean Dague 03c7055902 do a max of 3 splits when first processing the nhibernate connect
strings so the ; in the db connect strings pass to the native
drivers correctly
2008-04-24 15:52:22 +00:00
Sean Dague c6f6218f60 in theory, let you pass the mysql connection string into the
mysql manager class.  This could use some testing of inventory
and asset services.  Once this is prooved out, I'll do it for
mssql as well.
2008-04-24 15:23:49 +00:00
Sean Dague 56ef67ec6d auto table creation for nhibernate backends 2008-04-24 15:00:42 +00:00
Sean Dague 3dd98a112f allow for Inventory database source to be specified in main
configs.  This works with sqlite and nhibernate backends, and
stays with default seperate ini files for mysql and mssql until
someone writes those.
2008-04-23 20:48:23 +00:00
Sean Dague a1cc0e436f changes to allow asset_source to be specified in the opensim.ini
this will work for sqlite and nhibernate, but will be ignored for
mysql and mssql (reverting to their ini files) until someone writes
that bit.
2008-04-23 19:13:06 +00:00
Justin Clarke Casey 4db839c3b8 * Implement proper emptying of trashcan on standalone
* On standalone, folders (and their items) should now be persistently deleted on trash emptying, as well as immediate child items
* An implementation for grid mode will follow.
2008-04-23 17:04:15 +00:00
Adam Frisby fef3b36894 * Optimised using statements and namespace references across entire project (this took a while to run). 2008-04-21 07:09:17 +00:00
Justin Clarke Casey f0896c263b * Insert some missing database locks for inventory and user data on mysql 2008-04-18 22:46:03 +00:00
Jeff Ames fe3265f491 Update svn properties. Add copyright info to some source files. 2008-04-17 12:16:19 +00:00
Sean Dague 3891b2f86f fix types on nhibernate mappings for User bits 2008-04-15 23:01:42 +00:00
Justin Clarke Casey 379ac9c92a * Make it easier to follow logins on the user server by changing and tidying up log messages 2008-04-15 22:41:34 +00:00
Sean Dague e46454afa6 first drop of user storage implementation for nhibernate.
This surely doesn't work yet, but it compiles, and I'm getting
close to a stopping point for the day.
2008-04-11 23:10:12 +00:00
Sean Dague b43ffd12f5 add user agent mapping 2008-04-11 22:18:52 +00:00
lbsa71 cbf9fcfac5 * Discerned between AddProfile and UpdateProfile in region registration
:: Believe it or not, but INSERT/UPDATE is actually a better pattern than REPLACE, since, with INSERT/UPDATE you can catch erroneous UPDATES to non-INSERTed items as well as catch erroneous re-INSERTS. in 95% of the cases, you SHOULD have a clear INSERT context, and a clear and separate UPDATE context. If you think your case falls within the 5%, maybe you should re-evaluate your code. ::
2008-04-11 09:56:22 +00:00
Sean Dague 3f47deab32 add user profile mapping for nhibernate 2008-04-10 23:52:23 +00:00
Sean Dague 55ac1c6dce renaming of attributes in UserAgentData for readability 2008-04-10 14:50:52 +00:00
Sean Dague ef7dfae41c changing UserAgentData to use properties. This caused more
grief than expected, as monodevelop doesn't like to refactor 
properties of properties.
2008-04-10 14:37:17 +00:00
Sean Dague 25fea01b92 further renaming of properties for clarity 2008-04-10 14:09:30 +00:00
Sean Dague c176caeb05 moved fields to properties for UserDataProfile, which was
actually a little more work than I expected given the copious
use of out params.
2008-04-10 13:53:06 +00:00
Sean Dague ce5e51240f NHibernate Inventory support. Lightly tested, but seems to work
well enough on my test environment.  Will need to add some exception
catching down the road.

On to User Store.
2008-04-09 18:04:03 +00:00
Sean Dague 4cc3aad2f9 more futzing around here. None of this works yet because
bloody LLUUID isn't serializable, which is really annoying.
2008-04-09 16:01:57 +00:00
Sean Dague 0919df5cdc checking in a chunk of work because I think I'm tackling
the UUID issue
2008-04-09 14:15:54 +00:00
Sean Dague 93d7c8bd31 oops, broke compile. This fixes it 2008-04-09 13:45:32 +00:00