aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/Rest (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-13Don't include time to transmit response back to requester when assessing ↵Justin Clark-Casey (justincc)1-1/+0
slow handling of requests. This is to avoid logging a 'slow' request when the source of delay is the viewer in processing a response. This is not something we can do much about on the server end - it's server-side delay that we're interested in. To ensure consistency, this commit also had to refactor and simplify inbound non-poll network request handling, though there should be no functional change. IOSHttpResponse no longer exposes the Send() method, only classes in OpenSim.Framework.Servers.HttpServer should be doing this. Only the GetTextureHandler was sending its own response. Now it leaves this to BaseHttpServer, like all other core handlers.
2011-12-05Implement IOSHttpRequest and IOSHttpResponse http interfaces and use instead ↵Justin Clark-Casey (justincc)4-15/+15
of OSHttpRequest/OSHttpResponse. This is required for the substitution of different HTTP servers or the newer HttpServer.dll without having to commit to a particular implementation. This is also required to write regression tests that involve the HTTP layer. If you need to recompile, all you need to do is replace OSHttpRequest/OSHttpResponse references with IOSHttpRequest/IOSHttpResponse.
2011-11-03Rename ForEachAvatar back to ForEachScenePresence. The other changesDan Lake1-1/+1
from previous commit which sort out which iterator is used are left intact. A discussion is needed as to what constitutes an avatar vs a ScenePresence.
2011-11-03Renamed ForEachRootScenePresence to ForEachAvatar. Cleaned up calls toDan Lake1-1/+1
the 3 iteration functions so more of them are using the correct iteration for the action they are performing. The 3 iterators that seem to fit all actions within OpenSim at this time are: ForEachAvatar: Perform an action on all avatars (root presences) ForEachClient: Perform an action on all clients (root or child clients) ForEachRootClient: Perform an action on all clients that have an avatar There are still a dozen places or so calling the old ForEachScenePresence that will take a little more refactoring to eliminate.
2011-09-22Reinstate option to land an npc when it reaches a target.Justin Clark-Casey (justincc)1-1/+1
This is moved into ScenePresence for now as a general facility
2011-08-10early code to allow scripts to force npcs not to fly when moving to targetJustin Clark-Casey (justincc)1-1/+1
this is to allow walking on prims. it will be up to the script writer to be sure that there is a continuous path. currently implemented in osNpcMoveToTarget(), but none of this is final.
2011-08-03refactor: rename the move to position methods to move to target to be ↵Justin Clark-Casey (justincc)1-1/+1
consistent with terminology used by scene object part and elsewhere
2011-08-03get rid of vestigal move to parametersJustin Clark-Casey (justincc)1-2/+2
2011-08-02Partially fix autopilot/go hereJustin Clark-Casey (justincc)1-1/+1
This now works again except that it requires a click or avatar mvmt to get going This is because the ScenePresence.HandleAgentUpdate() method doesn't trigger until the client does something significant, at which point autopilot takes over. Even clicking is enough to trigger. This will be improved presently.
2011-08-02Get rid of AvatarAppearance.Owner to simplify the code.Justin Clark-Casey (justincc)1-7/+7
This is not used for anything - appearances are always properties of objects with ids (ScenePresence, AgentCircuitData) and just has the potential to get out of sync when the appearance is cloned.
2011-03-17Thanks Kevin Cozens for a patch that:BlueWall1-3/+3
Fixes several spelling mistakes
2011-02-04minor: remove some mono compiler warningsJustin Clark-Casey (justincc)2-5/+5
2010-11-21Added creator info across the board -- TaskInventoryItems and InventoryItems ↵Diva Canto1-0/+1
themselves. Tested. Seems to be working, main tests pass. Nothing done for IARs or HG transfers yet -- this only works for OARs for the time being. New migration in inventory table in order to make CreatorID varchar(255).
2010-10-30READ CAREFULLY!!! This is a BROKEN commit. It is UNTESTED and INCOMPLETE.Melanie1-1/+4
It contains a major interface version bump and will NOT work with earlier grid services. This is preliminary work that will lead to layers support. Rest appearance services are commented out completely, they will have to be adapted by someone who actually uses them. Remote admin is working, but has no layers support. There is no layers support in the database. Login likely won't work. You have been warned.
2010-10-21First attempt to get multiple attachments working to support viewer2.Master ScienceSim1-15/+10
The attachment code appears to work correctly for 1.23 viewers so, in spite of some big changes in the internal representation, there don't appear to be regressions. That being said, I still can't get a viewer2 avatar to show correctly.
2010-09-12Formatting cleanup.Jeff Ames1-2/+2
2010-05-28comment out large chunks of appearance/inventory region access services to ↵Justin Clark-Casey (justincc)2-660/+656
eliminate warnings that this code is unused
2010-03-19Cleaned up access to scenepresences in scenegraph. GetScenePresences and ↵Dan Lake3-22/+18
GetAvatars have been removed to consolidate locking and iteration within SceneGraph. All callers which used these to then iterate over presences have been refactored to instead pass their delegates to Scene.ForEachScenePresence(Action<ScenePresence>).
2010-02-22Changed asset CreatorID to a stringJohn Hurliman2-3/+3
2010-02-22* Adds CreatorID to asset metadata. This is just the plumbing to support ↵John Hurliman2-3/+3
CreatorID, it doesn't modify database backends or OAR files to support storing/loading it
2010-02-12Apply last two patches from http://opensimulator.org/mantis/view.php?id=3522Justin Clark-Casey (justincc)1-2/+3
These patch should allow people using systems that do not have their locale set to En_US or similar to use OpenSim without suffering effects such as being a million miles up in the air on login. The problem was caused by parsing strings without forcing that parse to be En_US (hence different decimal and digit group symbols were causing problems). Thanks very much to VikingErik for doing the legwork on this fix and phacelia for spotting it in the first place.
2010-01-11Fixed a couple of bugs with Appearance. Appearance is all good now.Diva Canto1-2/+2
2010-01-11OpenSim/Framework/Communications/Cache deleted. LibraryRootFolder deleted.Diva Canto1-1/+1
2010-01-10Some more unnecessary things deleted in Framework.Communications.Diva Canto1-1/+0
2010-01-10* Changed IPresenceService Logout, so that it takes a position and a lookatDiva Canto2-18/+17
* CommsManager.AvatarService rerouted
2010-01-10Remove all references to master avatar, replacing with estate owner whereMelanie2-16/+1
appropriate. This changes the behavior of the REST plugins and RemoteAdmin's region creation process.
2010-01-08Inching ahead... This compiles, but very likely does not run.Diva Canto4-384/+396
2010-01-02* Forgotten ILibraryService from yesterdayDiva Canto1-0/+1
* New IAvatarService -- first pass
2009-11-05Changing the AssetBase constructors to avoid initializing assets with an ↵John Hurliman2-10/+3
unknown asset type, and log an error if it ever does happen
2009-10-02* Creates Util.UTF8 and switches some references of Encoding.UTF8 to ↵John Hurliman2-3/+4
Util.UTF8 (not all references were switched since not all OpenSim libraries reference OpenSim.Framework) * Shrinks the largest in-memory object, the LLRAW.HeightmapLookupValue struct (only used for exporting to LLRAW terrain files), to the minimum possible size. This seems to have the odd side effect of cutting the size of the two double[256,256] terrain objects in half. Possibly an alignment optimization?
2009-10-01Formatting cleanup.Jeff Ames1-1/+1
2009-09-24minor: make rest (not comm) modules less noisy if they are disabledJustin Clark-Casey (justincc)3-4/+5
2009-09-09* Lock timers when Calling Start() and Stop() when the Thread Context is ↵Teravus Ovares (Dan Olivares)1-2/+5
murky. This affects Mono only.
2009-08-19A better purge of trash folder.Diva Canto1-2/+6
2009-08-10Changed RequestRootFolder to GetRootFolderDiva Canto1-1/+1
2009-07-20From: Rick Alther <alther@us.ibm.com>Sean Dague1-1/+0
This patch fixes a problem in the RestXmlWriter where an exception may be thrown when ToString() is called. ToString() is closing the last tag prior to returning the string object, which it shouldn't do. People should be closing the XML tags and document properly and not rely on the ToString() side effect to do it for them. This is most noticeable if you hit the /regions/ and /regioninfo/ REST calls. If you are running r9579 or later, these calls will result in an error.
2009-07-10Now we are past revision 10000, I think its time to start to fix that ↵MW1-2/+2
massive bug that was introduced in revision 1. So here is the first part of that fix.
2009-06-10Heart surgery no.2: the inventory service hooks. diva2-3/+3
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-10Formatting cleanup.Jeff Ames2-11/+9
2009-06-01Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames19-19/+19
LICENSE.txt.
2009-05-22From: Alan Webb <alan_webb@us.ibm.com>Dr Scofield1-4/+0
- Fix typographical error in RPC response. - Remove obsolete commentary.
2009-05-21Hooked up the RestRegionPlugin Get Region/xxx/terrain so it outputs xml ↵MW1-2/+6
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-18fixing XmlWriter problemDr Scofield5-99/+124
2009-05-15Heart surgery on asset service code bits. Affects OpenSim.ini configuration ↵diva3-11/+11
-- 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-09Fixed handling of inventory a bitHomer Horwitz1-8/+8
- AssetType isn't InventoryType. Those enums contain different numbers. Use AssetType for the asset type, InventoryType for the inventory type. - The ToString method (or ToLower) of AssetType/InventoryType doesn't necessarily return the correct LLSD string. - Replaced several magic numbers by their corresponding enum. - Fixed the invType for gestures and animations in the library. This should fix Mantis #3610 and the non-terminating inventory loading
2009-05-04Intermediate commit. WILL NOT COMPILE!Melanie Thielker12-5/+14
2009-04-27Add copyright headers. Formatting cleanup.Jeff Ames1-45/+45
2009-04-24From: Alan Webb <alan_webb@us.ibm.com>Dr Scofield2-2/+450
This commit adds RestFileServices to the REST ApplicationPlugin service.
2009-04-17Adds a new REST service /admin/regioninfo/ --- will return aDr Scofield2-0/+144
comprehensive list of all regions in one go (in contrast to the /admin/regions/ REST call). Example: % curl http://127.0.0.1:9000/admin/regioninfo/ <regions max="10" number="1"> <region avatars="0" external_hostname="127.0.0.1" ip="0.0.0.0:9000" master_name="Mr X" master_uuid="b757d5f9-7b36-4dda-8388-6e03dd59b326" name="London" objects="6" uuid="49253666-a42e-4f44-9026-d23f93af31d7" x="1000" y="1000"/> </regions>
2009-04-08* Make it possible to store creator strings in user inventory items as well ↵Justin Clarke Casey1-4/+4
as UUIDs * All existing functionality should be unaffected. * Database schemas have not been changed.