diff options
author | UbitUmarov | 2015-09-02 19:54:53 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-02 19:54:53 +0100 |
commit | a11edceb00b5b86f825bd957bdac9edb91f893dd (patch) | |
tree | c192eae26f3aadf365a66f32fc6d9ade2f0a0c61 /OpenSim/Server | |
parent | bad merge? (diff) | |
download | opensim-SC_OLD-a11edceb00b5b86f825bd957bdac9edb91f893dd.zip opensim-SC_OLD-a11edceb00b5b86f825bd957bdac9edb91f893dd.tar.gz opensim-SC_OLD-a11edceb00b5b86f825bd957bdac9edb91f893dd.tar.bz2 opensim-SC_OLD-a11edceb00b5b86f825bd957bdac9edb91f893dd.tar.xz |
seems to compile ( tests comented out)
Diffstat (limited to 'OpenSim/Server')
5 files changed, 5 insertions, 63 deletions
diff --git a/OpenSim/Server/Base/HttpServerBase.cs b/OpenSim/Server/Base/HttpServerBase.cs index a18cdc1..42a8c57 100644 --- a/OpenSim/Server/Base/HttpServerBase.cs +++ b/OpenSim/Server/Base/HttpServerBase.cs | |||
@@ -116,20 +116,6 @@ namespace OpenSim.Server.Base | |||
116 | { | 116 | { |
117 | uint https_port = (uint)networkConfig.GetInt("https_port", 0); | 117 | uint https_port = (uint)networkConfig.GetInt("https_port", 0); |
118 | 118 | ||
119 | <<<<<<< HEAD | ||
120 | string cert_path = networkConfig.GetString("cert_path",String.Empty); | ||
121 | if (cert_path == String.Empty) | ||
122 | { | ||
123 | System.Console.WriteLine("ERROR: Path to X509 certificate is missing, server can't start."); | ||
124 | Environment.Exit(1); | ||
125 | } | ||
126 | |||
127 | string cert_pass = networkConfig.GetString("cert_pass",String.Empty); | ||
128 | if (cert_pass == String.Empty) | ||
129 | { | ||
130 | System.Console.WriteLine("ERROR: Password for X509 certificate is missing, server can't start."); | ||
131 | Environment.Exit(1); | ||
132 | ======= | ||
133 | m_log.WarnFormat("[SSL]: External flag is {0}", ssl_external); | 119 | m_log.WarnFormat("[SSL]: External flag is {0}", ssl_external); |
134 | if (!ssl_external) | 120 | if (!ssl_external) |
135 | { | 121 | { |
@@ -152,7 +138,6 @@ namespace OpenSim.Server.Base | |||
152 | { | 138 | { |
153 | m_log.WarnFormat("[SSL]: SSL port is active but no SSL is used because external SSL was requested."); | 139 | m_log.WarnFormat("[SSL]: SSL port is active but no SSL is used because external SSL was requested."); |
154 | MainServer.AddHttpServer(new BaseHttpServer(https_port)); | 140 | MainServer.AddHttpServer(new BaseHttpServer(https_port)); |
155 | >>>>>>> avn/ubitvar | ||
156 | } | 141 | } |
157 | } | 142 | } |
158 | } | 143 | } |
diff --git a/OpenSim/Server/Handlers/BakedTextures/XBakesPostHandler.cs b/OpenSim/Server/Handlers/BakedTextures/XBakesPostHandler.cs index 502cecf..24f63d9 100644 --- a/OpenSim/Server/Handlers/BakedTextures/XBakesPostHandler.cs +++ b/OpenSim/Server/Handlers/BakedTextures/XBakesPostHandler.cs | |||
@@ -45,19 +45,12 @@ namespace OpenSim.Server.Handlers.BakedTextures | |||
45 | { | 45 | { |
46 | public class BakesServerPostHandler : BaseStreamHandler | 46 | public class BakesServerPostHandler : BaseStreamHandler |
47 | { | 47 | { |
48 | <<<<<<< HEAD:OpenSim/Server/Handlers/BakedTextures/XBakesPostHandler.cs | ||
49 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 48 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
50 | 49 | ||
51 | private IBakedTextureService m_BakesService; | 50 | private IBakedTextureService m_BakesService; |
52 | 51 | ||
53 | public BakesServerPostHandler(IBakedTextureService service, IServiceAuth auth) : | 52 | public BakesServerPostHandler(IBakedTextureService service, IServiceAuth auth) : |
54 | base("POST", "/bakes", auth) | 53 | base("POST", "/bakes", auth) |
55 | ======= | ||
56 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
57 | |||
58 | public MSSQLAvatarData(string connectionString, string realm) : | ||
59 | base(connectionString, realm, "Avatar") | ||
60 | >>>>>>> avn/ubitvar:OpenSim/Data/MSSQL/MSSQLAvatarData.cs | ||
61 | { | 54 | { |
62 | m_BakesService = service; | 55 | m_BakesService = service; |
63 | } | 56 | } |
diff --git a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs index 083a628..38dfffc 100644 --- a/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs +++ b/OpenSim/Server/Handlers/Map/MapAddServerConnector.cs | |||
@@ -118,11 +118,6 @@ namespace OpenSim.Server.Handlers.MapImage | |||
118 | httpResponse.StatusCode = (int)OSHttpStatusCode.ClientErrorBadRequest; | 118 | httpResponse.StatusCode = (int)OSHttpStatusCode.ClientErrorBadRequest; |
119 | return FailureResult("Bad request."); | 119 | return FailureResult("Bad request."); |
120 | } | 120 | } |
121 | <<<<<<< HEAD | ||
122 | uint x = 0, y = 0; | ||
123 | UInt32.TryParse(request["X"].ToString(), out x); | ||
124 | UInt32.TryParse(request["Y"].ToString(), out y); | ||
125 | ======= | ||
126 | int x = 0, y = 0; | 121 | int x = 0, y = 0; |
127 | // UUID scopeID = new UUID("07f8d88e-cd5e-4239-a0ed-843f75d09992"); | 122 | // UUID scopeID = new UUID("07f8d88e-cd5e-4239-a0ed-843f75d09992"); |
128 | UUID scopeID = UUID.Zero; | 123 | UUID scopeID = UUID.Zero; |
@@ -130,7 +125,6 @@ namespace OpenSim.Server.Handlers.MapImage | |||
130 | Int32.TryParse(request["Y"].ToString(), out y); | 125 | Int32.TryParse(request["Y"].ToString(), out y); |
131 | if (request.ContainsKey("SCOPE")) | 126 | if (request.ContainsKey("SCOPE")) |
132 | UUID.TryParse(request["SCOPE"].ToString(), out scopeID); | 127 | UUID.TryParse(request["SCOPE"].ToString(), out scopeID); |
133 | >>>>>>> avn/ubitvar | ||
134 | 128 | ||
135 | m_log.DebugFormat("[MAP ADD SERVER CONNECTOR]: Received map data for region at {0}-{1}", x, y); | 129 | m_log.DebugFormat("[MAP ADD SERVER CONNECTOR]: Received map data for region at {0}-{1}", x, y); |
136 | 130 | ||
@@ -142,11 +136,7 @@ namespace OpenSim.Server.Handlers.MapImage | |||
142 | if (m_GridService != null) | 136 | if (m_GridService != null) |
143 | { | 137 | { |
144 | System.Net.IPAddress ipAddr = GetCallerIP(httpRequest); | 138 | System.Net.IPAddress ipAddr = GetCallerIP(httpRequest); |
145 | <<<<<<< HEAD | ||
146 | GridRegion r = m_GridService.GetRegionByPosition(UUID.Zero, (int)Util.RegionToWorldLoc(x), (int)Util.RegionToWorldLoc(y)); | ||
147 | ======= | ||
148 | GridRegion r = m_GridService.GetRegionByPosition(UUID.Zero, (int)Util.RegionToWorldLoc((uint)x), (int)Util.RegionToWorldLoc((uint)y)); | 139 | GridRegion r = m_GridService.GetRegionByPosition(UUID.Zero, (int)Util.RegionToWorldLoc((uint)x), (int)Util.RegionToWorldLoc((uint)y)); |
149 | >>>>>>> avn/ubitvar | ||
150 | if (r != null) | 140 | if (r != null) |
151 | { | 141 | { |
152 | if (r.ExternalEndPoint.Address.ToString() != ipAddr.ToString()) | 142 | if (r.ExternalEndPoint.Address.ToString() != ipAddr.ToString()) |
@@ -167,11 +157,8 @@ namespace OpenSim.Server.Handlers.MapImage | |||
167 | byte[] data = Convert.FromBase64String(request["DATA"].ToString()); | 157 | byte[] data = Convert.FromBase64String(request["DATA"].ToString()); |
168 | 158 | ||
169 | string reason = string.Empty; | 159 | string reason = string.Empty; |
170 | <<<<<<< HEAD | 160 | |
171 | bool result = m_MapService.AddMapTile((int)x, (int)y, data, out reason); | 161 | bool result = m_MapService.AddMapTile((int)x, (int)y, data, scopeID, out reason); |
172 | ======= | ||
173 | bool result = m_MapService.AddMapTile(x, y, data, scopeID, out reason); | ||
174 | >>>>>>> avn/ubitvar | ||
175 | 162 | ||
176 | if (result) | 163 | if (result) |
177 | return SuccessResult(); | 164 | return SuccessResult(); |
diff --git a/OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs b/OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs index bc88184..cac38f5 100644 --- a/OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs +++ b/OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs | |||
@@ -380,7 +380,6 @@ namespace OpenSim.Server.Handlers | |||
380 | } | 380 | } |
381 | #endregion Interests | 381 | #endregion Interests |
382 | 382 | ||
383 | <<<<<<< HEAD | ||
384 | #region User Preferences | 383 | #region User Preferences |
385 | public bool UserPreferencesRequest(OSDMap json, ref JsonRpcResponse response) | 384 | public bool UserPreferencesRequest(OSDMap json, ref JsonRpcResponse response) |
386 | { | 385 | { |
@@ -434,8 +433,7 @@ namespace OpenSim.Server.Handlers | |||
434 | } | 433 | } |
435 | #endregion User Preferences | 434 | #endregion User Preferences |
436 | 435 | ||
437 | ======= | 436 | |
438 | >>>>>>> avn/ubitvar | ||
439 | #region Utility | 437 | #region Utility |
440 | public bool AvatarImageAssetsRequest(OSDMap json, ref JsonRpcResponse response) | 438 | public bool AvatarImageAssetsRequest(OSDMap json, ref JsonRpcResponse response) |
441 | { | 439 | { |
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index 8780a49..30418be 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | |||
@@ -149,7 +149,6 @@ namespace OpenSim.Server.Handlers.Simulation | |||
149 | if (args.ContainsKey("my_version")) | 149 | if (args.ContainsKey("my_version")) |
150 | theirVersion = args["my_version"].AsString(); | 150 | theirVersion = args["my_version"].AsString(); |
151 | 151 | ||
152 | <<<<<<< HEAD | ||
153 | List<UUID> features = new List<UUID>(); | 152 | List<UUID> features = new List<UUID>(); |
154 | 153 | ||
155 | if (args.ContainsKey("features")) | 154 | if (args.ContainsKey("features")) |
@@ -160,18 +159,12 @@ namespace OpenSim.Server.Handlers.Simulation | |||
160 | features.Add(new UUID(o.AsString())); | 159 | features.Add(new UUID(o.AsString())); |
161 | } | 160 | } |
162 | 161 | ||
163 | ======= | ||
164 | >>>>>>> avn/ubitvar | ||
165 | GridRegion destination = new GridRegion(); | 162 | GridRegion destination = new GridRegion(); |
166 | destination.RegionID = regionID; | 163 | destination.RegionID = regionID; |
167 | 164 | ||
168 | string reason; | 165 | string reason; |
169 | string version; | 166 | string version; |
170 | <<<<<<< HEAD | ||
171 | bool result = m_SimulationService.QueryAccess(destination, agentID, agentHomeURI, viaTeleport, position, theirVersion, features, out version, out reason); | 167 | bool result = m_SimulationService.QueryAccess(destination, agentID, agentHomeURI, viaTeleport, position, theirVersion, features, out version, out reason); |
172 | ======= | ||
173 | bool result = m_SimulationService.QueryAccess(destination, agentID, agentHomeURI, viaTeleport, position, theirVersion, out version, out reason); | ||
174 | >>>>>>> avn/ubitvar | ||
175 | 168 | ||
176 | responsedata["int_response_code"] = HttpStatusCode.OK; | 169 | responsedata["int_response_code"] = HttpStatusCode.OK; |
177 | 170 | ||
@@ -269,16 +262,7 @@ namespace OpenSim.Server.Handlers.Simulation | |||
269 | httpResponse.KeepAlive = false; | 262 | httpResponse.KeepAlive = false; |
270 | Encoding encoding = Encoding.UTF8; | 263 | Encoding encoding = Encoding.UTF8; |
271 | 264 | ||
272 | <<<<<<< HEAD | ||
273 | if (httpRequest.ContentType != "application/json") | 265 | if (httpRequest.ContentType != "application/json") |
274 | ======= | ||
275 | Stream inputStream = null; | ||
276 | if ((httpRequest.ContentType == "application/x-gzip" || httpRequest.Headers["Content-Encoding"] == "gzip") || (httpRequest.Headers["X-Content-Encoding"] == "gzip")) | ||
277 | inputStream = new GZipStream(request, CompressionMode.Decompress); | ||
278 | else if (httpRequest.ContentType == "application/json") | ||
279 | inputStream = request; | ||
280 | else // no go | ||
281 | >>>>>>> avn/ubitvar | ||
282 | { | 266 | { |
283 | httpResponse.StatusCode = 406; | 267 | httpResponse.StatusCode = 406; |
284 | return encoding.GetBytes("false"); | 268 | return encoding.GetBytes("false"); |
@@ -464,16 +448,13 @@ namespace OpenSim.Server.Handlers.Simulation | |||
464 | protected virtual bool CreateAgent(GridRegion source, GridRegion gatekeeper, GridRegion destination, | 448 | protected virtual bool CreateAgent(GridRegion source, GridRegion gatekeeper, GridRegion destination, |
465 | AgentCircuitData aCircuit, uint teleportFlags, bool fromLogin, out string reason) | 449 | AgentCircuitData aCircuit, uint teleportFlags, bool fromLogin, out string reason) |
466 | { | 450 | { |
467 | <<<<<<< HEAD | ||
468 | return m_SimulationService.CreateAgent(source, destination, aCircuit, teleportFlags, out reason); | ||
469 | ======= | ||
470 | reason = String.Empty; | 451 | reason = String.Empty; |
471 | if ((teleportFlags & (uint)TeleportFlags.ViaLogin) == 0) | 452 | if ((teleportFlags & (uint)TeleportFlags.ViaLogin) == 0) |
472 | { | 453 | { |
473 | Util.FireAndForget(x => | 454 | Util.FireAndForget(x => |
474 | { | 455 | { |
475 | string r; | 456 | string r; |
476 | m_SimulationService.CreateAgent(destination, aCircuit, teleportFlags, out r); | 457 | m_SimulationService.CreateAgent(source, destination, aCircuit, teleportFlags, out r); |
477 | m_log.DebugFormat("[AGENT HANDLER]: ASYNC CreateAgent {0}", r); | 458 | m_log.DebugFormat("[AGENT HANDLER]: ASYNC CreateAgent {0}", r); |
478 | }); | 459 | }); |
479 | 460 | ||
@@ -482,12 +463,10 @@ namespace OpenSim.Server.Handlers.Simulation | |||
482 | else | 463 | else |
483 | { | 464 | { |
484 | 465 | ||
485 | bool ret = m_SimulationService.CreateAgent(destination, aCircuit, teleportFlags, out reason); | 466 | bool ret = m_SimulationService.CreateAgent(source, destination, aCircuit, teleportFlags, out reason); |
486 | m_log.DebugFormat("[AGENT HANDLER]: SYNC CreateAgent {0} {1}", ret.ToString(), reason); | 467 | m_log.DebugFormat("[AGENT HANDLER]: SYNC CreateAgent {0} {1}", ret.ToString(), reason); |
487 | return ret; | 468 | return ret; |
488 | } | 469 | } |
489 | |||
490 | >>>>>>> avn/ubitvar | ||
491 | } | 470 | } |
492 | } | 471 | } |
493 | 472 | ||