Commit Graph

8197 Commits (18634e9dd8464ee7514587d0645e38f529f0bb3e)

Author SHA1 Message Date
Dr Scofield 8f5efc4994 - adds the possibility of setting the socket receive buffer size
option for LLUDPServer. On windows .NET the default socket receive
  buffer size is 8192 bytes, on recent linux systems it's about
  111K. both value can be a bit small for an OpenSim instance serving
  many clients. The socket receive buffer size can be configured via
  an OpenSim.ini config option

- adds a general catch clause to LLUDPServer.OnReceivedData() to
  prevent it submerging when an unexpected Exception occurs.
2009-06-25 07:50:02 +00:00
Dr Scofield afd5f76648 From: Alan Webb <alan_webb@us.ibm.com>
This change moves texture send processing out of the main
  packet processing loop and moves it to a timer based
  processing cycle.

  Texture packets are sent to the client consistently over
  time. The timer is discontinued whenever there are no
  textures to transmit.

  The behavior of the texture sending mechanism is controlled
  by three variables in the LLCLient section of the config
  file:

   [1] TextureRequestRate (mS) determines how many times per second
       texture send processing will occur. The default is 100mS.
   [2] TextureSendLimit determines how many different textures
       will be considered on each cycle. Textures are selected
       by priority. The old mechanism specified a value of 10 for
       this parameter and this is the default
   [3] TextureDataLimit determines how many packets will be sent for
       each of the selected textures. The old mechanism specified a
       value of 5, so this is the default.

  So the net effect is that TextureSendLimit*TextureDataLimit
  packets will be sent every TextureRequestRate mS.

  Once we have gotten a reasonable feeling for how these parameters
  affect overall processing, it would be nice to autonmically manage
  these values using information about the current status of the
  region and network.

  Note that this also resolves the pathologcal problem that
  previously existed which was that a seated avatar generated very
  few in-bound packets (theoretically) and would therefore be the
  least able to retrieve the images being displayed by a
  projector script.
2009-06-25 07:42:06 +00:00
Dr Scofield 652bcf91d5 - fixes a "collection out of sync" exception in the ODE physics
engine, caused by an "avatar infinite position" occurring under
  heavy load.
- fixes "value too small" exception in ChatModule
2009-06-25 07:39:48 +00:00
Melanie Thielker 9d07584ea1 Allow "Take Copy" with copy only permissions if you own the object. Trans
is only required when taing an object you don't own, now.
Fixes Mantis #3838
2009-06-24 23:45:21 +00:00
Melanie Thielker fa786c480b Reading GroupPosition, but setting OffsetPosition in undo doesnt' seem right.
This may fix the Mantii where individual prims ctrl-z to nirvana, but
it's not tested.
2009-06-24 09:49:49 +00:00
Melanie Thielker 41b8e2de9e Also fix group role membership packet sizes to stay safely below MTU 2009-06-23 22:11:34 +00:00
Melanie Thielker 8cf16f6ea4 Can I be this dumb? 2009-06-23 21:17:20 +00:00
Melanie Thielker 2a766b9082 Fix an error in group membership sending when the memebr count exceeds 60
Also reduce limit to 40 to allow for last logon dates and titles
2009-06-23 20:27:35 +00:00
Melanie Thielker a2635e43da Allow the member list of groups with more than 70 members to be viewed
without crashing
2009-06-23 14:37:51 +00:00
Melanie Thielker 0fecf4666c Add RegionSecret to user data structure to provide data update security 2009-06-23 09:04:30 +00:00
Melanie Thielker 56d0966a32 Commenting out the jhurliman fix, since our libOMV doesnt' have those fields
yet.
2009-06-23 08:56:45 +00:00
Melanie Thielker 2d7dd5f63e Correct an uninitialized field in a packet. Thanks, jhurliman.
Fixes Mantis #3831
2009-06-23 08:51:35 +00:00
Melanie Thielker 7f4a3392fc Fix the AssetServiceBase bug I introduced by reordering configuration load
order. Thanks, Grumly57, for pointing it out.
The point of the original change was to let the more specific setting override
the less specific one, actually, I disabled the use of the less specific one.
2009-06-23 08:37:12 +00:00
Melanie Thielker afbce6aa10 Forgot a file 2009-06-22 13:25:47 +00:00
Melanie Thielker 77ebb7c9f3 Committing RemoteUserServiceConnector out connector, local user service
connector and the glue code.
2009-06-22 13:14:48 +00:00
Melanie Thielker 044446821b Committing the meat of the user server interface and the bones of the service implementation 2009-06-22 12:18:04 +00:00
Jeff Ames 65d48a5e60 Formatting cleanup, ignore some generated files. 2009-06-22 11:04:09 +00:00
Jeff Ames 142b481e03 Update svn properties. 2009-06-22 10:07:27 +00:00
lbsa71 5ee2125bb6 * Panda no like LongRunningAttribute, no? Me now reverting minuscule fix, yes? Panda happy, eh? 2009-06-22 08:34:50 +00:00
lbsa71 e9d0f48a5b * Minuscule CC fix 2009-06-22 07:40:31 +00:00
lbsa71 e365440461 * Added SceneTests and SceneBaseTests
* Changed some fields to protectesd to enable faking
2009-06-22 07:39:04 +00:00
Melanie Thielker 7d4f541d43 Suppress exception dump when informing friends in another region about login
or logoff. Regions come and go and we can't throw just because someone
took their region off the grid, or crashed.
2009-06-21 22:40:21 +00:00
Melanie Thielker bc1dce071a Correct the behaviro of group deeding and llGetOwner() within deeded objects 2009-06-21 19:49:11 +00:00
Homer Horwitz 04444d408f Do llEscapeURL with Uri.EscapeDataString instead of Uri.EscapeUriString.
Not exactly right, according to the LSL docs, but similar enough, I hope.
Fixes Mantis #3825.
2009-06-21 19:06:19 +00:00
Melanie Thielker 2c3a1995fc Publish a method on ICompiler to generate the CIL assembly path
Cause group deeding to apply next owner perms
2009-06-21 18:38:12 +00:00
Melanie Thielker 034de5ecd6 Properly reset a vehicle's status to VEHICLE_TYPE_NONE when requested 2009-06-19 22:32:02 +00:00
Melanie Thielker e4d26d7bfa When a shared module hooks OnClientClosed, it has no way of finding
out which client connection has closed. So, in multi-region sims, things
can get messy fast.
This introduces a second parameters, which is a Scene object ref. Minor
adjustments to custom modules may be required due to this change.
2009-06-19 20:46:17 +00:00
Dahlia Trimble 19b52d13e2 Thanks cmickeyb for a patch that checks for null assets in Cenome asset cache - Mantis #3819 2009-06-19 17:08:23 +00:00
Sean Dague dfd4e78fc0 From: Rob Smart <SMARTROB@uk.ibm.com>
Makes an avatars personal voice indicator work with Freeswitch (though not other avatars indicators)
2009-06-19 12:21:33 +00:00
Sean Dague 1adeb8ad77 From: Chris Yeoh <yeohc@au1.ibm.com>
This patch ensures that the touch positions are set during touch_end
events (currently only working for touch_start and touch events).
2009-06-19 12:21:20 +00:00
Sean Dague fa54ef5030 more type clean fixes for mono 2.4.2 2009-06-19 00:01:50 +00:00
Sean Dague 96f3001bfb mono 2.4.2 seems a little more type strict, fix some sqlite tests to pass 2009-06-18 23:59:21 +00:00
Dahlia Trimble 00d042f3d1 Thanks Michelle Argus for Mantis #0003742: Terrain editor - Flatten tool lowers Land 2009-06-18 23:02:12 +00:00
MW 2755f6b891 Applied patch from Mantis #3817, which fixes a error when using MSSQL. I don't use MSSQL so couldn't test this myself. But there was certainly duplicated instructions in these files...which this patch fixes. Thanks Grumly57 2009-06-18 20:18:47 +00:00
MW 417e3ee1d7 Applied patch from Mantis #3736 , which should stop the userserver crashing when a SL viewer version 1.23 logs in. Thanks StrawberryFride 2009-06-18 20:01:37 +00:00
Arthur Valadares f243dddc04 * Corrected CAPS namespaces
* "luke, use the sed"
2009-06-18 14:33:35 +00:00
diva 913bc3bdb3 Moved OpenSim/Framework/Communications/Capabilities up to OpenSim/Framework/Capabilities. Didn't change the namespace because VC# is not helping, and this would imply manually changing more than 50 files. So the namespace is still OpenSim.Framework.Communications.Capabilities, to be cleaned up later by someone with more energy. 2009-06-18 00:48:39 +00:00
Melanie Thielker 8aaeec598e Fix an uninitialized data block. Thanks, jhurliman 2009-06-17 23:46:13 +00:00
Melanie Thielker 3ee599b900 Add the missing resource files for MSSQL
Mantis #3800
2009-06-17 14:54:25 +00:00
diva ce7de3581c Implementation of a simple authentication service + in connector in route to making HGInventory (client access) work in standalone again. This is the refactoring of what was/is there, but done in the new model. Not complete yet, but key authentication works. It should be enough to make HGInventory work again soon. 2009-06-17 03:52:39 +00:00
diva e1fd76ace6 Moving these nice HG connectors to their homes. 2009-06-15 23:29:00 +00:00
diva 6cb7ecd99c Renamed two of the in connector modules, to make things consistent. 2009-06-15 00:29:37 +00:00
diva 54d44e370b Removing the OpenSim.SimulatorServices project. All of those region modules are now in CoreModules/ServiceConnectorsIn, where they belong. 2009-06-15 00:17:17 +00:00
diva 380f59d0ff Factoring out "land_data" / RequestLandData that was hanging off of IGridServices, erroneously. Not sure when this is used, but now it is implemented in the new model of service connectors. Hopefully it works. 2009-06-14 23:00:23 +00:00
Melanie Thielker 664dd58cd9 Fixes Mantis #3793 . Committing thomax/Snoopy's patch to allow deeding of objects, with changes:
- Set OwnerID = GroupID for deeded objects.
- Close a security loophole that would have allowed a user with deed rights in a group to deed ANY object to that group, even if it's not owned by them and/or not set to that group
- Set LastOwnerID correctly. Handle objects vs. prims correctly.
2009-06-14 21:44:34 +00:00
Jeff Ames 8d0eb3307f Update svn properties. 2009-06-14 21:37:50 +00:00
diva 6abffedab5 Renamed Region/CoreModules/ServiceConnectors to Region/CoreModules/ServiceConnectorsOut. No functional changes. 2009-06-14 19:44:56 +00:00
Charles Krinke 8d24168bef Thank you kindly, M1sha, for a patch that improves the treePopulator module:
(a) Implements the ICommandableModule interface to clean up the user interface
(b) Uses a specification for a 'copse' (collected group of trees) which permits via an xml file: Tree type; Tree Line (high and low), Seed point; Radius of Copse; Number of required trees; Initial size of seeded tree; maximum size of seeded tree; growth rate; freeze growth state
(c) Multiple Copse may be defined for a region
(d) Growth on individual copse may be frozen or restarted, or all growth disabled/enabled
(e) Copse definitions are persistant, they are reloaded from the trees present on a region restart
(f) All trees in a copse may be removed and the copse definition deleted in one command
2009-06-14 16:32:50 +00:00
diva a0b68178b8 Bug fix in remote neighbour connector. 2009-06-14 16:26:14 +00:00
diva 9ad33546ca And this one too... 2009-06-14 15:45:28 +00:00
diva 6b59d9b403 Oops. Forgot to add this file. 2009-06-14 15:37:50 +00:00
diva 7a9c85526c Pulled out HelloNeighbour into its own service, INeighbourService, which may get more functions as we go along. It's a very simple service and service connectors, and it served primarily to establish the design of services that dependent on Scenes and that must always have a local connector. More refactoring coming, as this showed how to do it right. 2009-06-14 15:35:09 +00:00
Justin Clarke Casey 9f2ddfd167 * Temporarily resolve another problem in http://opensimulator.org/mantis/view.php?id=3741 by disabling the loading of OAR creation information 2009-06-12 20:00:26 +00:00
Justin Clarke Casey f9782a1085 * minor: removing some logging stuff accidentally left in on the last commit 2009-06-12 15:45:38 +00:00
Justin Clarke Casey 45342067f5 * Move standalone login setup in LLStandaloneLoginmodule to RegionLoaded() from AddRegion()
* This is necessary to avoid a dependency problem where LLStandaloneLoginModule references IInventoryService before the LocalInventoryServiceConnector is registered
* Correct some copypasta log messages in LocalInventoryServiceConnector
2009-06-12 15:41:53 +00:00
Mike Mazur e6e88ac126 Give m_test* methods more reasonable names
Changing the names of these methods because they were being picked up by
nunit as tests even though they were marked private. Naming them Check*
after the original Test*.
2009-06-12 15:00:08 +00:00
Justin Clarke Casey 3b4151b042 * remove long unused interregion optional module code 2009-06-12 14:37:56 +00:00
Justin Clarke Casey cb6baacc31 * minor: remove one mono warning 2009-06-12 14:29:42 +00:00
Justin Clarke Casey 874df490fb * fix build break: sigh, must remember to build before committing 2009-06-12 14:23:31 +00:00
Justin Clarke Casey 4e526778b7 * minor: make control file loading code consistent 2009-06-12 14:18:01 +00:00
Justin Clarke Casey 15b8641bef * minor: if OAR saving receives assets after timeout, just print warning, don't accidentally go on to process them 2009-06-12 14:00:50 +00:00
Justin Clarke Casey 86043c431f * minor: remove warning from unused field 2009-06-12 13:37:08 +00:00
Arthur Valadares d4ed7b03af * Fixed a few more async calls. Still not uncommented, some asserts still failing 2009-06-11 20:50:23 +00:00
diva 2afd733229 Fixes mantis #3803. Thanks jhurliman. 2009-06-11 20:27:13 +00:00
diva 6c1d6283e6 Small improvement in the IAR tests, but these tests are still showing random behavior, so they are still commented out. 2009-06-11 19:12:20 +00:00
Arthur Valadares c13f3649d2 * Reinstating UserProfileCacheServiceTests. One test still fails (TestUpdateFolder) 2009-06-11 18:27:12 +00:00
diva 57c4b69916 Changed the inventory service so that is uses exactly one DB plugin, not many. The composition of plugins can be done at the service and connector levels.
This fixes the unit tests that were failing yesterday, but I'm not committing those yet, because I'm seeing 2 of those tests having pass and fail outcomes randomly which suggests that the tests are buggy.
2009-06-11 13:46:44 +00:00
diva 156604e28e InterServiceInventoryService references *almost* completely removed from the simulator. Only a couple left, not important. Also updated the login tests -- Justin, this time I was able to fix this by myself :) 2009-06-11 03:00:25 +00:00
diva 6ddf70b128 Bug fix for creating users in standalone: the newly-created root folder was not being set in the cached profile. I suspect this bug has been around for a while. 2009-06-10 20:31:02 +00:00
diva 59c1796353 Small bug fix in HG. 2009-06-10 18:02:49 +00:00
Charles Krinke 831264fc98 Thank you kindly, BlueWall, for a patch that solves:
SQLite error on creating user.
2009-06-10 17:53:06 +00:00
diva 6242b01ac8 Removing the default reading of AssetCaching on all cache modules. 2009-06-10 16:48:26 +00:00
Melanie Thielker b465dd7eb3 Reverse the default setting in Flotsam Asset Cache. Nothing should be the default 2009-06-10 15:36:44 +00:00
diva 1874c635ea Commenting the IAR tests for now until we understand how to set up things in this new inventory model. 2009-06-10 15:18:07 +00:00
diva a31df0b814 duh. wrong variable name in SceneSetup. 2009-06-10 14:15:50 +00:00
diva b3ad2941ca The previous commit was still wrong. 2009-06-10 13:49:13 +00:00
diva 8dc9f18e7c Attempt at fixing the inventory archiver tests. 2009-06-10 13:46:38 +00:00
diva f6c6e3e5f2 Attempt at disabling the inventory unit tests, so I can figure out how to fix them. The test setup is broken. 2009-06-10 13:33:26 +00:00
diva 0f367bd7bb Heart surgery no.2: the inventory service hooks.
Several improvements in the connectors themselves.
Several improvements in configurations.
Needed to add a hack in IUserService and UserManagerBase, to be removed when that service is refactored.
2009-06-10 13:18:32 +00:00
Dr Scofield 8045ed28ec From: Alan Webb <alan_webb@us.ibm.com>
Eat collision errors --- NOTE: this fix might be naive, it seems to
  have helped us getting to 81 avatars (whereas we'd crash with 20
  before), but it sure would benefit from some check-over by a person
  skilled in the art of ODE physics.
2009-06-10 11:48:13 +00:00
Dr Scofield 6eb808f665 persists Estate.PublicAccess settings across reboots [re #552] 2009-06-10 11:29:09 +00:00
Dr Scofield 854f4f4896 makes voice setting persistent [re #552] 2009-06-10 11:05:44 +00:00
Dr Scofield 783218ec89 adding lastlogin information to admin_exists_user: will be 0 if the
user does not exist or hasn't logged in yet.
2009-06-10 10:59:56 +00:00
Jeff Ames a23d64dec1 Formatting cleanup. 2009-06-10 04:28:56 +00:00
diva ca52c3ef26 Letting the Flotsam cache be enabled even when [AssetCache] section is missing. Thank you mcortez! 2009-06-09 20:20:30 +00:00
Jeff Ames a7fcacf8f3 Formatting cleanup. Ignore some generated files. 2009-06-09 18:07:35 +00:00
Jeff Ames 135ff63c3d Update svn properties. 2009-06-09 17:48:22 +00:00
Dr Scofield 28324e5174 ARGH!!!! note to self: ALWAYS use String.IsNullOrEmpty(...)!
this patch fixes RemoteAdminPlugin gratuitously updating the user
password even if no update was intended.
2009-06-09 12:11:22 +00:00
Melanie Thielker 9c726fb178 Thank you Snoopy, for a patch that implements group permissions.
Applied with changes:
- removed spammy debug message
- corrected tab formatting
2009-06-09 08:15:34 +00:00
Dr Scofield 759636f37e From: Alan Webb <alan_webb@us.ibm.com>
This change addresses two issues:

  [1] It adds a flag field to the blendface call which allows the
      caller to indicate whether or not the generated asset is
      temporary, and whether or not the asset being replaced should
      be explicitly retired fromt the memory cache. The decimal
      values correspond to:
      0 - Permanent asset, do not expire old asset
      1 - Permanent asset, expire old asset
      2 - Temporary asset, do not expire old asset
      3 - Temporary asset, expire old asset
      '3' corresponds to the default behavior seen today, and is
          the continued behavior of the non-blendface calls.
  [2] The dynamic texture routines are highly-asynchronous and can
      be scheduled simultaneously on a multi-core machine. The nature
      of the texture management interfaece is such that updates may
      be lost, and the nature of asynchornous operation means that
      they may be processed out of order. A lock has been added to
      ensure that updates are at least atomic. No attempt has been
      made to enforce ordering. The lock applies to the SceneObjectPart
      being updated and is held for the lifetime of the TextureEntry
      used to carry texture updates (the one instance carries all
      faces supported by the prim).

   Users of these services should remember that the dynamic texture
   call is asynchronous and control will be returned *before* the
   texture update has actually occurred. As a result, a isubsequent
   GetTexture call may not return the expected asset id. A script
   must wait for the corresponding TEXTURE_CHANGED event before
   retrieving any texture information.
2009-06-09 06:39:27 +00:00
Melanie Thielker 0356fef9ab Updating the flotsam asset cache. Thank you, mcortez!
Fixes Mantis #3784
2009-06-08 20:09:49 +00:00
diva b87f982a7e Bug fix. Adding the asset to the cache after a DB get. 2009-06-08 19:35:36 +00:00
diva b43fc318fb That didn't quite work. Trying this instead -- prompt given in the cmd line. 2009-06-08 17:50:17 +00:00
diva 71c8346f78 Making the prompt configurable in the server shell. Default is "Server". 2009-06-08 17:34:42 +00:00
diva 398d321f15 IInentoryDataPlugins were missing. 2009-06-08 17:22:23 +00:00
diva 9216f4b7c2 First draft of the inventory service IN connector. Probably won't work yet. But everything of inventory service is now checked in, first draft. 2009-06-08 03:16:55 +00:00
diva 16d5003274 Added more functions to IInventoryService. Unsure about whether all of these are really necessary. 2009-06-08 03:09:24 +00:00
diva 1ad237a8a7 First draft of inventory service connectors, and service implementation. No handlers yet, this is just the OUT part for now. It's not active and nothing in the simulator uses this yet. Just checking it in to start sharing with others. There are a couple of interesting software design points that could use other devs opinions.
Hopefully I added all needed files.
2009-06-07 19:00:55 +00:00
Mike Mazur cda6b24668 Skip lone ident statments or for-loop assignments
SL's LSL supports lone idents:

    integer x;
    x;

as well as lone idents in for-loop assignments:

    for (x; x < 10; x++) { ... }

while those are errors in C# (MONO at least). This patch skips lone
idents in such places.

Fixes Mantis #3042.
2009-06-07 10:22:55 +00:00
Mike Mazur 48bc2f3a42 Allow empty assignment in for-loop
For loops with no assignment are no longer syntax errors. For example,
this is now valid:

    for ( ; i < 10; i++) { ... }

Corresponding changes to lsl.{lexer,parser} in r99 in opensim-libs.

Fixes Mantis #2501. Fixes Mantis #2884.
2009-06-07 10:22:41 +00:00
lbsa71 6267f939c5 * Reverting the test restructuring as, on second thought, this is not at all how the tests are structured.
(pt1)
2009-06-07 08:50:43 +00:00
Mike Mazur d25b9151c8 Rename private TestllAngleBetween method
It seems overloading the method TestllAngleBetween confused nunit a bit
and caused it to try running the private TestllAngleBetween method. The
method's access modified prevented that from happening, and nunit
complained.
2009-06-07 08:32:07 +00:00
Melanie Thielker 5139160ce4 Correct an error where the config file name was always considered to be a
local file. This caused llHttpRequest and llSetInventoryPermsMask to fail
on regions that load their config from a web server
2009-06-06 16:39:28 +00:00
Dahlia Trimble f94e192b86 some code cleanup
test commit with cygwin svn
2009-06-06 08:41:27 +00:00
Justin Clarke Casey 4234e49445 * minor: tiny tweak just to trigger another panda build 2009-06-05 19:53:24 +00:00
Justin Clarke Casey ccbe049287 * A bug fix for the last mantis 3741 bugfix
* Hopefully now, the nre should not occur and the lock should be correctly unlocked during the initial save oar process
2009-06-05 19:34:35 +00:00
Justin Clarke Casey fbd0f5491b * A further fix for mantis 3641 (oar saves do not complete)
* For some reason, if a null was recieved (indicating a missing asset), the code had stopped passing that on to the waiting lock, resulting in a perpetual freeze
* This change passes the null on correctly
* Many thanks to thomax for being insistent in presenting his analysis of the problem :)
2009-06-05 19:20:31 +00:00
Justin Clarke Casey c20f31beff * refactor: split out part xml writing in SceneObjectSerializer 2009-06-05 18:44:44 +00:00
Justin Clarke Casey 87097f2484 * Fix unit tests so that they correctly handle 404 missing asset response
* I didn't think there were tests in this area - my bad
2009-06-05 17:03:44 +00:00
Justin Clarke Casey 593942b195 * Fix problem where known missing assets would stop save oar ever completing
* Issue was that region server was silently dropping an XmlException caused by trying to deserialize the blank asset service response
* So make asset service return http status NOT FOUND rather than OK in accordance with REST
* and interpret this correctly in the async response so that a null object is sent back
* This means that this fix won't be active until both region simulator and server reach this revision
2009-06-05 16:14:22 +00:00
Justin Clarke Casey bfea077508 * Add oar saving timeout
* If an oar save fails to get responses to all asset requests to the asset service then timeout after 60 seconds
* Timeout executes abort, since missing assets in an OAR seems bad
* This means that oar saves won't permanently hang and instead can be retried if something goes wrong with the asset service
* This is not a solution to mantis 3714.  Hopefully a fix will be along shortly since I can now consistently reproduce that problem
2009-06-05 13:48:43 +00:00
Melanie Thielker 9f932a4205 Thank you, thomax, for a patch to provide finer-grained access control to
scripting.
Fixes Mantis #2862
2009-06-05 09:47:42 +00:00
lbsa71 fd5e45733c * Restructured Scenes Tests to follow (what I conceive of as being) current directory standards. (pt 1 - thank you, svn. not.) 2009-06-05 06:22:08 +00:00
Melanie Thielker f992db6807 Committing mcortez's FlotsamAssetCache after several positive reviews.
Thank you, mcortez!
2009-06-05 04:58:55 +00:00
diva ffac6f94f0 Changed a comment to reflect changes in config. 2009-06-04 18:41:19 +00:00
Jeff Ames c6cef4bad5 Comment out unused variables / private fields to avoid compiler warnings. 2009-06-04 03:58:04 +00:00
Jeff Ames 2a855a6457 Comment out unused private functions to avoid compiler warnings. 2009-06-04 01:37:31 +00:00
Jeff Ames 1e3f378c57 Fix comparison of UUID with null. 2009-06-04 01:26:31 +00:00
Jeff Ames 5f923f0632 Add copyright headers. 2009-06-04 01:09:18 +00:00
Jeff Ames 007016ecd2 Update svn properties. 2009-06-04 00:51:02 +00:00
Melanie Thielker 14bb372bb0 Committing the skeleton of the authentication service 2009-06-03 20:14:41 +00:00
Melanie Thielker 18cc7ffa44 Make AssetMetadata [Serializable] to help in binary caching 2009-06-03 19:54:19 +00:00
Melanie Thielker 6e494e5de5 Committing the partial refactor of authentication services. No user functionlity
will eat your babies, etc
2009-06-03 19:49:26 +00:00
lbsa71 9b619043ce * Making sure we fail a bit earlier if we have no AssetService 2009-06-03 17:29:21 +00:00
Dr Scofield 717fd3b5b9 From: Chris Yeoh <yeohc@au1.ibm.com>
This patch adds oar file date and time (UTC) meta data to an oar file
when it is created.  It also adds a unique ID, though this id does not
in anyway identify the machine that the oar file was created on.

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

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

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

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

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

btw I had a chat with justincc about this a few weeks ago since he
wrote the oar file import/export and he sounded happy to accept
something that included date/time information but didn't want anything
that would silently leak private information like machine names.
2009-06-03 12:48:04 +00:00
Dr Scofield 074b66ddcf From: Chris Yeoh <yeohc@au1.ibm.com>
- fixes wild swings in memory usage related to usage of GetDrawStringSize()

  We've been seeing wild swings in memory usage and a large chunk of
  memory leak. From analysing this it's pretty clear that the mono
  garbage collector is rather buggy! When exercised heavily it looks
  like it frees more than its meant to resulting in crashes.

  GetDrawStringSize() measures the size in pixels of text. To do this
  memory for an image is allocated and used to call the GDI text
  measure functions.  Although no reference to the temporary memory
  for the measuring is kept, it takes quite a while for the mono
  garbage collector to clean up - so if lots calls to
  GetDrawStringSize() are made at once there can be a spike in memory
  usage. If the garbage collector is not fast enough then the GDI
  layer runs out of memory. It also looks like the garbage collector
  is not always reclaiming all of the memory.

  I've attached an OpenSim patch which works around the garbage collector
  issues. Instead of dynamically allocating memory for measuring
  text sizes, it serialises (on a per region basis) access to a single
  block of memory. The effect of this is to be nicer to the garbage
  collector as it has a lot less work to do, at the cost of some
  theoretical loss in performance (nothing noticeable with our tests
  which hit it pretty hard).

  OpenSim still does leak memory slowly, but it is a lot more stable
  with this patch. I suspect that either the garbage collector misses
  bits of freed memory or the GDI/cairo layer leaks a bit each time a
  texture is created. Thats going to be a lot harder to hunt down, but
  for reference if someone has OpenSim running on Windows it would be
  interesting to see if it has the same problem as it would tell us if
  its a mono/GDI problem or an OpenSim problem.
2009-06-03 12:39:44 +00:00
Dr Scofield 25a0a56570 From: Alan Webb <alan_webb@us.ibm.com>
Modify dynamic texture handling so that an explicitly targetted
  face is not scheduled for immediate expiration. The requirement
  for precaching explicitly requires these assets to persist. They
  do however remain temporary.

  This approach leaves the legacy mode of operation (ALL_SIDES)
  unchanged in this respect.
2009-06-03 12:21:14 +00:00
Dahlia Trimble 9e3b592fa3 Thank you Imaze Rhiano for a patch that implements Cenome Memory Asset Cache (Mantis #3759)
See the files: bin/config-include/GridCommon.ini.example and bin/config-include/StandaloneCommon.ini.example to configure and enable this caching method.
2009-06-03 08:41:08 +00:00
Dahlia Trimble b64c484d26 Thanks aduffy70 for Mantis #3762: A patch to fix llGround, llGroundNormal, and llGroundSlope 2009-06-03 05:31:53 +00:00
Dahlia Trimble 528db43326 revert r9765 due to too many errors on some compilers. Affects Mantis #3759 2009-06-03 02:03:11 +00:00
Dahlia Trimble e978edc264 add body to an empty getter/setter 2009-06-03 01:27:07 +00:00
Dahlia Trimble 23e0c84f51 fix a int[] declaration 2009-06-03 01:06:00 +00:00
Dahlia Trimble b38be1a7fd Thank you Imaze Rhiano for a patch that implements Cenome Memory Asset Cache (Mantis #3759)
See the files: bin/config-include/GridCommon.ini.example and bin/config-include/StandaloneCommon.ini.example to configure and enable this caching method.
2009-06-02 22:42:47 +00:00
Charles Krinke 23bf1bf6e0 Thank you kindly, MattSetzer, for a patch that solves a Mantis:
This appears to be due to the fact that no asset cache has been 
configured, possibly as a result of the configuration changes that 
have been made recently. I've attached a patch to display a message 
to that effect rather than throwing an error.
2009-06-02 21:13:29 +00:00
Charles Krinke 93da1c2e94 Thank you kindly, jonc, for a patch that:
Grid mode only. Serialization and deserialization of 
byte representing Access Level is failing unless byte 
is ToString'd first on Grid Server.
2009-06-02 20:56:27 +00:00
lbsa71 6f37fd8399 * Pried apart the ODE tests. This fixes mantis #3212 2009-06-02 18:12:34 +00:00
Justin Clarke Casey 5c42143a7b * Add simple original xml serialization test 2009-06-02 15:24:29 +00:00
Melanie Thielker aec5dc677d Explicitly set the changed status of the prim groups affected in a delink
Mantis #2484
2009-06-02 08:19:32 +00:00
Arthur Valadares 63a499c569 * Allow for lowercase searching in standalone mode, when case sensitive
search fails. This allows compability to libOMV bots, that always lowercase
region names.
* Uncertain if this should/could propagate to grids
2009-06-01 20:51:40 +00:00
lbsa71 8e011ecbbb * Removed some commented-out code 2009-06-01 20:17:10 +00:00
Jeff Ames c6f616049c Only save crashes to disk if save_crashes in OpenSim.ini is true (false by default). 2009-06-01 18:45:36 +00:00
Arthur Valadares eb330f71be * Making silent logoff of old hung sessions for new connections default for
StandAlone users. Not touching grid.
2009-06-01 18:34:40 +00:00
Justin Clarke Casey 412295ccde * Add simple original sog xml serialization test 2009-06-01 18:03:51 +00:00
Justin Clarke Casey f6badc528b * minor: change the name of one serialization method to match its counterpart 2009-06-01 17:38:11 +00:00
Justin Clarke Casey ecbeb5cea1 * Fix race condition in save oar 2009-06-01 16:00:46 +00:00
MW 60c2edce68 Fixed AvatarCreationModule (I think) 2009-06-01 11:41:03 +00:00
MW c4d5a6dfb4 trying to get panda to be able to read the AvatarCreationModule 2009-06-01 11:36:58 +00:00
MW ef070ec1eb part 1 of trying to get panda to be able to read the AvatarCreationModule 2009-06-01 11:34:10 +00:00
MW a71d9c95cf Some changes to the AvatarCreationModule to reduce the number of database reads/writes. Still requires more work in this area. 2009-06-01 11:16:07 +00:00
Jeff Ames 840de6c036 Minor: Change OpenSim to OpenSimulator in older copyright headers and LICENSE.txt. 2009-06-01 06:37:14 +00:00
Dahlia Trimble be41a2cb7e reduce verbosity of sculpt map cache messages to reporting cache failures only 2009-05-31 23:57:52 +00:00
Charles Krinke 2d37ff6fb2 Thank you kindly, StrawberryFride for a patch that:
Added in some key code to read properties from MSSQL for user profiles 
which fixes issues of users having trouble editing estate settings on a 
grid where estate managers are not god, and fixes the option of enabling 
grid god functionality on MSSQL grids.

I have applied this to trunk only. I need someone else to examine and apply
to 0.6.5-Post-Fixes, or give me some direction, please.
2009-05-31 20:53:59 +00:00
Jeff Ames 35b450d41d Add copyright headers, formatting cleanup, ignore some generated files. 2009-05-31 18:35:00 +00:00
Jeff Ames db2c4ab94c Update svn properties. 2009-05-31 16:26:18 +00:00
Adam Frisby dc15190365 * Adds MRM scripting commands, World.Objects.Create(Vector3 position) and World.Objects.Create(Vector3 position, Quaternion rotation). These rez a 'default box' object at the specified coordinates, and return the associated IObject. 2009-05-31 12:53:05 +00:00
Mike Mazur 07a94fdf89 Fix IRCd init check for config section
The IRCStackModule used Nini.Config.ConfigCollection.Contains() to
determine whether the "IRCd" section was present in the config. This
ConfigCollection, however, stores an ArrayList of IConfig objects, not
strings, so calling Contains("IRCd") always returns false since "IRCd"
is a string, not an IConfig object.
2009-05-31 11:50:42 +00:00
diva 4927bc60a2 Slashing trailing slashes.
https://lists.berlios.de/pipermail/opensim-dev/2009-May/006673.html
2009-05-30 16:30:53 +00:00
diva 822c2176df Forgot to add this to my last commit 2 days ago. Async in the HGBroker too. 2009-05-30 16:22:15 +00:00
MW e3e7e73db3 Added option (on my default) to the clone avatar function so that the clothes and attachments that the target avatar is wearing, to begin with, are removed. So the end result isn't a merger of those clothes/attachments and the ones the template avatar is wearing.
Added IPAddress ListenIPAddress property to BaseHttpServer so that the listening/binding IP can be set.
2009-05-30 16:13:40 +00:00
MW 94f4953e31 Made it so ( by default) the Clone avatar function, propagates the permissions on the cloned items. This needs further testing to make sure all permissions are set correctly. 2009-05-30 15:20:39 +00:00
MW ea02a24161 a few small changes to AvatarCreationModule 2009-05-30 13:39:07 +00:00
MW 69817b4d6a Added a AvatarCreationModule to the user server. This handles the "cloning" of a existing avatar's inventory to another avatar's inventory (the base method will also create the inventory for a new avatar if the avatar doesn't alreayd have any inventory).
The code also sets the target avatar as wearing whatever the template avatar was wearing (including attachments). The idea is to allow the use of this to give new avatars a more interesting avatar (and inventory set) than the current default. 
I have include a console command that will clone the inventory from one existing user (template avatar) to another existing avatar (target avatar).  The format of the command is : "clone avatar <templateAvatarFirstName> <templateAvatarLastName> <targetAvatarFirstName> <targetAvatarLastName>" (to use this console command on new accounts, the "create user" command will need to be used first)
While the code was designed for hooking up to a remote call from a web interface, I have left the hookup code out of this commit, as I believe most use cases will want to handle it differently.
Also added a "trusted handler" to the inventory server to allow the user server to create new folders in a user's inventory. 
All this is in the old UGAIM servers so will need porting to the new servers.
2009-05-30 12:51:28 +00:00
Adam Frisby e70910c3e3 * Tweaks to /WHO listings. 2009-05-30 09:37:11 +00:00
Adam Frisby 449e167dce * You are likely to be eaten by a grue.
* Enable with [IRCd] Enabled=true (will listen on port 6666).
2009-05-30 07:02:38 +00:00
Adam Frisby 1bb98a1eb0 * More Tweaks 2009-05-30 04:07:58 +00:00
Adam Frisby 29bc2962ad * More IRCClientView fiddling. Now implements IClientAPI & IClientCore. 2009-05-30 03:53:04 +00:00
Adam Frisby ac80b6539f * May partially implement a C# IRCd & IRCClientStack. 2009-05-30 03:18:09 +00:00
Adam Frisby c30b5ee014 * Adds World.Audio.* to MRM
* This includes methods such as PlaySound which take a Position as an argument, allowing you to trigger sounds arbitrarily across the scene without needing a parent object in the position.
2009-05-29 23:49:48 +00:00
Adam Frisby 433ee75775 * Protip: When you click 'make public' in resharper, note to save before committing. 2009-05-29 22:48:34 +00:00
Adam Frisby 78bec42225 * Implements Sound on Objects for IObject in MRM
* Method: IObject.Sound.Play(UUID sound, double volume)
* More feature-packed API to come soon. (I want a World.Sound with arbitrary positioning)
2009-05-29 22:44:49 +00:00
Arthur Valadares d0084f08f2 * Allows standalone region users to skip the "You must wait 5 minutes to log again" message and
allow the region to kick the old user and log the new one without reporting any failure.
Default is still to show message and fail login
2009-05-29 22:38:18 +00:00
Arthur Valadares 8545621d9b * Bug fix: Fixes an exception when Scene.RemoveClient is called to remove on a
non-existing ScenePresence avatar. Also removed trailing white spaces.
2009-05-29 21:12:55 +00:00
Justin Clarke Casey 95643971be * refactor: little tweaks to trigger another build 2009-05-29 21:10:17 +00:00
Justin Clarke Casey 4aad6a07ff * refactor: Remove redundent prim id attribute on Scene.AddSceneObject() 2009-05-29 21:01:18 +00:00
Justin Clarke Casey 6eb191c87b * Add save xml2 serialization test 2009-05-29 20:20:47 +00:00
Justin Clarke Casey 9021bb231c * minor: move common serialization test code into fixture setup 2009-05-29 16:27:43 +00:00
Justin Clarke Casey fa04937a82 * Add xml2 load test 2009-05-29 16:11:33 +00:00
Dahlia Trimble 179724b4fc some clean up of sculpt map caching code
remove a redundant debug message
2009-05-29 08:57:10 +00:00
Dahlia Trimble 05cbf0b502 reinstate a hopefully more robust experimental decoded sculpt map caching scheme 2009-05-29 06:50:15 +00:00
Dahlia Trimble 42fa7cf989 plumbing for future sculpt map caching 2009-05-29 05:42:06 +00:00
Dahlia Trimble 1609e7eac0 disable sculpt map caching until a better method of avoiding asset requests can be found 2009-05-29 05:11:50 +00:00
Dahlia Trimble 9493de7f4e null test for texture assets when using cached sculpt map
addresses mantis #3735
2009-05-29 04:29:55 +00:00
Dahlia Trimble db4f8d1298 Experimental decoded sculpt map caching 2009-05-29 02:46:35 +00:00
diva 1e9cb2f8fc Making the delegate handlers async in async Get, to make things consistent. Them being synchronous in certain cases (asset in cache, for example) may account for slowness reported by folks in osgrid when they have the cache module on. Turns out that some of the provided handlers do non-trivial processing (the ones coming from J2KImage, for example), which means that the several asset requests that hit the cache end up being synchronous. The jury is still out on this. 2009-05-29 01:26:53 +00:00
diva 0094556d04 Instrumenting GlynnTuckerCache to find out the hit rate. 2009-05-28 21:04:10 +00:00
Adam Frisby 5db649538a * Tweak to above 2009-05-28 19:20:49 +00:00
Adam Frisby 2feb218817 * Makes grid announcements more prominent. 2009-05-28 19:19:10 +00:00
Adam Frisby 4b151b83a8 * Oops. Forgot Initialise needs tweaking between IRegionModule and ISharedRegionModule. 2009-05-28 19:03:27 +00:00
Adam Frisby 561d6c1cdc * Converts recently added OGSRadmin to IRegionModule because I cant be arsed figuring out Mono.Addins. 2009-05-28 18:59:18 +00:00
Adam Frisby 940b5567a0 * Adds OGS RAdmin class. Adds primitive remote admin functions for gridservers to perform on region servers. Used for grid-wide announcements, etc. 2009-05-28 18:27:08 +00:00
Adam Frisby a7b49084ad * May make the terrain flatten brush behave like Second Life(tm)'s client expects. May break everything. You decide! 2009-05-28 15:27:15 +00:00
diva 275e53b126 This may bring the missing texture back. 2009-05-28 15:05:00 +00:00
lbsa71 0787967f59 * So, giving up on my efforts to de-duplicate the asset handlers. I'll just service commit my current state, then start over and this time concentrating only on the new handlers.
* Fixed some erroneous refs in Tests.Common
2009-05-27 18:27:28 +00:00
Dr Scofield 901fdca13b From: Chris Yeoh <cyeoh@au1.ibm.com>
The attached patch implements llPassTouches. It has been added
to the export/import XML along with the flag for AllowedInventoryDrop.

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

The other data backends need updating as well.
2009-05-27 18:01:06 +00:00
Dr Scofield 9e37e291b0 making TarArchiveReader more resilient when faced with OARs created by
ancient tars.
2009-05-27 17:34:06 +00:00
diva e0ef697402 Adding the GlynnTucker cache module as the default choice in .ini's.
Minor log message change in the module itself.
2009-05-27 16:11:23 +00:00
Jeff Ames a576cca59e Update svn properties. 2009-05-27 14:30:33 +00:00
Sean Dague 85e91ddb67 Revert "* Added IntegrationTest Attribute and tagged the ODETestClass"
This reverts commit 8f0096cc7b112fea8f69f391224911f624482747.

To get us back to compiling on fresh checkouts.
2009-05-27 12:53:29 +00:00
lbsa71 17f0a4be53 * Added IntegrationTest Attribute and tagged the ODETestClass 2009-05-27 12:36:58 +00:00
lbsa71 892406248a * Added OpenSim.Server.Handlers.Tests project
* Added AssetServerGetHandlerTests - not really wired up yet; more to come.
* Ignored some gens
2009-05-27 11:54:17 +00:00
diva 7ab1986bf0 Catching weirdnesses on resolving External EndPoint in agent transfers. Will probably need to do more aggressively. 2009-05-26 22:39:01 +00:00
diva ce5225e6dc Experimental alternative cache module implementation, using GlynnTucker.Cache.dll. 2009-05-26 21:24:18 +00:00
diva c061b4cb49 Changed the order of things in Scene creation. This piece of code is very jibbery, widely different results with slightly different orders. This particular order produces the best results in the UC Irvine sim in osgrid. But clearly there's something messed up here.
Addresses mantis #3707, mantis #3713, mantis #3686.
2009-05-26 16:45:30 +00:00
lbsa71 b773a3a02f * We have strand flavours.
* The version string is now reported as "OpenSim 0.6.5 (Dev)"
* This has to be administrated manually.
2009-05-26 16:18:41 +00:00
lbsa71 5d23ecebeb * Introduced GetVersionString so we can harness the whole thing.
* Introduced 'Flavour' to spice things up.
2009-05-26 16:01:06 +00:00
lbsa71 f76615a66d * slowly getting there... 2009-05-26 15:46:09 +00:00
lbsa71 1cfcace30f * Changed Version to property for great justice 2009-05-26 15:43:43 +00:00
lbsa71 bac1194391 * Added test to make sure version info is 27 chars long (still don't know exactly why it has to be that, though) 2009-05-26 15:35:55 +00:00
diva bc2a22fb4b Catching exceptions on Store, including timeout. Store may fail, for whatever reason, but it won't crash the sim.
Addresses mantis #3707, mantis #3713, mantis #3686.
2009-05-26 15:26:22 +00:00
diva c66ef94a7b Commented a log message related to users not found, because it floods the log when the sims have prims from foreign users. 2009-05-26 02:47:02 +00:00
diva 49804f67dc Restoring the initial CAP Url to exactly what it used to be before Adam's changes. Adam's code is still there, but commented, until we figure out what's going on. 2009-05-26 02:24:38 +00:00
Melanie Thielker 0b9076cd17 Revert a change I made to get a better URL because it failes under mono 2009-05-26 01:38:32 +00:00
Melanie Thielker 2f74a7e3a6 Couple of tweaks to the URL module: handle script reset gracefully and
stop crashing http server threads.
2009-05-26 01:27:22 +00:00
diva 6ff01c774e Addresses mantis #3718. 2009-05-26 01:05:40 +00:00
Adam Frisby 3fdafc53bd * Fiddles with some login network code to attempt to fix login bug. 2009-05-26 00:53:49 +00:00
diva 27e7f0fa35 Fixed a typo. 2009-05-25 23:33:56 +00:00
Melanie Thielker c7a2632500 Correct a minor typo 2009-05-25 21:15:14 +00:00
diva cb704ecde1 Beginning of refactoring RESTComms/LocalComms in the new style of services and connectors. This commit has the beginning of the In connector, not the Out. Nothing of this is finished yet, and it doesn't run. But it should compile ok. 2009-05-25 20:30:24 +00:00
Justin Clarke Casey 582c20b1c4 * reseparate inventory item creator id and creator uuid
* unfortunately, while the client requires uuids and we want to be able to have arbitrary string ids, these cannot be kept in sync
* I think the problems last time were due to a serialization change
* So the major inteface version has been bumped to take care of any lingering issues here.
* This means that region servers beyond this revision can only connect to similarly uptodate grid services, and vice versa
2009-05-25 19:54:47 +00:00
diva 896c206718 One more utility. Not used yet. 2009-05-25 19:20:27 +00:00
Justin Clarke Casey ca9432d110 * Display normal log information in the console's default foreground colour, for those of us with white backgrounds 2009-05-25 16:29:01 +00:00
Dr Scofield eaa89f5a03 oops: wrong "path" in addin.xml 2009-05-25 12:27:17 +00:00
lbsa71 ba360ede8b * Upped version number to 0.6.5 2009-05-25 11:43:56 +00:00
Dr Scofield c18c1f6c7c Revert "From: Chris Yeoh <cyeoh@au1.ibm.com>"
This reverts r9666. for some reason the mysql update does not work.
2009-05-25 11:32:31 +00:00
Dr Scofield 0bff818d39 From: Chris Yeoh <cyeoh@au1.ibm.com>
The attached patch implements llPassTouches. It has been added
to the export/import XML along with the flag for AllowedInventoryDrop.

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

The other data backends need updating as well.
2009-05-25 11:26:36 +00:00
Dr Scofield d4d9d8ed8f converting CapabilitiesModule to new region module scheme 2009-05-25 11:11:04 +00:00
Dr Scofield 7929970257 letting TestClient implement IClientCore as well to fix test case
failure due to new NAT code
2009-05-25 10:40:09 +00:00
Dr Scofield b840535622 dropping attendee list keeping from Concierge, relying on
Scene.GetAvatars() instead now. [test #487]
2009-05-25 09:32:44 +00:00
Adam Frisby a38285f7f9 * Attaches debug info to some DNS resolution code. 2009-05-25 06:46:41 +00:00
Jeff Ames d4957dd9be Update svn properties. 2009-05-25 01:59:50 +00:00
Adam Frisby 9023b93e2f * Disabled NAT translation support for a little while. 2009-05-25 01:12:28 +00:00
Melanie Thielker 4e64bf9360 Prevent group deeded objects from being returned by the group return option
unless the user has that permission through the group.
2009-05-24 17:29:40 +00:00
Melanie Thielker ca75c101ec Allow the perms module to inspect and modify the list of objects to return
for more fine-grained control
2009-05-24 17:20:47 +00:00
Melanie Thielker c028d0a3c1 Make group permissions control what a user can return. 2009-05-24 16:55:34 +00:00
Melanie Thielker f3f7d60367 Add a new permissions check for bulk object returns. 2009-05-24 16:11:35 +00:00
diva 006c2c2e8f Fixes map image on link-region (HG). 2009-05-24 02:09:20 +00:00
Adam Frisby 2cfe44f13e * Mono sucks. (Fixes crash due to Mono not implementing NetworkInformation.IPv4Mask aka Subnet masks) 2009-05-24 02:07:54 +00:00
Adam Frisby ac79ff8dc6 * Adds NAT routing support for MXP Asset Delivery. (This means MXP should be fully NAT compatible.) 2009-05-24 01:36:13 +00:00
diva fb6d314d4d This should make HG asset transfers work much better. It now uses HGUuidGatherer, which is a subclass of UuidGatherer. Hence, on-line HG asset transfers use exactly the same UUID collection code as save oar/xml. If it doesn't work, it's Justin's fault :D 2009-05-23 17:51:13 +00:00
Adam Frisby 70f6a2852e * Fixes [irritating] edge case in Util.GetLocalHost which could return an IPv6 address if no non-loopback IPv4 address can be found.
* Restores internal IPv6 support to NetworkUtil.*
* Fixes bad login unit tests.
2009-05-23 07:51:29 +00:00
Adam Frisby 6fe55a7ff8 * Disables internal IPv6 Support - causing issues. 2009-05-23 07:29:14 +00:00
Adam Frisby bb363d9aa4 * "Fixed" an issue with NAT Login Handler, apparently an IPv4Mask can be null on an IPv4 address. Go figure. (!?!) 2009-05-23 07:07:02 +00:00
Adam Frisby 6b312d9340 * Implements automatic loopback handling for standalone regions.
* This /should/ make OpenSim behave properly when hosting behind a NAT router and utilizing port forwarding (but the router doesn't support Loopback)
2009-05-23 06:29:08 +00:00
Adam Frisby e9ea959263 * Pipes IPEndPoint through all Login methods, including LLSD/OSD login paths. 2009-05-23 06:14:02 +00:00
Adam Frisby 31baeef469 * Pipes requestors IP address through all XmlRpcRequest delegates. This is needed to be able to 'NAT-wrap' the login sequence.
* If you have something using XmlRpc that isn't in core, change your method signature from:
   (XmlRpcRequest request)
to:
   (XmlRpcRequest request, IPEndPoint remoteClient)
2009-05-23 06:05:20 +00:00
Adam Frisby 3b1b3ac9bb * Breaks OpenSim.. err I mean.. adds NAT translation support to EnableSimulator EventQueue methods.
* NB: This may actually break logins on certain regions. Shake well before consuming.
2009-05-23 05:44:18 +00:00
Adam Frisby f8c569dc7c * NetworkUtil now handles an error case in a way which is easier to debug. 2009-05-23 05:18:37 +00:00
Adam Frisby 2d06135166 * Adds new NetworkUtil class, contains methods for handling IP resolution when located on the same subnet. (Eg, can be used to avoid NAT Loopback requirements if fully utilized.)
* Adds a few new network-related methods to Util.
2009-05-23 05:09:10 +00:00
Justin Clarke Casey a3145e4e5a * Reintroduce save iar test, which wasn't working because the asset service hadn't been manually post intiailized 2009-05-22 19:59:45 +00:00
diva 6d6d8445b9 Bug fix in HGAssetService. POSTs back home (standalone) should now work. 2009-05-22 18:02:49 +00:00
Dr Scofield 3b689e506f From: Alan Webb <alan_webb@us.ibm.com>
Changes to support client-side image pre-caching in the region. This
  commit adds an additional calling sequence to the DynamicTexture data
  and URL calls. The new interface allows a dynamic image to be loaded
  into a specific object face (rather than the mandatory ALL_SIDES
  supported today.
  This is in part fulfilment of ticket #458.
2009-05-22 16:22:49 +00:00
Dr Scofield 6626937e9a From: Alan Webb <alan_webb@us.ibm.com>
- Fix typographical error in RPC response.
- Remove obsolete commentary.
2009-05-22 15:21:49 +00:00
Dr Scofield 55442f3644 From: Alan Webb <alan_webb@us.ibm.com>
RequestUserInventory is supposed to drive a supplied callback
  when it completes. In fact, it fails to do so if the user's
  inventory does not exist (e.g. the inventory database is
  unavailable for some reason), and the requestor is left
  sleeping forever.
  The code has been modified to return empty lists via the
  callback as an accurate reflection of what is there: nothing.
2009-05-22 15:18:41 +00:00
Dr Scofield 1d02636c27 cleaning out warnings.
NOTE: we currently have a gazillion warnings caused stuff flagged as
"obsolete" (OGS1 stuff) --- what's up with that?
2009-05-22 14:57:00 +00:00
Dr Scofield 912be7a2ac converting Chat module and Concierge module to new style region modules 2009-05-22 14:25:50 +00:00
Dr Scofield 1df80943b0 dropping sex from SceneBanner... 2009-05-22 14:21:44 +00:00
Dr Scofield 37726764be changing IRCBridgeModule to new region module scheme 2009-05-22 11:37:26 +00:00
Dr Scofield ac2fe53e89 adding RemoveXmlRpcHandler to IHttpServer 2009-05-22 11:37:14 +00:00
diva da170cde46 Cleaning up a few HG things. HG Posts may now work in grids, but if the home grid is a standalone, this still doesn't work -- something wrong with RegionAssetService's DB connection. 2009-05-22 04:23:59 +00:00
Melanie Thielker 8f8e20b39d Small update to make the command line work again 2009-05-21 23:07:26 +00:00
Melanie Thielker e5f3337c3f Implement .ini file includes. Anything that begins with "Include-" will be
treated as another ini source to load.
For example:
Include-Asset = AssetSetup.ini
will load AssetSetup.ini after all other ini files are done.
This works recursively, too
2009-05-21 23:06:10 +00:00
Arthur Valadares a85f496f4d * Upgraded LLStandaloneLoginModule, LLProxyLoginModule and LLClientStackModule to new
region modules. This was needed because the stand alone and grid modules weren't deleting
old scenes, which caused an issue when deleting and recreating a region with same name
on same x,y coordinates. Tested it on standalone and issue is fixed. Requires prebuild
to be run again.

Fixes Mantis #3699
2009-05-21 20:28:59 +00:00
Dahlia Trimble 3d0f110f21 normalize quats before applying llSetRot() 2009-05-21 19:44:20 +00:00
MW 8e6289b8ca Hooked up the RestRegionPlugin Get Region/xxx/terrain so it outputs xml containing the terrain heightmap rather than the old "terrain not implemented" message.
The format of the terrain data is: the floats encoded in Base64 and serialised into xml. So I think far from ideal, but as the support for outputting that format was already there...
Still need to hook up a method for remotely loading this data.
2009-05-21 10:54:49 +00:00
MW e4d68964dd Added ITeleportModule interface, and added a hook into scene so if a module has registered this interface then that handles teleport requests rather the SceneCommunicationService.
As by default there is no ITeleportModule registered, Teleports by default will still be handled by SceneCommunicationService.
2009-05-21 10:41:16 +00:00
Melanie Thielker 787d58ae7f Put some meat on the bones of the REST console. NO user functionality yet 2009-05-20 20:28:57 +00:00
Melanie Thielker 3ae9bb6d83 Move the color console logic from the appender into the local console, since
that is the only one that can use it. Change appender output to always go
through the console output functions.
2009-05-20 14:40:50 +00:00
Melanie Thielker 4065ebff15 Remove the pre-log4net, discrete output methods from the consoles 2009-05-20 13:50:33 +00:00
Dr Scofield 4c7da1421f refactoring instantiation of Location object: moving it out of the for
loop as it really is a "constant"
2009-05-20 13:37:25 +00:00
Melanie Thielker 20383a61b8 Thank you, StrawberryFride, for a patch to fix SceneBan behavior.
Applied with changes (commented the logging entirely, since Linux defaults
to debug level)
Fixes Mantis #3689
2009-05-20 11:27:15 +00:00
Melanie Thielker a3fed17956 Fix a slight oversight in SceneInventory that would not enable copy to
inventory when permissions are bypassed
2009-05-20 10:54:35 +00:00
Jeff Ames e0bc5c5db2 Add copyright headers, formatting cleanup. 2009-05-20 01:32:06 +00:00
Jeff Ames ecfad4944b Update svn properties. 2009-05-20 01:02:37 +00:00
Justin Clarke Casey cd90ea377e * minor: Tweak the command exception catcher of last resort to make a little more sense 2009-05-19 19:57:45 +00:00
Justin Clarke Casey 01ca3a91ad * Take another attempt at http://opensimulator.org/mantis/view.php?id=3191
* Return something more sensible if a file isn't found
2009-05-19 19:41:01 +00:00
Dr Scofield 14f0d5e77f trying to fix exception with in LLPacketQueue probably caused by
missing locks where the queue was modified.
2009-05-19 18:46:20 +00:00
Dr Scofield 8559f9bbba From: Alan Webb <alan_webb@us.ibm.com>
The image render module is returning everything twice. Once with
  data, once with null. This change adds a return to stop this
  behavior. This was not apparent until I added a message to the
  catching routine which issued a warning message when no data was
  returned.
2009-05-19 18:34:04 +00:00
Melanie Thielker 88f17010b7 Add initializing m_scene if it's not null. Marking MyScene as [Obsolete]
because it will be removed soonish. This is NOT the way to go.
Thanks, mpallari, for pointing this out.
Fixes Mantis #3684
2009-05-19 16:26:20 +00:00
Dahlia Trimble 87b95e324e Sculpt mesher refactor
adds some previously missing geometry to sculpties
new LOD improves vertex accuracy
fix torus mode mesh edge joining
sync with primmesher r37
2009-05-19 10:09:33 +00:00
Melanie Thielker 744100821d Refactor RegionAssetService to load the service connector rather than
duplicating it's functionality
2009-05-19 00:36:06 +00:00
Melanie Thielker 23d902be42 Remove the old asset cache and local services and the configurations for them 2009-05-18 23:18:04 +00:00
diva df16532858 Bug fix and config rename. 2009-05-18 23:15:50 +00:00
diva 75b8b60aa1 Removing the last reference to CommsManager.AssetCache. 2009-05-18 22:22:09 +00:00
Arthur Valadares ed28c89d96 * Adds code that allows you to save an outfit then tell bot to wear it.
* Still doesn't work due to a bug on LibOMV that should be out on 0.6.3.
* Released by request. Important Warning: Linden Viewer 1.2.3 changes the way appearance works and break bot's appearances. LibOMV is working on it
2009-05-18 22:00:43 +00:00
Melanie Thielker a2c9a0a188 Adding missing files 2009-05-18 21:07:58 +00:00
Melanie Thielker f7dbfe63e5 This commit changes the way the new server works. There is no longer a server
exe for each function, rather each function is a connector and the server ini
loads them. If you like your multiple processes, use -inifile with the server.
Otherwise, you get one server process that serves all configured funcions, see
example .ini. The new exe is OpenSim.Server.exe. Clean your bin, loads of names
have changed!
2009-05-18 21:04:25 +00:00
diva 13da5a9fba Finished HG Service Store. Not fully functional because of problems with asset.ID insisting on being a UUID string. 2009-05-18 20:04:59 +00:00
Justin Clarke Casey 1cc9d1fd8d * minor: another attempt at http://opensimulator.org/mantis/view.php?id=3191
* didn't realize that we were getting back plain old exceptions
2009-05-18 18:44:55 +00:00
Justin Clarke Casey 29671fc103 * Resolve http://opensimulator.org/mantis/view.php?id=3191
* Catch directory exception on load oar as well as file exception
2009-05-18 18:22:15 +00:00
Justin Clarke Casey ad7214620f * Re-enable save oar test by loading asset data plugins from test mock class
* Actually spit out the exception caught by the plugin loader - not much point having plugins throw exceptions if we are just going to ignore them
2009-05-18 17:46:14 +00:00
Dr Scofield a885556063 From: Chris Yeoh <yeohc@au1.ibm.com>
We've encountered problems with textures never fully downloading and
objects not moving or being deleted (from the client's point of view)
even when the bandwidth settings on the client have been set very
low. This can happen over reasonably lossy links (eg you're on the
other side of the world from the server) as the server retries 3 times
and then gives up.

Whilst its possible to set ReliableIsImportant, this forces the server
to keep retrying no matter what which potentially could lead to
problems. This patch allows for the setting of MaxReliableResends
explicitly (is set to 3 normally) in OpenSim.ini so if you know you
will have clients connecting with poor connections you can set it a
bit higher (10-15 works quite well even for very poor connections).
2009-05-18 16:10:48 +00:00
Dr Scofield 300c895739 logging ACL list additions 2009-05-18 15:50:14 +00:00
Dr Scofield e1a1d38aff From: Alan Webb <alan_webb> & Dr Scofield<drscofield@xyzzyxyzzy.net>
Disable use of log4net in script domains to avoid mono 2.4 aborts.
2009-05-18 15:32:06 +00:00
Melanie Thielker 2534078380 Refactor: Change "Servers" to "Server", since the can only be one. Break
the handlers out of the asset server context into a generic scope.
2009-05-18 12:36:59 +00:00
Melanie Thielker 72adbd976c Nonowrking intermadiate commit,, DO NOT USE 2009-05-18 12:10:56 +00:00
Melanie Thielker e24be9aac9 Logically group the server connector with it's handlers 2009-05-18 11:50:17 +00:00
Melanie Thielker cb2ce61876 Move the connectors under services for reasons of application logic. Remove
the user server skeleton in preparation for introducing a generic server
2009-05-18 11:43:37 +00:00
Dr Scofield e3f2cfa1ca From: Alan Webb <alan_webb@us.ibm.com>
Fixes:
  [1] Sharing exception on remote OAR management
  [2] Occasional 505 error talking to Tomcat
  [3] Occasional mono aborts caused by mlog in the
      script engine's app domain (mono 2.4)
2009-05-18 10:04:28 +00:00
Dr Scofield 2ad8710e19 fixing XmlWriter problem 2009-05-18 09:34:30 +00:00
Charles Krinke 7a8a481f88 Thank you kindly, StrawberryFride, for a patch that:
Adds maturity & access logic for MSSQL platform to 
mirror that of MySQL as committed in 9502.
2009-05-17 18:18:48 +00:00
Charles Krinke 74f1c16c49 Thank you kindly, Jonc, for a patch that solves
the issue of a console command 'export-map file.jpg'
having the map flipped when exported.
2009-05-17 18:09:39 +00:00
diva 720e2bc5d9 Renaming [ServiceConnectors] back to [Modules]. 2009-05-17 15:37:50 +00:00
Jeff Ames 5cfd84c924 Update svn properties. 2009-05-17 10:26:00 +00:00
diva 0379dbe2fd Removing a superfluous message, just to make bamboo run again. 2009-05-17 02:15:08 +00:00
diva aac8ca0411 HG asset transfers starting to work -- GETs only for now. 2009-05-17 01:38:43 +00:00
Homer Horwitz 99cf8e3f5a Send the owner name, not the client name on SendDialog.
This modifies IClientAPI.SendDialog slightly.
Fixes Mantis #3661.
2009-05-16 16:01:25 +00:00
diva 29301e66c0 Oops. Next time try not to commit things at the same time as having important discussions on the IRC. 2009-05-16 00:33:17 +00:00
diva d8931def06 Another minor bug fix for making notecard/script savings work with old asset servers. 2009-05-16 00:23:32 +00:00
diva 99167c68b1 Bug fix on POST asset so that the new asset service connector can talk to the old asset server. 2009-05-15 21:11:37 +00:00
Justin Clarke Casey c11e047410 * Resolve bug where save oar would never complete if any assets were missing 2009-05-15 20:20:55 +00:00
Justin Clarke Casey 3791386d4d * Change default sqlite asset db back to Asset.db instead of AssetStorage.db
* This inconsistency has actually existed for some time but only the recent change brought it to light
* In the past, the default in ConfigurationLoader took precedence over the one in SQLiteAssetData
2009-05-15 18:50:38 +00:00
MW 5a97979bd7 Added PostInitialise method to IGridPlugin. 2009-05-15 12:10:44 +00:00
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
Dahlia Trimble 14c1e991c6 some sculpted prim geometry accuracy and meshing speed improvements 2009-05-15 03:14:04 +00:00
Melanie Thielker 786ff98f6d Remove all messages from the groups module that would be output when it is
NOT enabled.
2009-05-14 21:38:17 +00:00
Melanie Thielker 9248300596 Remove a misleading event that was only used internally 2009-05-14 21:28:02 +00:00
Justin Clarke Casey 6277156044 * When saving an oar, save assets when immediately received rather than storing them all up in memory
* Hopefully this will remove out of memory problems when saving large oars on machines without much memory
* It may also speed up saving of large oars
2009-05-14 20:37:54 +00:00
Justin Clarke Casey 02bac7fea4 * refactor: move SceneXmlLoader into subpackage 2009-05-14 18:46:17 +00:00
MW 80c1c10407 Added a bool variable to OGS1GridServices to be able to turn off the use of the remoteRegionInfoCache as caching region data like that stops a dynamic grid (where regions could change port or host at any time, useful for load balancing among other things) from working.
The bool is currently hardcoded to be true (to use the cache). So need to hook this up to a config option later.
2009-05-14 18:29:47 +00:00
Justin Clarke Casey b2433d2b99 * Improve loadregions so that all region configs are checked for clashes (e.g. same uuid) rather than just one 2009-05-14 18:24:52 +00:00
Justin Clarke Casey 303aa4b65e * refactor: move bottom part of 'xml2' serializaton to separate class 2009-05-14 18:08:54 +00:00
Justin Clarke Casey d10b5e29bc * refactor: break some of xml2 serialization out of sog 2009-05-14 16:33:04 +00:00
Melanie Thielker 3aa6fd0d2c Move the server request handlers into a separate lib nunit can digest 2009-05-14 11:26:14 +00:00
lbsa71 95d87244b0 * Moved BaseRequestHandlerTestHelper to OpenSim.Tests.Common.Setup for great justice. 2009-05-14 08:21:14 +00:00
lbsa71 c6e2fc947b * Changed auto-properties to properties with backing field
* This fixes mantis #3650
2009-05-14 08:12:23 +00:00
Melanie Thielker d843b897b2 Move the connector for the new asset server to a connectors project. Inherit
the region module version from this. This enables inter-server connections
to reuse connetor code from region modules.
2009-05-14 06:18:18 +00:00
diva e22a250825 Small fix uncommenting something that got commented too much. 2009-05-14 04:37:26 +00:00
Melanie Thielker 50b305b006 Honor the temp and local asset flags 2009-05-14 03:07:00 +00:00
Arthur Valadares 09df50915d * Bug fix: Variable m_regionSettings can be null, using RegionSettings instead, that starts a new RegionSettings object if private variable is null.
Fixes Mantis #3634
2009-05-13 22:16:14 +00:00
Melanie Thielker 13298fef0b Fix up some URL details 2009-05-13 20:57:26 +00:00
Melanie Thielker 8bea196b5b Add the port to the generated URL. For some reson this still doesn't want to
receive requests.
2009-05-13 20:45:28 +00:00
Melanie Thielker fb3d5770dd Make the LSL HTTP server create and give out URLs to scripts 2009-05-13 20:32:14 +00:00
lbsa71 40e95cab02 * Added some more tests to the GetAssetStreamHandlers 2009-05-13 17:11:53 +00:00
Dr Scofield b95b7222f9 Disabling WebFetchInventoryDescendents CAPs for the time being as it
seems to screw up standalone mode.
2009-05-13 16:34:57 +00:00
Melanie Thielker 1196f3eac7 Add most of the meat to the LSL HTTP server 2009-05-13 04:04:26 +00:00
Melanie Thielker ba8850f254 Plumb request and return URL functions.
Implements llRequestURL, llRequestSecureURL, llReleaseURL
2009-05-13 03:09:30 +00:00
Melanie Thielker 80ce08d8b2 Add a skeleton for the LSLHttpServer 2009-05-13 02:54:13 +00:00
Melanie Thielker 6c2302637f Implement llAttachToAvatar() 2009-05-13 02:21:21 +00:00
Melanie Thielker 4cce1cc26e Implement llDetachFromAvatar() 2009-05-13 02:06:12 +00:00
Charles Krinke 94e2768cc7 Add interface, stub implementation and
script stub for llGetHTTPHeader().
2009-05-13 01:58:17 +00:00
Charles Krinke 6257bb8b09 Add interface, implementation stub and
script stub for llGetFreeURLs().
2009-05-13 01:47:29 +00:00
Charles Krinke a5feb0682a Thank you kindly, BlueWall sir, for a patch that:
Adding a jsonp wrapper to the user supplied status report 
uri if the key "callback" exists. It will work with many 
javascript toolkits to provide an ajax callback to allow 
the browser to update stats reports without the 
intervention of an intermediate server.
2009-05-13 01:27:23 +00:00
Charles Krinke 4db2f71c45 Added interface, implementation stub and
script stub for llReleaseURL().
2009-05-13 01:21:50 +00:00
Charles Krinke 2776afd83d Remove incorrect semicolon 2009-05-13 01:13:59 +00:00
Charles Krinke c23bd2d6ea Add interface, stubbed implementation and
script stub for llRequestSecureURL().
2009-05-13 01:06:06 +00:00
Melanie Thielker e206a9ce88 Remove some no longer needed debug.
Fixes Mantis #9520
2009-05-13 00:58:10 +00:00
Charles Krinke f63b83b085 Added interface, stub implementation and script
stub for llRequestURL().
2009-05-13 00:58:01 +00:00
Charles Krinke ba99f2a1a5 Add interface, stub and bare implmentation for llHTTPResponse(). 2009-05-13 00:29:50 +00:00
Melanie Thielker 88371e4f98 Fix interface registration/deregistration mechanics 2009-05-12 23:49:42 +00:00
Melanie Thielker 55dd6d4334 Make the accet cache module actually register the interface 2009-05-12 23:21:03 +00:00