diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden')
3 files changed, 9 insertions, 8 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs index a02ef9d..dd410a7 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | |||
@@ -350,17 +350,18 @@ namespace OpenSim.Region.ClientStack.Linden | |||
350 | public string SeedCapRequest(string request, string path, string param, | 350 | public string SeedCapRequest(string request, string path, string param, |
351 | IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) | 351 | IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) |
352 | { | 352 | { |
353 | UUID agentID = m_HostCapsObj.AgentID; | ||
353 | m_log.DebugFormat( | 354 | m_log.DebugFormat( |
354 | "[CAPS]: Received SEED caps request in {0} for agent {1}", m_regionName, m_HostCapsObj.AgentID); | 355 | "[CAPS]: Received SEED caps request in {0} for agent {1}", m_regionName, agentID); |
355 | 356 | ||
356 | if (!m_HostCapsObj.WaitForActivation()) | 357 | if (!m_HostCapsObj.WaitForActivation()) |
357 | return string.Empty; | 358 | return string.Empty; |
358 | 359 | ||
359 | if (!m_Scene.CheckClient(m_HostCapsObj.AgentID, httpRequest.RemoteIPEndPoint)) | 360 | if (!m_Scene.CheckClient(agentID, httpRequest.RemoteIPEndPoint)) |
360 | { | 361 | { |
361 | m_log.WarnFormat( | 362 | m_log.WarnFormat( |
362 | "[CAPS]: Unauthorized CAPS client {0} from {1}", | 363 | "[CAPS]: Unauthorized CAPS client {0} from {1}", |
363 | m_HostCapsObj.AgentID, httpRequest.RemoteIPEndPoint); | 364 | agentID, httpRequest.RemoteIPEndPoint); |
364 | 365 | ||
365 | return string.Empty; | 366 | return string.Empty; |
366 | } | 367 | } |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/ObjectAdd.cs b/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/ObjectAdd.cs index b044e56..adb49bd 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/ObjectAdd.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/ObjectAdd.cs | |||
@@ -93,7 +93,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
93 | 93 | ||
94 | public void RegisterCaps(UUID agentID, Caps caps) | 94 | public void RegisterCaps(UUID agentID, Caps caps) |
95 | { | 95 | { |
96 | UUID capuuid = UUID.Random(); | 96 | string capUrl = "/CAPS/" + UUID.Random() + "/"; |
97 | 97 | ||
98 | // m_log.InfoFormat("[OBJECTADD]: {0}", "/CAPS/OA/" + capuuid + "/"); | 98 | // m_log.InfoFormat("[OBJECTADD]: {0}", "/CAPS/OA/" + capuuid + "/"); |
99 | 99 | ||
@@ -101,7 +101,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
101 | "ObjectAdd", | 101 | "ObjectAdd", |
102 | new RestHTTPHandler( | 102 | new RestHTTPHandler( |
103 | "POST", | 103 | "POST", |
104 | "/CAPS/OA/" + capuuid + "/", | 104 | capUrl, |
105 | httpMethod => ProcessAdd(httpMethod, agentID, caps), | 105 | httpMethod => ProcessAdd(httpMethod, agentID, caps), |
106 | "ObjectAdd", | 106 | "ObjectAdd", |
107 | agentID.ToString())); ; | 107 | agentID.ToString())); ; |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/UploadObjectAssetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/UploadObjectAssetModule.cs index 116c51f..04d11cb 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/UploadObjectAssetModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/ObjectCaps/UploadObjectAssetModule.cs | |||
@@ -103,14 +103,14 @@ namespace OpenSim.Region.ClientStack.Linden | |||
103 | 103 | ||
104 | public void RegisterCaps(UUID agentID, Caps caps) | 104 | public void RegisterCaps(UUID agentID, Caps caps) |
105 | { | 105 | { |
106 | UUID capID = UUID.Random(); | 106 | string capUrl = "/CAPS/" + UUID.Random() + "/"; |
107 | 107 | ||
108 | // m_log.Debug("[UPLOAD OBJECT ASSET MODULE]: /CAPS/" + capID); | 108 | // m_log.Debug("[UPLOAD OBJECT ASSET MODULE]: /CAPS/" + capID); |
109 | caps.RegisterHandler( | 109 | caps.RegisterHandler( |
110 | "UploadObjectAsset", | 110 | "UploadObjectAsset", |
111 | new RestHTTPHandler( | 111 | new RestHTTPHandler( |
112 | "POST", | 112 | "POST", |
113 | "/CAPS/OA/" + capID + "/", | 113 | capUrl, |
114 | httpMethod => ProcessAdd(httpMethod, agentID, caps), | 114 | httpMethod => ProcessAdd(httpMethod, agentID, caps), |
115 | "UploadObjectAsset", | 115 | "UploadObjectAsset", |
116 | agentID.ToString())); | 116 | agentID.ToString())); |