diff options
author | Teravus Ovares | 2008-08-26 05:41:07 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-08-26 05:41:07 +0000 |
commit | 1015ca38636b550500719375168646d741f89db1 (patch) | |
tree | 1d53b770647536d32ecdd9d6e0fa79307060a55f /OpenSim | |
parent | * Workaround for application/llsd+xml requests coming in as application/xml (diff) | |
download | opensim-SC_OLD-1015ca38636b550500719375168646d741f89db1.zip opensim-SC_OLD-1015ca38636b550500719375168646d741f89db1.tar.gz opensim-SC_OLD-1015ca38636b550500719375168646d741f89db1.tar.bz2 opensim-SC_OLD-1015ca38636b550500719375168646d741f89db1.tar.xz |
* It turns out that Mono doesn't currently support setting the Certificate validation handler, however, it throws a NotImplemented exception.
* Added Try/Catch/Message
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Servers/BaseHttpServer.cs | 7 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs | 9 |
2 files changed, 14 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index 13c5752..303ce64 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs | |||
@@ -559,7 +559,8 @@ namespace OpenSim.Framework.Servers | |||
559 | 559 | ||
560 | foreach (string pattern in m_llsdHandlers.Keys) | 560 | foreach (string pattern in m_llsdHandlers.Keys) |
561 | { | 561 | { |
562 | if (searchquery.StartsWith(searchquery)) | 562 | |
563 | if (pattern.StartsWith(searchquery) && searchquery.Length >= pattern.Length) | ||
563 | { | 564 | { |
564 | if (String.IsNullOrEmpty(bestMatch) || searchquery.Length > bestMatch.Length) | 565 | if (String.IsNullOrEmpty(bestMatch) || searchquery.Length > bestMatch.Length) |
565 | { | 566 | { |
@@ -568,6 +569,10 @@ namespace OpenSim.Framework.Servers | |||
568 | } | 569 | } |
569 | } | 570 | } |
570 | 571 | ||
572 | // extra kicker to remove the default XMLRPC login case.. just in case.. | ||
573 | if (path == "/") | ||
574 | return false; | ||
575 | |||
571 | if (String.IsNullOrEmpty(bestMatch)) | 576 | if (String.IsNullOrEmpty(bestMatch)) |
572 | { | 577 | { |
573 | 578 | ||
diff --git a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs index 5874d9b..89a01f0 100644 --- a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs +++ b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs | |||
@@ -114,7 +114,14 @@ namespace OpenSim.Region.Environment.Modules.InterGrid | |||
114 | if (m_scene.Count == 0) | 114 | if (m_scene.Count == 0) |
115 | { | 115 | { |
116 | scene.AddLLSDHandler("/agent/", ProcessAgentDomainMessage); | 116 | scene.AddLLSDHandler("/agent/", ProcessAgentDomainMessage); |
117 | ServicePointManager.ServerCertificateValidationCallback += customXertificateValidation; | 117 | try |
118 | { | ||
119 | ServicePointManager.ServerCertificateValidationCallback += customXertificateValidation; | ||
120 | } | ||
121 | catch (NotImplementedException) | ||
122 | { | ||
123 | m_log.Error("[OGP]: Certificate validation handler change not supported. You may get ssl certificate validation errors teleporting from your region to some SSL regions."); | ||
124 | } | ||
118 | } | 125 | } |
119 | 126 | ||
120 | if (!m_scene.Contains(scene)) | 127 | if (!m_scene.Contains(scene)) |