Commit Graph

84 Commits

Author SHA1 Message Date
Dr Scofield
a53cea6b7e i'm extending the RestStreamHandler.Handler(...) signature to actually
provide OSHttpRequest and OSHttpResponse to our REST handler. 

also, this adds proper RestPlugin.IsGod() checking against the X-OpenSim-Godkey
HTTP request header.

last, i added XML doc comments to RestPlugin.cs
2008-05-20 16:51:45 +00:00
Jeff Ames
65c5efe43b Formatting cleanup. 2008-05-16 01:22:11 +00:00
Jeff Ames
c995d60d37 Formatting cleanup. 2008-05-14 05:11:23 +00:00
Justin Clarke Casey
550018f02d * As part of the region registration process, the grid service now requests the status of the region using the region http uri just passed in
* If the status cannot be retrieved, then the region startup will terminate.
* The aim of this is for earlier detection of situations where the region can send messages out but cannot accept incoming requests (often due to firewall issues)
* This is currently an extremely simplistic check which completely trusts whatever http uri is given by the region
* This contact may be problematic, though since the user service needs to be able to contact the region http uri, it doesn't seem unreasonable for the grid to have to be able to do so too at this stage
* This change will require a prebuild
2008-05-13 13:36:21 +00:00
Justin Clarke Casey
c8b59f7a31 * Refactor: Creating grid login exceptions to try and break up a large method.
* This in preparation for further login validation to check that the region logging in is properly contactable.
* Also increase verbosity of some error messages
2008-05-12 22:00:33 +00:00
Justin Clarke Casey
d3fb6039ca * If a region running in grid mode fails to login to the grid service, startup will now terminate instead of carrying on (and thus burying the error message) 2008-05-12 16:57:56 +00:00
Justin Clarke Casey
690294c578 * Minor: Change 'delete region' message to region logout message 2008-05-12 16:24:52 +00:00
Justin Clarke Casey
6df35bac3f * Minor: Commenting out message detailing all individual map information dispatch for now 2008-05-12 16:21:11 +00:00
Justin Clarke Casey
6a5be03a80 * Minor: Initial cleaning up of some of the grid sim login messages 2008-05-12 16:16:50 +00:00
Adam Frisby
20a9bf08f5 * Rolled back a few changes. 2008-05-01 18:04:42 +00:00
Adam Frisby
fc6c4dc399 * Cleaning code still. 2008-05-01 16:41:01 +00:00
Adam Frisby
01f31fd933 * Breaking all the code, breaking all the code..!
* Made a bunch more members static, removed some dead code, general cleaning.
2008-05-01 16:23:53 +00:00
Adam Frisby
fef3b36894 * Optimised using statements and namespace references across entire project (this took a while to run). 2008-04-21 07:09:17 +00:00
Teravus Ovares
be93c0f29a * Fix a bug in the friends module that causes a friend not to appear online when they were.
* A few things for testing.
* This makes a modification to the region registration with the grid server so that the region can send it a chosen password to identify itself.  It will not cause any errors, if either one are not updated.
2008-04-13 22:47:12 +00:00
lbsa71
cbf9fcfac5 * Discerned between AddProfile and UpdateProfile in region registration
:: Believe it or not, but INSERT/UPDATE is actually a better pattern than REPLACE, since, with INSERT/UPDATE you can catch erroneous UPDATES to non-INSERTed items as well as catch erroneous re-INSERTS. in 95% of the cases, you SHOULD have a clear INSERT context, and a clear and separate UPDATE context. If you think your case falls within the 5%, maybe you should re-evaluate your code. ::
2008-04-11 09:56:22 +00:00
Sean Dague
86cf07f1c4 changing more references to OpenSim.Data 2008-04-02 15:38:44 +00:00
Justin Clarke Casey
c538ea5024 * Increase timeout for initial simulator login from 16 to 30 seconds
* Comments, capitalization
2008-03-26 17:21:46 +00:00
Charles Krinke
1e452dacf4 Comment out an unused 'str' and add a WriteLine to use
an "Exception e" with e.ToString() to eliminate 2 warnings.
2008-03-21 17:06:31 +00:00
Jeff Ames
bf8b5844f2 Formatting cleanup. Minor refactoring. 2008-03-18 14:51:42 +00:00
Teravus Ovares
42857fe4e9 * Added the ability to type the partial name of a region in the start location box and go to that region if it's there. If no close match was found, it sends you home. This is tested on mySQL. There's untested code on grids that are based on sqlite and MSSQL. The SQL statements *should* be right, but your results may very.
* Ex, if you want to go to Wright Plaza, you simply need to type Wright Plaza in the start location in the client when you log-in.
2008-03-18 05:44:25 +00:00
Jeff Ames
47180080f0 Formatting cleanup. 2008-03-18 05:16:43 +00:00
lbsa71
e2dfd919bc * made GridManager class public 2008-03-12 11:11:52 +00:00
lbsa71
d873a043dd * Refactored out creation of LoginResponse
* Refactored out ErrorResponse
2008-03-12 09:37:39 +00:00
lbsa71
47ed69c933 * Extracted RegionProfileData from Request
* Introduced ValidateNewRegion and ValidateOverwrite
2008-03-12 09:17:23 +00:00
lbsa71
da854b9691 * minor refactoring 2008-03-12 08:44:36 +00:00
Adam Frisby
b40957b57c * Applying patch from Mantis #607 - Grid Server crash. Thanks Diva. 2008-03-11 15:48:50 +00:00
Jeff Ames
d2806090ae Cleaned up a couple compiler warnings. 2008-03-04 10:12:39 +00:00
Johan Berntsson
279e0061c5 Merged 3Di code that provides scene and avatar serialization, and plugin support for region move/split/merge. See ThirdParty/3Di/README.txt. Unless the new modules are used there should be no noticeable changes when running OpenSim. 2008-03-04 05:31:54 +00:00
Jeff Ames
a8cfbbe963 Minor cleanup. 2008-02-20 18:38:20 +00:00
Justin Clarke Casey
b331e96e25 Remove "Loading inventory" messages from item inventory loads 2008-02-19 20:21:25 +00:00
Justin Clarke Casey
b37b71b273 * Make RegionProfileData.RequestSimProfileData static
* Minor documentation bits
2008-02-18 17:31:05 +00:00
Charles Krinke
df04345e3f Thank you very much, Diva for a patch to increase the
grid server reliability.
2008-02-17 02:03:27 +00:00
lbsa71
2d066c4136 * Took a stab at getting keys to work as intended
[Provided by openlifegrid.com]
2008-02-14 13:09:33 +00:00
lbsa71
cf6e268d6d * Added more debugging output to GridManager to pin down the key exchange weirdness
[Provided by openlifegrid.com]
2008-02-14 13:02:41 +00:00
Adam Frisby
f3afa68a2a * Made new Framework.Constants class, added RegionSize member.
* Converted all instances of "256" spotted to use RegionSize instead. Some approximations used for border crossings (ie 255.9f) are still using that value, but should be updated to use something based on RegionSize.
* Moving Terrain to a RegionModule, implemented ITerrainChannel and TerrainModule - nonfunctional, but will be soon.
2008-02-14 12:16:33 +00:00
lbsa71
952cdd4166 * Added some more comprehensive log entries on region login.
[Provided by openlifegrid.com]
2008-02-13 21:05:26 +00:00
lbsa71
b05409b03f * Minor guard for null case.
[Provided by openlifegrid.com]
2008-02-13 20:51:59 +00:00
Jeff Ames
6ed5283bc0 Converted logging to use log4net.
Changed LogBase to ConsoleBase, which handles console I/O.
This is mostly an in-place conversion, so lots of refactoring can still be done.
2008-02-05 19:44:27 +00:00
Brian McBee
e2680342d1 Turn on fastMode for map block queries to grid server if and only if grid is running MYSQL as the data source. 2008-02-02 18:25:17 +00:00
Charles Krinke
6a1d9e8da1 Thank you very much daTwitch for your first contribution to the C# simulator.
This is the beginnings of support for storage of region owner in the MySQLManager
table and the use of "owner_uuid".
2008-02-02 16:43:57 +00:00
Adam Frisby
b25f9f322c * Mother of all commits:
* Cleaned up copyright notices in AssemblyInfo.cs's
* Added Copyright headers to a bunch of files missing them
* Replaced several common string instances with a static constant to prevent reallocation of the same strings thousands of times. "" -> String.Empty is the first such candidate.
2008-01-15 02:09:55 +00:00
Adam Frisby
f59f4e476d * Made it so that if you don't specify a key, the defaults will not be assumed.
* If you wish to turn off key authentication, set the values to "" (null) in the grid config, and do the same in clients.
2008-01-12 19:28:50 +00:00
Adam Frisby
0b0df333dc * In the interests of making life difficult for everyone, the Grid Server now actually checks your authentication keys rather than ignoring them. 2008-01-12 19:23:56 +00:00
Teravus Ovares
f43e75762a * Adding More to the MessageServer classes.
* Don't forget to prebuild
2008-01-07 01:39:26 +00:00
Teravus Ovares
04dbcee74c * A few more Message Server comms related updates 2008-01-06 20:10:29 +00:00
Brian McBee
9985d53681 Added code to gridserver to prevent new region from connecting at X,Y location already used by an existing region. 2008-01-06 19:59:58 +00:00
lbsa71
efd90b56b7 * Optimized usings
* shortened references
* Removed redundant 'this'
* Normalized EOF
2007-12-27 21:41:48 +00:00
Charles Krinke
c34b5e9071 Clean up the region initialization GridServer messages a bit. 2007-12-23 04:42:55 +00:00
Charles Krinke
1a679c8cd9 Simplify GridServer mainmap log messages. 2007-12-23 01:09:21 +00:00
Teravus Ovares
8aae909412 * Added a configuration parameter on the Grid Server to disallow forceful banlists.
* Added a way for Grid based configuration parameters to (generally used in overriding functionality) to get to the regions on Registration.
2007-12-20 06:31:03 +00:00