diff options
author | Melanie | 2012-01-02 21:41:36 +0000 |
---|---|---|
committer | Melanie | 2012-01-02 21:41:36 +0000 |
commit | a6e305063e9045194cd8348f73f3b75d07f3883e (patch) | |
tree | c3287856ea47817715da89c737e3ccfe4d4c9f5d /OpenSim/Services | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Reduce accessibility of some J2KImage/LLImageManager properties and methods t... (diff) | |
download | opensim-SC-a6e305063e9045194cd8348f73f3b75d07f3883e.zip opensim-SC-a6e305063e9045194cd8348f73f3b75d07f3883e.tar.gz opensim-SC-a6e305063e9045194cd8348f73f3b75d07f3883e.tar.bz2 opensim-SC-a6e305063e9045194cd8348f73f3b75d07f3883e.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
OpenSim/Region/Framework/Scenes/Scene.cs
OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs
OpenSim/Services/Interfaces/IUserAccountService.cs
Diffstat (limited to '')
6 files changed, 39 insertions, 31 deletions
diff --git a/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs index c753c6a..c3268d1 100644 --- a/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs +++ b/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs | |||
@@ -199,6 +199,8 @@ namespace OpenSim.Services.Connectors | |||
199 | 199 | ||
200 | public AssetBase GetCached(string id) | 200 | public AssetBase GetCached(string id) |
201 | { | 201 | { |
202 | // m_log.DebugFormat("[ASSET SERVICE CONNECTOR]: Cache request for {0}", id); | ||
203 | |||
202 | if (m_Cache != null) | 204 | if (m_Cache != null) |
203 | return m_Cache.Get(id); | 205 | return m_Cache.Get(id); |
204 | 206 | ||
diff --git a/OpenSim/Services/Connectors/Hypergrid/HeloServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/HeloServiceConnector.cs index 8ac89cc..c030bca 100644 --- a/OpenSim/Services/Connectors/Hypergrid/HeloServiceConnector.cs +++ b/OpenSim/Services/Connectors/Hypergrid/HeloServiceConnector.cs | |||
@@ -62,7 +62,7 @@ namespace OpenSim.Services.Connectors | |||
62 | else | 62 | else |
63 | { | 63 | { |
64 | serverURI = serverURI + "xxx"; | 64 | serverURI = serverURI + "xxx"; |
65 | m_ServerURI = serverURI.Replace("?" + uri.Query, ""); | 65 | m_ServerURI = serverURI.Replace(uri.Query, ""); |
66 | m_ServerURI = m_ServerURI.TrimEnd('/') + "/helo/"; | 66 | m_ServerURI = m_ServerURI.TrimEnd('/') + "/helo/"; |
67 | } | 67 | } |
68 | } | 68 | } |
diff --git a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs index afbd093..a73bf9e 100644 --- a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs +++ b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs | |||
@@ -332,6 +332,9 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
332 | UInt32.TryParse((string)hash["http_port"], out p); | 332 | UInt32.TryParse((string)hash["http_port"], out p); |
333 | region.HttpPort = p; | 333 | region.HttpPort = p; |
334 | } | 334 | } |
335 | if (hash.ContainsKey("server_uri") && hash["server_uri"] != null) | ||
336 | region.ServerURI = (string)hash["server_uri"]; | ||
337 | |||
335 | if (hash["internal_port"] != null) | 338 | if (hash["internal_port"] != null) |
336 | { | 339 | { |
337 | int p = 0; | 340 | int p = 0; |
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs index 801b424..f38ebe8 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs | |||
@@ -292,6 +292,10 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
292 | account.UserFlags = response["UserFlags"].AsInteger(); | 292 | account.UserFlags = response["UserFlags"].AsInteger(); |
293 | account.UserLevel = response["AccessLevel"].AsInteger(); | 293 | account.UserLevel = response["AccessLevel"].AsInteger(); |
294 | account.UserTitle = response["UserTitle"].AsString(); | 294 | account.UserTitle = response["UserTitle"].AsString(); |
295 | account.LocalToGrid = true; | ||
296 | if (response.ContainsKey("LocalToGrid")) | ||
297 | account.LocalToGrid = (response["LocalToGrid"].AsString() == "true" ? true : false); | ||
298 | |||
295 | GetFirstLastName(response["Name"].AsString(), out account.FirstName, out account.LastName); | 299 | GetFirstLastName(response["Name"].AsString(), out account.FirstName, out account.LastName); |
296 | 300 | ||
297 | // Cache the user account info | 301 | // Cache the user account info |
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs index b70b425..46d68c2 100644 --- a/OpenSim/Services/GridService/HypergridLinker.cs +++ b/OpenSim/Services/GridService/HypergridLinker.cs | |||
@@ -102,50 +102,45 @@ namespace OpenSim.Services.GridService | |||
102 | 102 | ||
103 | public HypergridLinker(IConfigSource config, GridService gridService, IRegionData db) | 103 | public HypergridLinker(IConfigSource config, GridService gridService, IRegionData db) |
104 | { | 104 | { |
105 | IConfig modulesConfig = config.Configs["Modules"]; | 105 | IConfig gridConfig = config.Configs["GridService"]; |
106 | if (modulesConfig == null) | 106 | if (gridConfig == null) |
107 | return; | 107 | return; |
108 | |||
109 | if (modulesConfig.GetString("HypergridLinker", "") != "HypergridLinker") | ||
110 | return; | ||
111 | 108 | ||
112 | m_log.DebugFormat("[HYPERGRID LINKER]: Starting with db {0}", db.GetType()); | 109 | if (!gridConfig.GetBoolean("HypergridLinker", false)) |
110 | return; | ||
113 | 111 | ||
114 | m_Database = db; | 112 | m_Database = db; |
115 | m_GridService = gridService; | 113 | m_GridService = gridService; |
114 | m_log.DebugFormat("[HYPERGRID LINKER]: Starting with db {0}", db.GetType()); | ||
116 | 115 | ||
117 | IConfig gridConfig = config.Configs["GridService"]; | 116 | string assetService = gridConfig.GetString("AssetService", string.Empty); |
118 | if (gridConfig != null) | ||
119 | { | ||
120 | string assetService = gridConfig.GetString("AssetService", string.Empty); | ||
121 | 117 | ||
122 | Object[] args = new Object[] { config }; | 118 | Object[] args = new Object[] { config }; |
123 | 119 | ||
124 | if (assetService != string.Empty) | 120 | if (assetService != string.Empty) |
125 | m_AssetService = ServerUtils.LoadPlugin<IAssetService>(assetService, args); | 121 | m_AssetService = ServerUtils.LoadPlugin<IAssetService>(assetService, args); |
126 | 122 | ||
127 | string scope = gridConfig.GetString("ScopeID", string.Empty); | 123 | string scope = gridConfig.GetString("ScopeID", string.Empty); |
128 | if (scope != string.Empty) | 124 | if (scope != string.Empty) |
129 | UUID.TryParse(scope, out m_ScopeID); | 125 | UUID.TryParse(scope, out m_ScopeID); |
130 | 126 | ||
131 | // m_Check4096 = gridConfig.GetBoolean("Check4096", true); | 127 | // m_Check4096 = gridConfig.GetBoolean("Check4096", true); |
132 | 128 | ||
133 | m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", "maptiles"); | 129 | m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", "maptiles"); |
134 | 130 | ||
135 | m_ThisGatekeeper = gridConfig.GetString("Gatekeeper", string.Empty); | 131 | m_ThisGatekeeper = gridConfig.GetString("Gatekeeper", string.Empty); |
136 | try | 132 | try |
137 | { | 133 | { |
138 | m_ThisGatekeeperURI = new Uri(m_ThisGatekeeper); | 134 | m_ThisGatekeeperURI = new Uri(m_ThisGatekeeper); |
139 | } | 135 | } |
140 | catch | 136 | catch |
141 | { | 137 | { |
142 | m_log.WarnFormat("[HYPERGRID LINKER]: Malformed URL in [GridService], variable Gatekeeper = {0}", m_ThisGatekeeper); | 138 | m_log.WarnFormat("[HYPERGRID LINKER]: Malformed URL in [GridService], variable Gatekeeper = {0}", m_ThisGatekeeper); |
143 | } | 139 | } |
144 | 140 | ||
145 | m_GatekeeperConnector = new GatekeeperServiceConnector(m_AssetService); | 141 | m_GatekeeperConnector = new GatekeeperServiceConnector(m_AssetService); |
146 | 142 | ||
147 | m_log.Debug("[HYPERGRID LINKER]: Loaded all services..."); | 143 | m_log.Debug("[HYPERGRID LINKER]: Loaded all services..."); |
148 | } | ||
149 | 144 | ||
150 | if (!string.IsNullOrEmpty(m_MapTileDirectory)) | 145 | if (!string.IsNullOrEmpty(m_MapTileDirectory)) |
151 | { | 146 | { |
diff --git a/OpenSim/Services/Interfaces/IUserAccountService.cs b/OpenSim/Services/Interfaces/IUserAccountService.cs index d0fddee..6d5d2a0 100644 --- a/OpenSim/Services/Interfaces/IUserAccountService.cs +++ b/OpenSim/Services/Interfaces/IUserAccountService.cs | |||
@@ -92,6 +92,7 @@ namespace OpenSim.Services.Interfaces | |||
92 | public int UserFlags; | 92 | public int UserFlags; |
93 | public string UserTitle; | 93 | public string UserTitle; |
94 | public string UserCountry; | 94 | public string UserCountry; |
95 | public Boolean LocalToGrid = true; | ||
95 | 96 | ||
96 | public Dictionary<string, object> ServiceURLs; | 97 | public Dictionary<string, object> ServiceURLs; |
97 | 98 | ||
@@ -122,6 +123,8 @@ namespace OpenSim.Services.Interfaces | |||
122 | UserTitle = kvp["UserTitle"].ToString(); | 123 | UserTitle = kvp["UserTitle"].ToString(); |
123 | if (kvp.ContainsKey("UserCountry")) | 124 | if (kvp.ContainsKey("UserCountry")) |
124 | UserCountry = kvp["UserCountry"].ToString(); | 125 | UserCountry = kvp["UserCountry"].ToString(); |
126 | if (kvp.ContainsKey("LocalToGrid")) | ||
127 | Boolean.TryParse(kvp["LocalToGrid"].ToString(), out LocalToGrid); | ||
125 | 128 | ||
126 | if (kvp.ContainsKey("Created")) | 129 | if (kvp.ContainsKey("Created")) |
127 | Created = Convert.ToInt32(kvp["Created"].ToString()); | 130 | Created = Convert.ToInt32(kvp["Created"].ToString()); |
@@ -156,6 +159,7 @@ namespace OpenSim.Services.Interfaces | |||
156 | result["UserFlags"] = UserFlags.ToString(); | 159 | result["UserFlags"] = UserFlags.ToString(); |
157 | result["UserTitle"] = UserTitle; | 160 | result["UserTitle"] = UserTitle; |
158 | result["UserCountry"] = UserCountry; | 161 | result["UserCountry"] = UserCountry; |
162 | result["LocalToGrid"] = LocalToGrid.ToString(); | ||
159 | 163 | ||
160 | string str = string.Empty; | 164 | string str = string.Empty; |
161 | foreach (KeyValuePair<string, object> kvp in ServiceURLs) | 165 | foreach (KeyValuePair<string, object> kvp in ServiceURLs) |