diff options
author | Melanie | 2010-10-23 00:21:42 +0100 |
---|---|---|
committer | Melanie | 2010-10-23 00:21:42 +0100 |
commit | 7f74dc1b14d3ef31a9f20bb3a76ef8d587779f7e (patch) | |
tree | 73f156f1f7dc7d199a946d351828c7e725ebfbda /OpenSim/Framework | |
parent | Change some exception to use ToString(). e.Message is not sufficient to fix (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-7f74dc1b14d3ef31a9f20bb3a76ef8d587779f7e.zip opensim-SC_OLD-7f74dc1b14d3ef31a9f20bb3a76ef8d587779f7e.tar.gz opensim-SC_OLD-7f74dc1b14d3ef31a9f20bb3a76ef8d587779f7e.tar.bz2 opensim-SC_OLD-7f74dc1b14d3ef31a9f20bb3a76ef8d587779f7e.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Capabilities/CapsUtil.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/RegionInfo.cs | 39 | ||||
-rw-r--r-- | OpenSim/Framework/Serialization/ArchiveConstants.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 4 |
4 files changed, 9 insertions, 38 deletions
diff --git a/OpenSim/Framework/Capabilities/CapsUtil.cs b/OpenSim/Framework/Capabilities/CapsUtil.cs index faf2708..0334e4b 100644 --- a/OpenSim/Framework/Capabilities/CapsUtil.cs +++ b/OpenSim/Framework/Capabilities/CapsUtil.cs | |||
@@ -41,7 +41,7 @@ namespace OpenSim.Framework.Capabilities | |||
41 | /// <returns></returns> | 41 | /// <returns></returns> |
42 | public static string GetCapsSeedPath(string capsObjectPath) | 42 | public static string GetCapsSeedPath(string capsObjectPath) |
43 | { | 43 | { |
44 | return "CAPS/" + capsObjectPath + "0000/"; | 44 | return "/CAPS/" + capsObjectPath + "0000/"; |
45 | } | 45 | } |
46 | 46 | ||
47 | /// <summary> | 47 | /// <summary> |
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index d57d4e9..a006f3e 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs | |||
@@ -116,20 +116,8 @@ namespace OpenSim.Framework | |||
116 | /// </summary> | 116 | /// </summary> |
117 | public string ServerURI | 117 | public string ServerURI |
118 | { | 118 | { |
119 | get { | 119 | get { return m_serverURI; } |
120 | if ( m_serverURI != string.Empty ) { | 120 | set { m_serverURI = value; } |
121 | return m_serverURI; | ||
122 | } else { | ||
123 | return "http://" + m_externalHostName + ":" + m_httpPort + "/"; | ||
124 | } | ||
125 | } | ||
126 | set { | ||
127 | if ( value.EndsWith("/") ) { | ||
128 | m_serverURI = value; | ||
129 | } else { | ||
130 | m_serverURI = value + '/'; | ||
131 | } | ||
132 | } | ||
133 | } | 121 | } |
134 | protected string m_serverURI; | 122 | protected string m_serverURI; |
135 | 123 | ||
@@ -154,7 +142,6 @@ namespace OpenSim.Framework | |||
154 | 142 | ||
155 | public SimpleRegionInfo() | 143 | public SimpleRegionInfo() |
156 | { | 144 | { |
157 | m_serverURI = string.Empty; | ||
158 | } | 145 | } |
159 | 146 | ||
160 | public SimpleRegionInfo(uint regionLocX, uint regionLocY, IPEndPoint internalEndPoint, string externalUri) | 147 | public SimpleRegionInfo(uint regionLocX, uint regionLocY, IPEndPoint internalEndPoint, string externalUri) |
@@ -164,7 +151,6 @@ namespace OpenSim.Framework | |||
164 | 151 | ||
165 | m_internalEndPoint = internalEndPoint; | 152 | m_internalEndPoint = internalEndPoint; |
166 | m_externalHostName = externalUri; | 153 | m_externalHostName = externalUri; |
167 | m_serverURI = string.Empty; | ||
168 | } | 154 | } |
169 | 155 | ||
170 | public SimpleRegionInfo(uint regionLocX, uint regionLocY, string externalUri, uint port) | 156 | public SimpleRegionInfo(uint regionLocX, uint regionLocY, string externalUri, uint port) |
@@ -175,7 +161,6 @@ namespace OpenSim.Framework | |||
175 | m_externalHostName = externalUri; | 161 | m_externalHostName = externalUri; |
176 | 162 | ||
177 | m_internalEndPoint = new IPEndPoint(IPAddress.Parse("0.0.0.0"), (int) port); | 163 | m_internalEndPoint = new IPEndPoint(IPAddress.Parse("0.0.0.0"), (int) port); |
178 | m_serverURI = string.Empty; | ||
179 | } | 164 | } |
180 | 165 | ||
181 | public SimpleRegionInfo(RegionInfo ConvertFrom) | 166 | public SimpleRegionInfo(RegionInfo ConvertFrom) |
@@ -465,7 +450,6 @@ namespace OpenSim.Framework | |||
465 | configMember = | 450 | configMember = |
466 | new ConfigurationMember(xmlNode, description, loadConfigurationOptions, handleIncomingConfiguration, !skipConsoleConfig); | 451 | new ConfigurationMember(xmlNode, description, loadConfigurationOptions, handleIncomingConfiguration, !skipConsoleConfig); |
467 | configMember.performConfigurationRetrieve(); | 452 | configMember.performConfigurationRetrieve(); |
468 | m_serverURI = string.Empty; | ||
469 | } | 453 | } |
470 | 454 | ||
471 | public RegionInfo(uint regionLocX, uint regionLocY, IPEndPoint internalEndPoint, string externalUri) | 455 | public RegionInfo(uint regionLocX, uint regionLocY, IPEndPoint internalEndPoint, string externalUri) |
@@ -475,12 +459,10 @@ namespace OpenSim.Framework | |||
475 | 459 | ||
476 | m_internalEndPoint = internalEndPoint; | 460 | m_internalEndPoint = internalEndPoint; |
477 | m_externalHostName = externalUri; | 461 | m_externalHostName = externalUri; |
478 | m_serverURI = string.Empty; | ||
479 | } | 462 | } |
480 | 463 | ||
481 | public RegionInfo() | 464 | public RegionInfo() |
482 | { | 465 | { |
483 | m_serverURI = string.Empty; | ||
484 | } | 466 | } |
485 | 467 | ||
486 | public EstateSettings EstateSettings | 468 | public EstateSettings EstateSettings |
@@ -570,23 +552,10 @@ namespace OpenSim.Framework | |||
570 | /// <summary> | 552 | /// <summary> |
571 | /// A well-formed URI for the host region server (namely "http://" + ExternalHostName) | 553 | /// A well-formed URI for the host region server (namely "http://" + ExternalHostName) |
572 | /// </summary> | 554 | /// </summary> |
573 | |||
574 | public string ServerURI | 555 | public string ServerURI |
575 | { | 556 | { |
576 | get { | 557 | get { return m_serverURI; } |
577 | if ( m_serverURI != string.Empty ) { | 558 | set { m_serverURI = value; } |
578 | return m_serverURI; | ||
579 | } else { | ||
580 | return "http://" + m_externalHostName + ":" + m_httpPort + "/"; | ||
581 | } | ||
582 | } | ||
583 | set { | ||
584 | if ( value.EndsWith("/") ) { | ||
585 | m_serverURI = value; | ||
586 | } else { | ||
587 | m_serverURI = value + '/'; | ||
588 | } | ||
589 | } | ||
590 | } | 559 | } |
591 | 560 | ||
592 | public string RegionName | 561 | public string RegionName |
diff --git a/OpenSim/Framework/Serialization/ArchiveConstants.cs b/OpenSim/Framework/Serialization/ArchiveConstants.cs index 7a9b33d..2c5e001 100644 --- a/OpenSim/Framework/Serialization/ArchiveConstants.cs +++ b/OpenSim/Framework/Serialization/ArchiveConstants.cs | |||
@@ -112,6 +112,7 @@ namespace OpenSim.Framework.Serialization | |||
112 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.LostAndFoundFolder] = ASSET_EXTENSION_SEPARATOR + "lostandfoundfolder.txt"; // Not sure if we'll ever see this | 112 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.LostAndFoundFolder] = ASSET_EXTENSION_SEPARATOR + "lostandfoundfolder.txt"; // Not sure if we'll ever see this |
113 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.LSLBytecode] = ASSET_EXTENSION_SEPARATOR + "bytecode.lso"; | 113 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.LSLBytecode] = ASSET_EXTENSION_SEPARATOR + "bytecode.lso"; |
114 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.LSLText] = ASSET_EXTENSION_SEPARATOR + "script.lsl"; | 114 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.LSLText] = ASSET_EXTENSION_SEPARATOR + "script.lsl"; |
115 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Mesh] = ASSET_EXTENSION_SEPARATOR + "mesh.llmesh"; | ||
115 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Notecard] = ASSET_EXTENSION_SEPARATOR + "notecard.txt"; | 116 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Notecard] = ASSET_EXTENSION_SEPARATOR + "notecard.txt"; |
116 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Object] = ASSET_EXTENSION_SEPARATOR + "object.xml"; | 117 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.Object] = ASSET_EXTENSION_SEPARATOR + "object.xml"; |
117 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.RootFolder] = ASSET_EXTENSION_SEPARATOR + "rootfolder.txt"; // Not sure if we'll ever see this | 118 | ASSET_TYPE_TO_EXTENSION[(sbyte)AssetType.RootFolder] = ASSET_EXTENSION_SEPARATOR + "rootfolder.txt"; // Not sure if we'll ever see this |
@@ -135,6 +136,7 @@ namespace OpenSim.Framework.Serialization | |||
135 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "lostandfoundfolder.txt"] = (sbyte)AssetType.LostAndFoundFolder; | 136 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "lostandfoundfolder.txt"] = (sbyte)AssetType.LostAndFoundFolder; |
136 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "bytecode.lso"] = (sbyte)AssetType.LSLBytecode; | 137 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "bytecode.lso"] = (sbyte)AssetType.LSLBytecode; |
137 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "script.lsl"] = (sbyte)AssetType.LSLText; | 138 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "script.lsl"] = (sbyte)AssetType.LSLText; |
139 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "mesh.llmesh"] = (sbyte)AssetType.Mesh; | ||
138 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "notecard.txt"] = (sbyte)AssetType.Notecard; | 140 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "notecard.txt"] = (sbyte)AssetType.Notecard; |
139 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "object.xml"] = (sbyte)AssetType.Object; | 141 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "object.xml"] = (sbyte)AssetType.Object; |
140 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "rootfolder.txt"] = (sbyte)AssetType.RootFolder; | 142 | EXTENSION_TO_ASSET_TYPE[ASSET_EXTENSION_SEPARATOR + "rootfolder.txt"] = (sbyte)AssetType.RootFolder; |
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index 0c1e5e0..ba8c194 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |||
@@ -348,7 +348,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
348 | { | 348 | { |
349 | try | 349 | try |
350 | { | 350 | { |
351 | //m_log.Debug("[BASE HTTP SERVER]: Handling request to " + request.RawUrl); | 351 | // m_log.Debug("[BASE HTTP SERVER]: Handling request to " + request.RawUrl); |
352 | 352 | ||
353 | Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", true); | 353 | Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", true); |
354 | 354 | ||
@@ -376,7 +376,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
376 | string path = request.RawUrl; | 376 | string path = request.RawUrl; |
377 | string handlerKey = GetHandlerKey(request.HttpMethod, path); | 377 | string handlerKey = GetHandlerKey(request.HttpMethod, path); |
378 | 378 | ||
379 | //m_log.DebugFormat("[BASE HTTP SERVER]: Handling {0} request for {1}", request.HttpMethod, path); | 379 | // m_log.DebugFormat("[BASE HTTP SERVER]: Handling {0} request for {1}", request.HttpMethod, path); |
380 | 380 | ||
381 | if (TryGetStreamHandler(handlerKey, out requestHandler)) | 381 | if (TryGetStreamHandler(handlerKey, out requestHandler)) |
382 | { | 382 | { |