diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/GridServer/GridServerBase.cs | 3 | ||||
-rw-r--r-- | OpenSim/Grid/GridServer/Program.cs | 2 | ||||
-rw-r--r-- | OpenSim/Grid/InventoryServer/AuthedSessionCache.cs (renamed from OpenSim/Framework/Communications/Cache/AuthedSessionCache.cs) | 2 | ||||
-rw-r--r-- | OpenSim/Grid/InventoryServer/InventoryServiceBase.cs (renamed from OpenSim/Framework/Communications/InventoryServiceBase.cs) | 4 | ||||
-rw-r--r-- | OpenSim/Grid/MessagingServer/Main.cs | 5 | ||||
-rw-r--r-- | OpenSim/Grid/UserServer.Modules/UserServerAvatarAppearanceModule.cs | 7 | ||||
-rw-r--r-- | OpenSim/Grid/UserServer/Main.cs | 5 |
7 files changed, 22 insertions, 6 deletions
diff --git a/OpenSim/Grid/GridServer/GridServerBase.cs b/OpenSim/Grid/GridServer/GridServerBase.cs index e3ad52a..d63ac2e 100644 --- a/OpenSim/Grid/GridServer/GridServerBase.cs +++ b/OpenSim/Grid/GridServer/GridServerBase.cs | |||
@@ -49,6 +49,7 @@ namespace OpenSim.Grid.GridServer | |||
49 | protected GridConfig m_config; | 49 | protected GridConfig m_config; |
50 | public string m_consoleType = "local"; | 50 | public string m_consoleType = "local"; |
51 | public IConfigSource m_configSource = null; | 51 | public IConfigSource m_configSource = null; |
52 | public string m_configFile = "GridServer_Config.xml"; | ||
52 | 53 | ||
53 | public GridConfig Config | 54 | public GridConfig Config |
54 | { | 55 | { |
@@ -91,7 +92,7 @@ namespace OpenSim.Grid.GridServer | |||
91 | break; | 92 | break; |
92 | } | 93 | } |
93 | MainConsole.Instance = m_console; | 94 | MainConsole.Instance = m_console; |
94 | m_config = new GridConfig("GRID SERVER", (Path.Combine(Util.configDir(), "GridServer_Config.xml"))); | 95 | m_config = new GridConfig("GRID SERVER", (Path.Combine(Util.configDir(), m_configFile))); |
95 | 96 | ||
96 | m_log.Info("[GRID]: Starting HTTP process"); | 97 | m_log.Info("[GRID]: Starting HTTP process"); |
97 | m_httpServer = new BaseHttpServer(m_config.HttpPort); | 98 | m_httpServer = new BaseHttpServer(m_config.HttpPort); |
diff --git a/OpenSim/Grid/GridServer/Program.cs b/OpenSim/Grid/GridServer/Program.cs index c7ba897..741a01b 100644 --- a/OpenSim/Grid/GridServer/Program.cs +++ b/OpenSim/Grid/GridServer/Program.cs | |||
@@ -36,6 +36,7 @@ namespace OpenSim.Grid.GridServer | |||
36 | { | 36 | { |
37 | ArgvConfigSource argvSource = new ArgvConfigSource(args); | 37 | ArgvConfigSource argvSource = new ArgvConfigSource(args); |
38 | argvSource.AddSwitch("Startup", "console", "c"); | 38 | argvSource.AddSwitch("Startup", "console", "c"); |
39 | argvSource.AddSwitch("Startup", "xmlfile", "x"); | ||
39 | 40 | ||
40 | XmlConfigurator.Configure(); | 41 | XmlConfigurator.Configure(); |
41 | 42 | ||
@@ -45,6 +46,7 @@ namespace OpenSim.Grid.GridServer | |||
45 | if (startupConfig != null) | 46 | if (startupConfig != null) |
46 | { | 47 | { |
47 | app.m_consoleType = startupConfig.GetString("console", "local"); | 48 | app.m_consoleType = startupConfig.GetString("console", "local"); |
49 | app.m_configFile = startupConfig.GetString("xmlfile", "GridServer_Config.xml"); | ||
48 | } | 50 | } |
49 | 51 | ||
50 | app.m_configSource = argvSource; | 52 | app.m_configSource = argvSource; |
diff --git a/OpenSim/Framework/Communications/Cache/AuthedSessionCache.cs b/OpenSim/Grid/InventoryServer/AuthedSessionCache.cs index d56e48a..dadf34a 100644 --- a/OpenSim/Framework/Communications/Cache/AuthedSessionCache.cs +++ b/OpenSim/Grid/InventoryServer/AuthedSessionCache.cs | |||
@@ -28,7 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | 30 | ||
31 | namespace OpenSim.Framework.Communications.Cache | 31 | namespace OpenSim.Grid.InventoryServer |
32 | { | 32 | { |
33 | public class AuthedSessionCache | 33 | public class AuthedSessionCache |
34 | { | 34 | { |
diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Grid/InventoryServer/InventoryServiceBase.cs index 309c415..f8b4949 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Grid/InventoryServer/InventoryServiceBase.cs | |||
@@ -30,8 +30,10 @@ using System.Reflection; | |||
30 | using log4net; | 30 | using log4net; |
31 | using OpenMetaverse; | 31 | using OpenMetaverse; |
32 | using OpenSim.Data; | 32 | using OpenSim.Data; |
33 | using OpenSim.Framework; | ||
34 | using OpenSim.Framework.Communications; | ||
33 | 35 | ||
34 | namespace OpenSim.Framework.Communications | 36 | namespace OpenSim.Grid.InventoryServer |
35 | { | 37 | { |
36 | /// <summary> | 38 | /// <summary> |
37 | /// Abstract base class used by local and grid implementations of an inventory service. | 39 | /// Abstract base class used by local and grid implementations of an inventory service. |
diff --git a/OpenSim/Grid/MessagingServer/Main.cs b/OpenSim/Grid/MessagingServer/Main.cs index 654e770..f2631a7 100644 --- a/OpenSim/Grid/MessagingServer/Main.cs +++ b/OpenSim/Grid/MessagingServer/Main.cs | |||
@@ -59,16 +59,19 @@ namespace OpenSim.Grid.MessagingServer | |||
59 | 59 | ||
60 | protected static string m_consoleType = "local"; | 60 | protected static string m_consoleType = "local"; |
61 | protected static IConfigSource m_config = null; | 61 | protected static IConfigSource m_config = null; |
62 | protected static string m_configFile = "MessagingServer_Config.xml"; | ||
62 | 63 | ||
63 | public static void Main(string[] args) | 64 | public static void Main(string[] args) |
64 | { | 65 | { |
65 | ArgvConfigSource argvSource = new ArgvConfigSource(args); | 66 | ArgvConfigSource argvSource = new ArgvConfigSource(args); |
66 | argvSource.AddSwitch("Startup", "console", "c"); | 67 | argvSource.AddSwitch("Startup", "console", "c"); |
68 | argvSource.AddSwitch("Startup", "xmlfile", "x"); | ||
67 | 69 | ||
68 | IConfig startupConfig = argvSource.Configs["Startup"]; | 70 | IConfig startupConfig = argvSource.Configs["Startup"]; |
69 | if (startupConfig != null) | 71 | if (startupConfig != null) |
70 | { | 72 | { |
71 | m_consoleType = startupConfig.GetString("console", "local"); | 73 | m_consoleType = startupConfig.GetString("console", "local"); |
74 | m_configFile = startupConfig.GetString("xmlfile", "MessagingServer_Config.xml"); | ||
72 | } | 75 | } |
73 | 76 | ||
74 | m_config = argvSource; | 77 | m_config = argvSource; |
@@ -164,7 +167,7 @@ namespace OpenSim.Grid.MessagingServer | |||
164 | 167 | ||
165 | protected override void StartupSpecific() | 168 | protected override void StartupSpecific() |
166 | { | 169 | { |
167 | Cfg = new MessageServerConfig("MESSAGING SERVER", (Path.Combine(Util.configDir(), "MessagingServer_Config.xml"))); | 170 | Cfg = new MessageServerConfig("MESSAGING SERVER", (Path.Combine(Util.configDir(), m_configFile))); |
168 | 171 | ||
169 | m_userDataBaseService = new UserDataBaseService(); | 172 | m_userDataBaseService = new UserDataBaseService(); |
170 | m_userDataBaseService.AddPlugin(Cfg.DatabaseProvider, Cfg.DatabaseConnect); | 173 | m_userDataBaseService.AddPlugin(Cfg.DatabaseProvider, Cfg.DatabaseConnect); |
diff --git a/OpenSim/Grid/UserServer.Modules/UserServerAvatarAppearanceModule.cs b/OpenSim/Grid/UserServer.Modules/UserServerAvatarAppearanceModule.cs index 7941679..88918d1 100644 --- a/OpenSim/Grid/UserServer.Modules/UserServerAvatarAppearanceModule.cs +++ b/OpenSim/Grid/UserServer.Modules/UserServerAvatarAppearanceModule.cs | |||
@@ -110,7 +110,12 @@ namespace OpenSim.Grid.UserServer.Modules | |||
110 | if (requestData.Contains("owner")) | 110 | if (requestData.Contains("owner")) |
111 | { | 111 | { |
112 | AvatarAppearance appearance = new AvatarAppearance(requestData); | 112 | AvatarAppearance appearance = new AvatarAppearance(requestData); |
113 | m_userDataBaseService.UpdateUserAppearance(new UUID((string)requestData["owner"]), appearance); | 113 | |
114 | // TODO: Sometime in the future we may have a database layer that is capable of updating appearance when | ||
115 | // the TextureEntry is null. When that happens, this check can be removed | ||
116 | if (appearance.Texture != null) | ||
117 | m_userDataBaseService.UpdateUserAppearance(new UUID((string)requestData["owner"]), appearance); | ||
118 | |||
114 | responseData = new Hashtable(); | 119 | responseData = new Hashtable(); |
115 | responseData["returnString"] = "TRUE"; | 120 | responseData["returnString"] = "TRUE"; |
116 | } | 121 | } |
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index 1ee53ef..baf0fd3 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs | |||
@@ -76,16 +76,19 @@ namespace OpenSim.Grid.UserServer | |||
76 | 76 | ||
77 | protected static string m_consoleType = "local"; | 77 | protected static string m_consoleType = "local"; |
78 | protected static IConfigSource m_config = null; | 78 | protected static IConfigSource m_config = null; |
79 | protected static string m_configFile = "UserServer_Config.xml"; | ||
79 | 80 | ||
80 | public static void Main(string[] args) | 81 | public static void Main(string[] args) |
81 | { | 82 | { |
82 | ArgvConfigSource argvSource = new ArgvConfigSource(args); | 83 | ArgvConfigSource argvSource = new ArgvConfigSource(args); |
83 | argvSource.AddSwitch("Startup", "console", "c"); | 84 | argvSource.AddSwitch("Startup", "console", "c"); |
85 | argvSource.AddSwitch("Startup", "xmlfile", "x"); | ||
84 | 86 | ||
85 | IConfig startupConfig = argvSource.Configs["Startup"]; | 87 | IConfig startupConfig = argvSource.Configs["Startup"]; |
86 | if (startupConfig != null) | 88 | if (startupConfig != null) |
87 | { | 89 | { |
88 | m_consoleType = startupConfig.GetString("console", "local"); | 90 | m_consoleType = startupConfig.GetString("console", "local"); |
91 | m_configFile = startupConfig.GetString("xmlfile", "UserServer_Config.xml"); | ||
89 | } | 92 | } |
90 | 93 | ||
91 | m_config = argvSource; | 94 | m_config = argvSource; |
@@ -151,7 +154,7 @@ namespace OpenSim.Grid.UserServer | |||
151 | 154 | ||
152 | protected virtual IInterServiceInventoryServices StartupCoreComponents() | 155 | protected virtual IInterServiceInventoryServices StartupCoreComponents() |
153 | { | 156 | { |
154 | Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml"))); | 157 | Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), m_configFile))); |
155 | 158 | ||
156 | m_httpServer = new BaseHttpServer(Cfg.HttpPort); | 159 | m_httpServer = new BaseHttpServer(Cfg.HttpPort); |
157 | 160 | ||