Commit Graph

10414 Commits (ca69fac13e2a0b648b02bf32a368f77d2fbec1fb)

Author SHA1 Message Date
Dr Scofield b6b83be562 From: Alan M Webb <alan_webb@us.ibm.com>
This fixes *another* sync error in a list/dictionary
  iterator. This time in WorldComm. I'm beginning to think
  something is going on...
2009-03-11 09:07:50 +00:00
Mike Mazur c20e0286d3 Adding AssetInventory InventoryArchive plugin
This plugin exposes an HTTP handler on the AssetInventoryServer which
serves a gzipped tar file containing the contents of a user's inventory.
The assets referenced by the inventory are not yet archived. At the
moment only export functionality is implemented, restore functionality
is missing.

prebuild.xml had to be shuffled around a bit in order for the plugin to
build, as it has a dependency on OpenSim.Region.CoreModules.

Also, close a MemoryStream in a few places.
2009-03-11 07:38:35 +00:00
Dahlia Trimble 5cc372fab4 add a taint to SOP.UpdateShape() - addresses Mantis #3277 2009-03-11 04:13:35 +00:00
Mike Mazur 8606d7d126 Remove chained tests in BasicGridTest.cs.
It's good practice to isolate unit tests so their outcome (pass/fail)
does not depend on whether another test has been run/passed/failed. A
method is used to populate the DB independently for each test, and a
TearDown method cleans up the database after each test.

Also adding extra comment in C-style comment test.
2009-03-11 00:33:34 +00:00
lbsa71 1c70790a8f * Cleanup and CCC (Code Convention Conformance) 2009-03-10 20:42:44 +00:00
lbsa71 91a096dca6 * Cleanup and CCC (Code Convention Conformance) 2009-03-10 20:27:41 +00:00
lbsa71 63a5a01945 * Cleanup and CCC (Code Convention Conformance) 2009-03-10 20:06:25 +00:00
lbsa71 a8ae02df4f * Cleanup and CCC (Code Convention Conformance) 2009-03-10 19:55:59 +00:00
Justin Clarke Casey dd28d6ceeb * minor: reduce some code duplication in BaseHttpServer 2009-03-10 18:22:46 +00:00
Justin Clarke Casey 327720498e * Enable test logging for TestSaveOarV0p2 to capture more information the next time this hiccups 2009-03-10 17:57:04 +00:00
Dr Scofield fd9ba29a03 From: Alan M Webb <alan_webb@us.ibm.com>
Fix a null reference loophole in ScenePresence.
2009-03-10 15:54:00 +00:00
Dr Scofield c6415ef71d fixing out-of-sync error in BaseHttpServer 2009-03-10 15:51:17 +00:00
lbsa71 0df0258087 *** POTENTIAL BREAKAGE ***
* Finally got to the point where I could pull up the CustomiseResponse function. Major de-duplication.
* Introduced FromRegionInfo on RegionProfileData
* This revision needs both grid and standalone testing galore.

Work in progress!
2009-03-10 12:11:19 +00:00
lbsa71 1917238cd3 * Re-aligned CustomiseResponse function for imminent up-pulling 2009-03-10 11:47:34 +00:00
lbsa71 1956930e0d * Removed unused and uncommented file 2009-03-10 09:20:27 +00:00
lbsa71 1b34b94331 * Refactored out Create() methods to ensure proper transformation between RegionProfileData and RegionInfo
* Created ToRegionInfo method, still not using it pending peer review. 
* This is a preparatory commit for a subsequent login service refactoring.
2009-03-10 09:05:06 +00:00
Dr Scofield 973ba9c9b7 From: Alan Webb <alan_webb@us.ibm.com>
This commit fixes the attachment position problem described in
  OpenSim Mantis 2841 (and a couple of duplicate tickets).
2009-03-10 06:14:29 +00:00
Dr Scofield 2dcc24cc83 From: Alan Webb <alan_webb@us.ibm.com>
Fix a rather significant error in the UpdateUserAccountMethod.
  The request was failing to set user location and orientation
  correctly.
2009-03-10 06:04:51 +00:00
Jeff Ames 112a1af3a6 Update svn properties, minor formatting cleanup. 2009-03-10 00:03:26 +00:00
Jeff Ames 278ae3477a Thanks M1sha for a patch to reinstate the original functionality of the TreePopulatorModule.
Note that the planting command 'tree' has been changed to 'tree plant'. (#3264)
2009-03-09 23:31:10 +00:00
Justin Clarke Casey 051096e8ae * minor: remove some mono compiler warnings 2009-03-09 19:58:39 +00:00
Justin Clarke Casey ae759f2d06 * Add basic asset cache get test 2009-03-09 19:40:32 +00:00
Justin Clarke Casey 1bf05a543c * Move method documentation from AssetCache up to IAssetCache
* No functional changes
2009-03-09 18:35:26 +00:00
Justin Clarke Casey ee73d72f1d * Apply http://opensimulator.org/mantis/view.php?id=3280
* Some small syntax and refactoring tweaks for asset and inventory MSSQL
* This means the MSSQL db plugin now requires SQL Server 2005
2009-03-09 18:04:23 +00:00
Justin Clarke Casey 5a6bc26600 * Address http://opensimulator.org/mantis/view.php?id=3207
* A saved archive now immediately expires the data in the asset cache that it used, rather than retaining all the assets (esp textures) in the cache.
* This is an imperfect solution.  Ideally we would only expire the assets newly requested for the archive (not existing ones).  But doing that would require a lot more 
restructuring.
* I don't believe there are any locking issues due to the locking performed by the underlying memory cache, but please report any issues.
2009-03-09 17:55:08 +00:00
Sean Dague a2ff2e9000 * Added TXXX in front of unit tests to make sure they are running in the correct order. Although it might not make a difference here, this pattern should be followed to avoid further issues.
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2009-03-09 15:20:36 +00:00
Mike Mazur 5bee29e036 Refactor login test class.
There were multiple tests in one test method (T011_Auth_Login). This
test has been refactored into multiple tests. Common setup code was
placed into a SetUp method executed before each test.
2009-03-09 08:07:12 +00:00
Mike Mazur 66120f5a40 Fix tests broken in r8732.
Recent changes in the code handling login_to_simulator XMLRPC method
calls caused two tests to fail because not enough parameters were being
supplied with the method call. The parameters added in this patch work,
but I'm not sure whether they are actually correct or even relevant.
Diva, please look over this.
2009-03-09 07:29:53 +00:00
Mike Mazur a2f07ecd2e Implemented FetchAssetMetadataSet in DB backends.
This method fetches metadata for a subset of the entries in the assets
database. This functionality is used in the ForEach calls in the asset
storage providers in AssetInventoryServer. With this implemented,
frontends such as the BrowseFrontend should now work.

- MySQL: implemented, sanity tested
- SQLite: implemented, sanity tested
- MSSQL: implemented, not tested
- NHibernate: not implemented
2009-03-09 07:29:34 +00:00
Teravus Ovares f9ebdee1d2 * Tweak llMoveToTarget per mantis 3265
* Add some comments to the Wind Module
* Add the BinBVH decoder/encoder as a scene object (to encode/decode animations programmatically).
* Add m_sitState for upcoming code to improve sit results.
2009-03-09 04:33:53 +00:00
diva 6f4051c932 Making the web_login_key code work, even if the LL Viewer doesn't support it. Other clients can launch the LL Viewer with something like this, for example:
Process.Start("C:\\Program Files\\SecondLife\\SecondLife.exe", 
"-loginuri " + loginuri + "?web_login_key=" + web_login_key + " -login " + firstName + " " + lastName + " -multiple");
This requires a prior step for actually getting the key, which can be done like this:
http://localhost:9000/?method=login&firstname=barak&lastname=obama&password=123&show_login_form=FALSE
2009-03-08 23:17:49 +00:00
lbsa71 4f23718102 Thank you tlaukkan for a patch that: Upgraded to MXP 0.4 version and cleaned up field naming.
* Updated code to compile against MXP 0.4 version.
* Cleaned up field naming conventions.
* Added support for logging in with region name.
* Filled in new fields of JoinResponseMEssage.
* Added support for SynchronizationBeginEvent and SynchronizationEndEvent.
* Commented out periodic debug log.
* Added networking startup log messages.

This closes mantis #3277
2009-03-08 19:33:19 +00:00
Adam Johnson 2fa57a2970 Moving Windows Installer to forge. 2009-03-07 16:27:07 +00:00
Jeff Ames 385d3a467c Minor formatting cleanup. 2009-03-07 16:16:00 +00:00
idb 93a697b24d Correct a typo, purely cosmetic.
FixesMantis #3263
2009-03-07 14:39:42 +00:00
idb aab1601642 Limit the message length from llInstantMessage to 1024 characters http://wiki.secondlife.com/wiki/LlInstantMessage
Also truncate messages that may exceed the limit set by the packet size. The limit in OpenMetaverse is 1100 bytes including a zero byte terminator.
Fixes Mantis #3244
2009-03-07 14:16:26 +00:00
idb 23b247c519 Added the ability to set User-Agent in llHTTPRequest. No new default value has been set since having no User-Agent seems to work well but the facility is now available to set this if required. Using something based on the pattern of SLs User-Agent may well cause problems, not all web servers respond well to it. See the notes in the SL Wiki http://wiki.secondlife.com/wiki/LlHTTPRequest
Fixes Mantis #3143
2009-03-07 12:58:00 +00:00
idb 1fd57b39df Correct casts so that the target id in the at_target event matches the original target id.
Fixes Mantis #2861
2009-03-07 10:37:15 +00:00
Teravus Ovares 5a49c772ca * Making the minimum ground offset for flying a configurable offset in the OpenSim.ini. This is the code that causes you to rise off the ground when you press the fly button and attempts to keep you above ground automatically when flying in a simulator.
* minimum_ground_flight_offset, by default is 3 meters, as per Kitto Flora  See OpenSim.ini.example for an example.
2009-03-07 07:17:43 +00:00
Teravus Ovares 6c7151109b * fixes mantis 3259
* I'm concerned however that the 'minimum fly height' should really be implemented in ScenePresence and not in the specific physics plugin so that all of the physics plugins can take advantage of it and if desired, a person could swap out the 'minimum fly height' functionality with other functionality.
2009-03-07 06:51:27 +00:00
Teravus Ovares 5b8c925641 * Adding application/x-oar to the list of content types to which the HTTP Server will return the response as if it was a binary file pending discussion on the [opensim-dev] mailing list to be initiated by dmiles. 2009-03-07 06:14:31 +00:00
Jeff Ames 03076b0d33 Update svn properties, minor formatting cleanup. 2009-03-07 02:39:27 +00:00
Jeff Ames 3fe42386e4 Add copyright headers. 2009-03-07 02:11:50 +00:00
Jeff Ames e1f68145be Update svn properties. 2009-03-07 02:00:18 +00:00
Teravus Ovares ebe84907ae * Fixes mantis: #3241
* Uses 'mouselook' or left mouse button down, to determine when to use the camera's UP axis to determine the direction of movement.
* We crouch-slide no more.
2009-03-07 01:18:59 +00:00
Teravus Ovares 3a93bb992f * Added some limits to the maximum force applied per second by llMoveToTarget. Currently, it's 350 times the mass in newtons applied per second, maximum. 2009-03-07 00:27:56 +00:00
Charles Krinke b637a11b58 Fixes Mantis #3260. Thank you kindly, MCortez for a patch that:
llSetHoverHeight() should not clamp the x/y position of an object the way MoveTo does, 
and it should recalculate the absolute height to hover at as an object moves to reflect 
the current ground/water height under it.
Correctly implementing required adjusting the Physics interfaces and implementing at 
the physics plug-in level. The attached is a patch that correctly implements 
llSetHoverHeight() including updates to the ODE physics plug-in.
2009-03-06 23:01:35 +00:00
Sean Dague 05ebd44791 add back .config files for all tests in an attempt to debug why these
things crash so much.

This will generate a lot more log messages on make test, even some scary
looking exceptions.  Don't worry, that's normal.
2009-03-06 21:14:50 +00:00
Justin Clarke Casey fc2c73d5c6 * minor: remove some mono compiler warnings 2009-03-06 21:00:15 +00:00
Justin Clarke Casey f12619b786 * refactor: Remove GetLandOwner function from Scene
* Simplify since the land is never null
2009-03-06 20:44:31 +00:00