diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | 16 | ||||
-rw-r--r-- | OpenSim/Framework/Communications/Clients/AuthClient.cs | 2 |
2 files changed, 16 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index 9e12d948..29a9e14 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | |||
@@ -139,9 +139,16 @@ namespace OpenSim.Framework.Communications.Cache | |||
139 | else | 139 | else |
140 | { | 140 | { |
141 | UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(fname, lname); | 141 | UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(fname, lname); |
142 | 142 | ||
143 | if (userProfile != null) | 143 | if (userProfile != null) |
144 | { | ||
145 | if ((userProfile.UserAssetURI == null || userProfile.UserAssetURI == "") && m_commsManager.NetworkServersInfo != null) | ||
146 | userProfile.UserAssetURI = m_commsManager.NetworkServersInfo.AssetURL; | ||
147 | if ((userProfile.UserInventoryURI == null || userProfile.UserInventoryURI == "") && m_commsManager.NetworkServersInfo != null) | ||
148 | userProfile.UserInventoryURI = m_commsManager.NetworkServersInfo.InventoryURL; | ||
149 | |||
144 | return AddToCaches(userProfile); | 150 | return AddToCaches(userProfile); |
151 | } | ||
145 | else | 152 | else |
146 | return null; | 153 | return null; |
147 | } | 154 | } |
@@ -169,7 +176,14 @@ namespace OpenSim.Framework.Communications.Cache | |||
169 | { | 176 | { |
170 | UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(userID); | 177 | UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(userID); |
171 | if (userProfile != null) | 178 | if (userProfile != null) |
179 | { | ||
180 | if ((userProfile.UserAssetURI == null || userProfile.UserAssetURI == "") && m_commsManager.NetworkServersInfo != null) | ||
181 | userProfile.UserAssetURI = m_commsManager.NetworkServersInfo.AssetURL; | ||
182 | if ((userProfile.UserInventoryURI == null || userProfile.UserInventoryURI == "") && m_commsManager.NetworkServersInfo != null) | ||
183 | userProfile.UserInventoryURI = m_commsManager.NetworkServersInfo.InventoryURL; | ||
184 | |||
172 | return AddToCaches(userProfile); | 185 | return AddToCaches(userProfile); |
186 | } | ||
173 | else | 187 | else |
174 | return null; | 188 | return null; |
175 | } | 189 | } |
diff --git a/OpenSim/Framework/Communications/Clients/AuthClient.cs b/OpenSim/Framework/Communications/Clients/AuthClient.cs index 6b4bfec..adae637 100644 --- a/OpenSim/Framework/Communications/Clients/AuthClient.cs +++ b/OpenSim/Framework/Communications/Clients/AuthClient.cs | |||
@@ -136,7 +136,7 @@ namespace OpenSim.Framework.Communications.Clients | |||
136 | } | 136 | } |
137 | 137 | ||
138 | Hashtable responseData = (Hashtable)UserResp.Value; | 138 | Hashtable responseData = (Hashtable)UserResp.Value; |
139 | if (responseData.ContainsKey("auth_session") && responseData["auth_session"].ToString() == "TRUE") | 139 | if (responseData != null && responseData.ContainsKey("auth_session") && responseData["auth_session"] != null && responseData["auth_session"].ToString() == "TRUE") |
140 | { | 140 | { |
141 | //System.Console.WriteLine("[Authorization]: userserver reported authorized session for user " + userID); | 141 | //System.Console.WriteLine("[Authorization]: userserver reported authorized session for user " + userID); |
142 | return true; | 142 | return true; |