Commit Graph

81 Commits (787d58ae7f160960fda606be1852c8ed6a9e3893)

Author SHA1 Message Date
diva 5e4fc6e91e Heart surgery on asset service code bits. Affects OpenSim.ini configuration -- please see the example. Affects region servers only.
This may break a lot of things, but it needs to go in. It was tested in standalone and the UCI grid, but it needs a lot more testing.
Known problems: 
* HG asset transfers are borked for now
* missing texture is missing
* 3 unit tests commented out for now
2009-05-15 05:00:25 +00:00
Adam Frisby 9f5679e60f * EventManager's OnNewPresence event now fires correctly again. 2009-05-12 20:59:38 +00:00
Melanie Thielker f948fab4da Add AssetService of type IAssetService to Scene 2009-05-11 21:04:27 +00:00
Dr Scofield ecc876bc18 Squashed commit of the following:
further ACL stuff:
- adding StrictAccessControl variable: DON'T set this to false if you
  want to enforce ACL, it will disable ACLs right now. Default is
  true.

  once we've got code added to allow child agents but prevent them
  from becoming root agents when the ACL denies access to the avatar,
  setting this to false will then allow avatars to see into a
  neighboring region but not enter it (currently ACL prevent both,
  seeing and entering).

- enhancing log statements
2009-05-11 07:46:12 +00:00
Melanie Thielker d8e1842d25 Add some asset cache plumbing. Change the generic cache from UUID to string
keys to allow caching the new crop of URI identified objects.
2009-05-10 12:27:05 +00:00
Justin Clarke Casey 9f39a490b5 * refactor: break out sog original xml serialization to a separate class 2009-05-08 18:05:54 +00:00
Dr Scofield 1352a19838 refactoring Scene.NewUserConnection() to be simpler and clearer. 2009-05-06 20:02:49 +00:00
Dr Scofield e0a06f6416 - moving banned check and public/private check to
Scene.NewUserConnection()
- adding reason reporting

this enforces estate bans very early on and prevents us from
circulating client objects that we'd then have to retract once we
realize that the client is not allowed into the region
2009-05-05 16:17:52 +00:00
Jeff Ames 8ea12ad6c0 Add copyright header. Formatting cleanup. Ignore some generated files. 2009-05-05 09:59:15 +00:00
Justin Clarke Casey 257fc5515a * minor: remove some mono compiler warnings, minor cleanup 2009-05-04 15:38:36 +00:00
Melanie Thielker 8ac4ec738b Create a working configuration hook to allow LLClient parameters from
Opensim.ini to take force
2009-05-04 01:57:18 +00:00
Melanie Thielker 66e25abbfe Plumb conifg into the client views. Add config option to configure packet
dropping.
2009-05-02 17:31:49 +00:00
Melanie Thielker 62bcf0e694 Numerous packet improvements.
Don't allow packets to be resent before they have actually been sent for the
first time. Switch from serializing a packet to get it's length to the LibOMV
provided Length property. Fix resend timing. Fix the use of dangling references
to Acked packets. Fix the packet handler to play nice with the packet pool.
Fix the packet pool. Add data block recycling to the packet pool. Packet pool
is now ENABLED by default. Add config option to disable packet and data block
reuse. Add ObjectUpdate and ImprovedTerseObjectUpdate to the packets being
recycled.
2009-05-02 13:16:41 +00:00
Melanie Thielker 0f721da5f1 Add a tweakable for the prim queue preload 2009-05-01 19:33:18 +00:00
Melanie Thielker 7e972b304b Let estate owners and managers enter nonpublic estates unconditionally.
Let gods go to nonpublic estates as well.
2009-04-28 22:53:10 +00:00
Dr Scofield c91a79c3d2 From: Alan Webb <alan_webb@us.ibm.com>
If an avatar is sitting when the client disconnects, the avatar
  is not disassociated from the SOG on which (s)he was sat. This
  produces any, and varied, effects.

  I have updated RemoveCLient in Scene, to check, and stand the
  client up immediately prior to disconnect. This seems like the
  most robust way to handle the situation. Though in this case
  it might be worth factoring out the animations from other
  standup processing. It does no harm, but in this case it is
  entirely redundant.
2009-04-27 14:04:01 +00:00
Dr Scofield 515e62dc2f From: Alan M Webb <alan_webb@us.ibm.com>
Added support for access control lists.
  Scene: Added test to AddNewClient for an entry in the access
         list when connecting to a region with limited access.
  EstateSettings: Added an HasAccess(UUID) property to test for
         an entry in the estate's access list.
  RemoteAdmin: Add RPC calls for admin_acl_list, clear, add,
         and remove.
2009-04-27 11:51:25 +00:00
Melanie Thielker b018f45b70 Make sim health data more useful 2009-04-15 20:16:18 +00:00
Justin Clarke Casey fa9b9126ee * Resolve unit test failure introduced in r9148 (probably)
* Have the test scene always return success for session id authentication for now
2009-04-15 17:40:04 +00:00
Johan Berntsson 119aeeed7d Another cleanup: Region_Status renamed to RegionStatus, and a usage comment added 2009-04-15 04:15:47 +00:00
Johan Berntsson 068127bf57 Renamed splitID in Scene and added comments on usage 2009-04-15 04:07:41 +00:00
diva 0413d052a3 Adds session authentication upon NewUserConnections. Adds user key authentication (in safemode only) upon CreateChildAgents. All of this for Hypergrid users too. This addresses assorted spoofing vulnerabilities. 2009-04-14 19:35:35 +00:00
diva 6bd89f7dad Cleaning up old circuit upon client close. 2009-04-14 02:21:40 +00:00
Melanie Thielker cc86df4a3f Thank you, dslake, for a patch that converts many of the linear searches
in SceneGraph to fast dictionary lookups.
Includes a regression fix for attachments by myself.
Fixes Mantis #3312
2009-04-12 15:18:04 +00:00
Teravus Ovares 827117f0b1 * Add catch-all error handlers back to scene. 2009-04-11 00:12:57 +00:00
Teravus Ovares 53026affb3 * Instead of referencing mesh stuff in the physics plugin.. change the IMesh Interface. (blame prebuild) 2009-04-11 00:11:54 +00:00
nlin 8e6c20b27f Handle ObjectSpin* packets to spin physical prims on Ctrl+Shift+Drag
Addresses Mantis #3381

The current implementation works as expected if the object has no rotation or 
only rotation around the Z axis; you can spin the object left or right (around
the world Z axis).

It works a little unexpectedly if the object has a non-Z-axis rotation; in this
case the body is spun about its local Z axis, not the world Z-axis. (But SL 
also behaves oddly with a spin on an arbitrarily rotated object.)
2009-04-10 06:39:52 +00:00
Adam Frisby 03984e7304 * Added additional debug testing info to Scene
* Corrected issue with MRMs where it would attempt to overwrite an already loaded DLL. (and thus fail with cryptic UnauthorizedAccessException.)
* Made DrunkenTextAppreciationModule.cs MRM not crash with StackOverflowException
* Added some temporary logging to MRM World.*
2009-04-09 13:03:27 +00:00
Justin Clarke Casey f3c7298fc5 * Make it possible to store creator strings in user inventory items as well as UUIDs
* All existing functionality should be unaffected.
* Database schemas have not been changed.
2009-04-08 17:50:57 +00:00
Justin Clarke Casey ad7b005784 * minor: remove some mono compiler warnings 2009-04-07 20:24:09 +00:00
Justin Clarke Casey ed6165ab9c * Apply http://opensimulator.org/mantis/view.php?id=3227
* Implement "Add To Outfit"
* Thanks FredoChaplin
2009-04-07 17:46:23 +00:00
Melanie Thielker fb900f6055 Applying Intimidated's patch to fix anim handling.
Fixes Mantis #3417
2009-04-06 18:02:12 +00:00
diva 3c9cba1627 Added CreateObject(regionhandle, userID, itemID) to post objects that are to be fetched from the user's inventory server and rezzed in the region. Added all code necessary to fetch the item and the asset, and rez it inworld. The access to the item is uncap-ed and unverified -- I may place it later either under a cap or with auth verification. But in this model regions don't have the user's inventory, so they would have to guess the item IDs.
Added safemode config to Standalone Hypergrid, similar effect to AllowRegionAccessToInventory in Inventory Server. Everyone should have these vars set to their default values except me!
2009-04-05 03:27:50 +00:00
Justin Clarke Casey 5146cb7a72 * refactor: Call StatsReporter methods directly rather than through Scene (as WebStatsModule was doing)
* Assume that StatsReporter is always present (possibly as a no-op impl) rather than doing null checks
2009-04-03 17:14:51 +00:00
Justin Clarke Casey ac8fc02afc * refactor: Move god related methods in Scene out to a module 2009-03-30 18:20:41 +00:00
Justin Clarke Casey 30ffefb67b * refactor: call some EventManager triggers directly rather than through scene 2009-03-27 20:41:35 +00:00
diva bce5ed5812 Moved a method GetDefaultVisualParameters from Scene to AvatarAppearance, where it belongs. Better error handling in ScenePresence.CopyFrom. 2009-03-27 20:18:55 +00:00
diva 5af63a6a5c Root agent retrieval via http/REST. This is a pull, the caller gets the agent. This is not used by the regions yet, but it may be a better alternative to transfer agents even when that is done by the regions. The data is still trivial; soon it will have attachments, scripts and script state. Also, authorization tokens still to come. Serialization using OSD/json, as the other methods. 2009-03-23 02:37:19 +00:00
Justin Clarke Casey f5ff2eff24 * minor: Lable the heartbeat thread with the region it's beating for 2009-03-12 20:37:15 +00:00
Dahlia Trimble 669aa46bff update some ini defaults in code - all defaults from beginning of OpenSim.ini.example thru DefaultScriptEngine = "XEngine" 2009-03-11 09:31:02 +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
Justin Clarke Casey 11e1948b57 * Replace Scene.GetLandHeight() with a straight query to Scene.Heightmap (which is used in other contexts) 2009-03-05 21:10:39 +00:00
Justin Clarke Casey 3d70dbd01d * refactor: move media and music url setting from scene into LandObject 2009-03-05 20:53:23 +00:00
Justin Clarke Casey c213a12b57 * simplify media and music url setting since we never get back a null land object 2009-03-05 20:32:35 +00:00
Adam Frisby 915b0f2448 * More work on MiniRegionModule module. 2009-03-04 02:29:51 +00:00
MW 171015f65f Moved Linden protocol login handling to modules in OpenSim.Client.Linden. There are two region modules in there LLStandaloneLoginModule (for standalone mode) and LLProxyLoginModule (for grid mode which just handles incoming expect_user and logoff_user messages from the remote login server)
Changed OpenSim.Framework.Communications.Tests.LoginServiceTests to use the LLStandaloneLoginService (from the LLStandaloneLoginModule) rather than LocalLoginService. Really these login tests should most likely be somewhere else as they are testing specific implementations of login services. 
Commented out the old LocalLoginService as its no longer used, but want to check there are no problems before it gets deleted.
2009-03-03 15:41:21 +00:00
MW 202f990d2a After another heroic and bloody battle, OpenSim Dino Expedition 1, killed off OsSetParcelMediaTime, which was only ever added for testing. And all the logic code of it has been commented out for a long time. 2009-03-02 11:03:11 +00:00
Jeff Ames f175cb7e8c Update svn properties, add copyright headers, minor formatting cleanup. 2009-02-23 10:36:16 +00:00
Adam Frisby d9cb81e8fe * Commenting out threaded Scene update for the moment.
* It works, but makes certain building tasks slow to update.
2009-02-23 07:57:54 +00:00
Adam Frisby 13b089636d * Fix for recent thread patch - IsAlive apparently is not as reliable as ThreadState. 2009-02-23 07:31:13 +00:00