aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/ApplicationPlugins')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs13
-rw-r--r--OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs14
-rw-r--r--OpenSim/ApplicationPlugins/Rest/Inventory/tests/Remote.cs4
3 files changed, 22 insertions, 9 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index ee3d7c5..86c0ac8 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -812,6 +812,14 @@ namespace OpenSim.ApplicationPlugins.RemoteController
812 // ok, client wants us to use an explicit UUID 812 // ok, client wants us to use an explicit UUID
813 // regardless of what the avatar name provided 813 // regardless of what the avatar name provided
814 userID = new UUID((string) requestData["estate_owner_uuid"]); 814 userID = new UUID((string) requestData["estate_owner_uuid"]);
815
816 // Check that the specified user exists
817 Scene currentOrFirst = m_application.SceneManager.CurrentOrFirstScene;
818 IUserAccountService accountService = currentOrFirst.UserAccountService;
819 UserAccount user = accountService.GetUserAccount(currentOrFirst.RegionInfo.ScopeID, userID);
820
821 if (user == null)
822 throw new Exception("Specified user was not found.");
815 } 823 }
816 else if (requestData.ContainsKey("estate_owner_first") & requestData.ContainsKey("estate_owner_last")) 824 else if (requestData.ContainsKey("estate_owner_first") & requestData.ContainsKey("estate_owner_last"))
817 { 825 {
@@ -823,6 +831,11 @@ namespace OpenSim.ApplicationPlugins.RemoteController
823 IUserAccountService accountService = currentOrFirst.UserAccountService; 831 IUserAccountService accountService = currentOrFirst.UserAccountService;
824 UserAccount user = accountService.GetUserAccount(currentOrFirst.RegionInfo.ScopeID, 832 UserAccount user = accountService.GetUserAccount(currentOrFirst.RegionInfo.ScopeID,
825 ownerFirst, ownerLast); 833 ownerFirst, ownerLast);
834
835 // Check that the specified user exists
836 if (user == null)
837 throw new Exception("Specified user was not found.");
838
826 userID = user.PrincipalID; 839 userID = user.PrincipalID;
827 } 840 }
828 else 841 else
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs
index 0188eb7..3cda984 100644
--- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs
+++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs
@@ -488,11 +488,11 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
488 rdata.userAppearance.AvatarHeight = (float) Convert.ToDouble(xml.Value); 488 rdata.userAppearance.AvatarHeight = (float) Convert.ToDouble(xml.Value);
489 indata = true; 489 indata = true;
490 } 490 }
491 if (xml.MoveToAttribute("Owner")) 491// if (xml.MoveToAttribute("Owner"))
492 { 492// {
493 rdata.userAppearance.Owner = (UUID)xml.Value; 493// rdata.userAppearance.Owner = (UUID)xml.Value;
494 indata = true; 494// indata = true;
495 } 495// }
496 if (xml.MoveToAttribute("Serial")) 496 if (xml.MoveToAttribute("Serial"))
497 { 497 {
498 rdata.userAppearance.Serial = Convert.ToInt32(xml.Value); 498 rdata.userAppearance.Serial = Convert.ToInt32(xml.Value);
@@ -747,8 +747,8 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
747 rdata.writer.WriteStartElement("Appearance"); 747 rdata.writer.WriteStartElement("Appearance");
748 748
749 rdata.writer.WriteAttributeString("Height", rdata.userAppearance.AvatarHeight.ToString()); 749 rdata.writer.WriteAttributeString("Height", rdata.userAppearance.AvatarHeight.ToString());
750 if (rdata.userAppearance.Owner != UUID.Zero) 750// if (rdata.userAppearance.Owner != UUID.Zero)
751 rdata.writer.WriteAttributeString("Owner", rdata.userAppearance.Owner.ToString()); 751// rdata.writer.WriteAttributeString("Owner", rdata.userAppearance.Owner.ToString());
752 rdata.writer.WriteAttributeString("Serial", rdata.userAppearance.Serial.ToString()); 752 rdata.writer.WriteAttributeString("Serial", rdata.userAppearance.Serial.ToString());
753 753
754/* 754/*
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/tests/Remote.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/tests/Remote.cs
index 4333ef1..1023108 100644
--- a/OpenSim/ApplicationPlugins/Rest/Inventory/tests/Remote.cs
+++ b/OpenSim/ApplicationPlugins/Rest/Inventory/tests/Remote.cs
@@ -168,8 +168,8 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory.Tests
168 float x = Convert.ToSingle(rdata.Parameters[PARM_MOVE_X]); 168 float x = Convert.ToSingle(rdata.Parameters[PARM_MOVE_X]);
169 float y = Convert.ToSingle(rdata.Parameters[PARM_MOVE_Y]); 169 float y = Convert.ToSingle(rdata.Parameters[PARM_MOVE_Y]);
170 float z = Convert.ToSingle(rdata.Parameters[PARM_MOVE_Z]); 170 float z = Convert.ToSingle(rdata.Parameters[PARM_MOVE_Z]);
171 Vector3 vector = new Vector3(x,y,z); 171 Vector3 vector = new Vector3(x, y, z);
172 presence.DoAutoPilot(0,vector,presence.ControllingClient); 172 presence.MoveToTarget(vector, false);
173 } 173 }
174 catch (Exception e) 174 catch (Exception e)
175 { 175 {