Thread: [simias-svn] SF.net SVN: simias:[7321] trunk/src
Brought to you by:
srinidhi_bs
|
From: <he...@us...> - 2010-02-28 06:31:13
|
Revision: 7321
http://simias.svn.sourceforge.net/simias/?rev=7321&view=rev
Author: hegdegg
Date: 2010-02-28 06:31:06 +0000 (Sun, 28 Feb 2010)
Log Message:
-----------
While changing public and private url on the server apart from updating
config files update simias too.
Modified Paths:
--------------
trunk/src/server/setup/iFolderWebSetup.cs
trunk/src/webservices/iFolderServer.cs
Modified: trunk/src/server/setup/iFolderWebSetup.cs
===================================================================
--- trunk/src/server/setup/iFolderWebSetup.cs 2010-02-28 06:24:36 UTC (rev 7320)
+++ trunk/src/server/setup/iFolderWebSetup.cs 2010-02-28 06:31:06 UTC (rev 7321)
@@ -135,10 +135,30 @@
SetupModMono();
#endif
SetupSsl();
-
+
+ UpdateOwnership();
// CheckConnection();
}
+ /// <summary>
+ /// Change the ownership of web.config to apache user so that iFolder
+ /// server can chnage the values while running.
+ /// </summary>
+ void UpdateOwnership()
+ {
+ string MachineArch = Environment.GetEnvironmentVariable("OS_TYPE");
+ string webpath = (MachineArch.IndexOf("_64") > 0) ? Path.GetFullPath("../lib64/simias/web"): Path.GetFullPath("../lib/simiasweb");
+ string webconfigfile = Path.Combine(webpath, "web.config");
+ if (Execute("chown", "{0}:{1} {2}", apacheUser.Value, apacheGroup.Value, webconfigfile) != 0)
+ {
+ throw new Exception("Unable to set an owner for the log path.");
+ }
+ }
+
+ /// <summary>
+ /// Initialize web-access setup
+ /// </summary>
+
/// <summary>
/// Initialize web-access setup
/// </summary>
Modified: trunk/src/webservices/iFolderServer.cs
===================================================================
--- trunk/src/webservices/iFolderServer.cs 2010-02-28 06:24:36 UTC (rev 7320)
+++ trunk/src/webservices/iFolderServer.cs 2010-02-28 06:31:06 UTC (rev 7321)
@@ -586,7 +586,7 @@
bool UpdateStatus = false;
string ServerSection="Server";
string PublicAddressKey = "PublicAddress";
- string PrivateAddressKey = "PrivateAddress";
+ string PrivateAddressKey = "PrivateAddress";
string MasterAddressKey = "MasterAddress";
if (!privateUrl.ToLower().StartsWith(Uri.UriSchemeHttp))
{
@@ -596,12 +596,15 @@
{
publicUrl = (new UriBuilder(Uri.UriSchemeHttp, publicUrl)).ToString();
}
+ if (MasterUrl != null && !privateUrl.ToLower().StartsWith(Uri.UriSchemeHttp))
+ {
+ MasterUrl = (new UriBuilder(Uri.UriSchemeHttp, MasterUrl)).ToString();
+ }
// adding /simias10
privateUrl = AddVirtualPath( privateUrl );
publicUrl = AddVirtualPath( publicUrl );
-
-
+
string SimiasConfigFilePath = Path.Combine ( Store.StorePath, "Simias.config");
if ( File.Exists( Path.Combine( Store.StorePath, Simias.Configuration.DefaultConfigFileName ) ) == true )
{
@@ -618,6 +621,7 @@
XmlDocument document = new XmlDocument();
document.Load(SimiasConfigFilePath );
+
SetConfigValue( document, ServerSection, PublicAddressKey, publicUrl );
SetConfigValue( document, ServerSection, PrivateAddressKey, privateUrl );
if(MasterUrl != "")
@@ -626,6 +630,12 @@
UpdateStatus = SetConfigValueWithSSL( document, ServerSection, MasterAddressKey, MasterUrl );
if(UpdateStatus == false)
return false;
+ if (MasterUrl != null)
+ {
+ UpdateStatus = UpdateMasterURL(MasterUrl);
+ if(UpdateStatus == false)
+ return false;
+ }
}
// Commit the config file changes.
@@ -636,8 +646,52 @@
{
SmartException.Throw(ex);
}
+ // Also update in the simias.
+ SetOnMasterUpdateUri(RemoveVirtualPath(privateUrl), RemoveVirtualPath(publicUrl));
+
return UpdateStatus;
}
+ /// <summary>
+ /// Update the Master Url in the local store
+ /// </summary>
+ /// <param name="masterUrl">
+ /// A <see cref="System.String"/>
+ /// </param>
+ /// /// <returns>
+ /// A <see cref="System.Boolean"/>
+ /// </returns>
+ private static bool UpdateMasterURL( string masterUrl)
+ {
+ bool retVal = true;;
+ try
+ {
+ Store store = Store.GetStore();
+ Domain domain = store.GetDomain(store.DefaultDomain);
+ HostNode masterNode = HostNode.GetMaster(domain.ID);
+ masterNode.PrivateUrl = masterUrl;
+ domain.Commit(masterNode);
+ }
+ catch (Exception ex)
+ {
+ log.Debug("Exception in UpdateMasterURL" + ex.Message);
+ retVal = false;
+ }
+ return retVal;
+ }
+ /// <summary>
+ /// Adds simias10 into the path
+ /// </summary>
+ /// <param name="path"></param>
+ /// <returns>new path</returns>
+ private static string RemoveVirtualPath(string path)
+ {
+ path = path.TrimEnd('/');
+ if(path.EndsWith("/simias10") == true)
+ {
+ path = path.Substring(0, path.IndexOf("simias10"));
+ }
+ return path;
+ }
/// <summary>
/// Adds simias10 into the path
@@ -746,7 +800,8 @@
{
if (masterAddress.ToLower().StartsWith(Uri.UriSchemeHttps))
{
- string webPath = Path.GetFullPath("../../../../lib/simias/web");
+ string machineArch = Environment.GetEnvironmentVariable("OS_TYPE");
+ string webPath = ( machineArch.IndexOf("_64" ) > 0 ? Path.GetFullPath("../../../../lib64/simias/web"): Path.GetFullPath("../../../../lib/simias/web"));
// swap policy
ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2010-03-10 06:19:04
|
Revision: 7327
http://simias.svn.sourceforge.net/simias/?rev=7327&view=rev
Author: hegdegg
Date: 2010-03-10 06:18:57 +0000 (Wed, 10 Mar 2010)
Log Message:
-----------
Error handling for admin setup. Fixed the check of incorrect env
variable to decide the os architecture.
Modified Paths:
--------------
trunk/src/server/setup/iFolderWebSetup.cs
trunk/src/webservices/iFolderServer.cs
Modified: trunk/src/server/setup/iFolderWebSetup.cs
===================================================================
--- trunk/src/server/setup/iFolderWebSetup.cs 2010-03-10 06:10:38 UTC (rev 7326)
+++ trunk/src/server/setup/iFolderWebSetup.cs 2010-03-10 06:18:57 UTC (rev 7327)
@@ -145,13 +145,21 @@
/// </summary>
void UpdateOwnership()
{
- string MachineArch = Environment.GetEnvironmentVariable("OS_TYPE");
- string webpath = (MachineArch.IndexOf("_64") > 0) ? Path.GetFullPath("../lib64/simias/web"): Path.GetFullPath("../lib/simiasweb");
- string webconfigfile = Path.Combine(webpath, "web.config");
+ try
+ {
+ string MachineArch = Environment.GetEnvironmentVariable("HOSTTYPE");
+ string webpath = (MachineArch.IndexOf("_64") > 0) ? Path.GetFullPath("../lib64/simias/web"): Path.GetFullPath("../lib/simiasweb");
+ string webconfigfile = Path.Combine(webpath, "web.config");
- if (Execute("chown", "{0}:{1} {2}", apacheUser.Value, apacheGroup.Value, webconfigfile) != 0)
+ if (Execute("chown", "{0}:{1} {2}", apacheUser.Value, apacheGroup.Value, webconfigfile) != 0)
+ {
+ throw new Exception("Unable to set an owner for the web.config file.");
+ }
+ }
+ catch (Exception ex)
{
- throw new Exception("Unable to set an owner for the log path.");
+ Console.WriteLine("Unable to set an owner for web.config file");
+
}
}
Modified: trunk/src/webservices/iFolderServer.cs
===================================================================
--- trunk/src/webservices/iFolderServer.cs 2010-03-10 06:10:38 UTC (rev 7326)
+++ trunk/src/webservices/iFolderServer.cs 2010-03-10 06:18:57 UTC (rev 7327)
@@ -800,7 +800,7 @@
{
if (masterAddress.ToLower().StartsWith(Uri.UriSchemeHttps))
{
- string machineArch = Environment.GetEnvironmentVariable("OS_TYPE");
+ string machineArch = Environment.GetEnvironmentVariable("HOSTTYPE");
string webPath = ( machineArch.IndexOf("_64" ) > 0 ? Path.GetFullPath("../../../../lib64/simias/web"): Path.GetFullPath("../../../../lib/simias/web"));
// swap policy
ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ra...@us...> - 2010-04-21 05:45:01
|
Revision: 7334
http://simias.svn.sourceforge.net/simias/?rev=7334&view=rev
Author: ravim85
Date: 2010-04-21 05:44:54 +0000 (Wed, 21 Apr 2010)
Log Message:
-----------
These changes are for supporting muti byte chars for Authentication
Creds are encoded ans sent for Auth. If a new client is connecting to
old server, then auth fails and we fall back and send creds in
non_encoded format
Modified Paths:
--------------
trunk/src/admin/Login.aspx.cs
trunk/src/core/Common/WebState.cs
trunk/src/core/Domain/DomainAgent.cs
trunk/src/core/Sync/Http.cs
trunk/src/server/Simias.Server/Authentication.cs
trunk/src/webaccess/Login.aspx.cs
trunk/src/webservices/iFolderServer.cs
Modified: trunk/src/admin/Login.aspx.cs
===================================================================
--- trunk/src/admin/Login.aspx.cs 2010-04-21 05:41:55 UTC (rev 7333)
+++ trunk/src/admin/Login.aspx.cs 2010-04-21 05:44:54 UTC (rev 7334)
@@ -412,9 +412,16 @@
webUrl.Path = (new Uri(web.Url)).PathAndQuery;
web.Url = webUrl.Uri.ToString();
+ UTF8Encoding utf8Name = new UTF8Encoding();
+ byte[] encodedCredsByteArray = utf8Name.GetBytes(username);
+ string iFolderUserBase64 = Convert.ToBase64String(encodedCredsByteArray);
+
+ encodedCredsByteArray = utf8Name.GetBytes(password);
+ string iFolderPassBase64 = Convert.ToBase64String(encodedCredsByteArray);
+
// credentials
web.PreAuthenticate = true;
- web.Credentials = new NetworkCredential(username, password);
+ web.Credentials = new NetworkCredential(iFolderUserBase64, iFolderPassBase64);
// cookies
web.CookieContainer = new CookieContainer();
@@ -444,9 +451,8 @@
iFolderServer server = web.GetHomeServer();
Session["Version"] = server.Version;
- UTF8Encoding utf8Name = new UTF8Encoding();
- byte[] EncodedUserNameInByte = utf8Name.GetBytes(user.UserName);
- string iFolderUserBase64 = Convert.ToBase64String(EncodedUserNameInByte);
+ encodedCredsByteArray = utf8Name.GetBytes(user.UserName);
+ iFolderUserBase64 = Convert.ToBase64String(encodedCredsByteArray);
// new username cookie for 30 days
Response.Cookies["username"].Value = iFolderUserBase64;
Modified: trunk/src/core/Common/WebState.cs
===================================================================
--- trunk/src/core/Common/WebState.cs 2010-04-21 05:41:55 UTC (rev 7333)
+++ trunk/src/core/Common/WebState.cs 2010-04-21 05:44:54 UTC (rev 7334)
@@ -36,6 +36,7 @@
using System.Collections;
using System.Web;
using System.Net;
+using System.Text;
using System.Web.Services.Protocols;
using Simias.Storage;
@@ -281,7 +282,12 @@
{
member = Store.GetStore().GetDomain( DomainID ).GetMemberByID( UserID );
}
- creds = new BasicCredentials( DomainID, CollectionID, member.Name );
+
+ UTF8Encoding utf8Name = new UTF8Encoding();
+ byte[] encodedCredsByteArray = utf8Name.GetBytes(member.Name);
+ string iFolderUserBase64 = Convert.ToBase64String(encodedCredsByteArray);
+
+ creds = new BasicCredentials( DomainID, CollectionID,iFolderUserBase64);
if ( creds.Cached == true )
{
credentials = creds.GetNetworkCredential();
@@ -289,7 +295,7 @@
else
{
// Get the credentials for this collection.
- creds = new BasicCredentials( DomainID, DomainID, member.Name );
+ creds = new BasicCredentials( DomainID, DomainID, iFolderUserBase64 );
if ( creds.Cached == true )
{
credentials = creds.GetNetworkCredential();
Modified: trunk/src/core/Domain/DomainAgent.cs
===================================================================
--- trunk/src/core/Domain/DomainAgent.cs 2010-04-21 05:41:55 UTC (rev 7333)
+++ trunk/src/core/Domain/DomainAgent.cs 2010-04-21 05:44:54 UTC (rev 7334)
@@ -35,6 +35,7 @@
using System.Collections;
using System.Net;
using System.IO;
+using System.Text;
using System.Threading;
using System.Web;
using System.Xml;
@@ -247,21 +248,7 @@
request.Headers.Add(
Simias.Security.Web.AuthenticationService.Login.BasicEncodingHeader,
-#if MONO
- // bht: Fix for Bug 73324 - Client fails to authenticate if LDAP
- // username has an international character in it.
- //
- // Mono converts the username and password to a byte array
- // without paying attention to the encoding. In NLD, the
- // default encoding is UTF-8. Without this fix, we ended up
- // sending the username and password in 1252 but the server
- // was attempting to decode it as UTF-8. This fix forces the
- // username and password to be sent with Windows-1252 encoding
- // which properly gets decoded on the server.
- System.Text.Encoding.GetEncoding(1252).WebName );
-#else
- System.Text.Encoding.Default.WebName );
-#endif
+ System.Text.Encoding.UTF8.WebName );
request.Method = "POST";
request.ContentLength = 0;
@@ -553,8 +540,16 @@
domainServiceUrl = new Uri( tempUri.Uri , DomainServicePath );
}
+ UTF8Encoding utf8Name = new UTF8Encoding();
+ byte[] encodedCredsByteArray = utf8Name.GetBytes(user);
+ string iFolderUserBase64 = Convert.ToBase64String(encodedCredsByteArray);
+
+ encodedCredsByteArray = utf8Name.GetBytes(password);
+ string iFolderPassBase64 = Convert.ToBase64String(encodedCredsByteArray);
+
// Build a credential from the user name and password.
- NetworkCredential myCred = new NetworkCredential( user, password );
+ NetworkCredential myCred = new NetworkCredential( iFolderUserBase64, iFolderPassBase64 );
+ NetworkCredential myOldCred = new NetworkCredential( user, password );
// Create the domain service web client object.
DomainService domainService = new DomainService();
@@ -598,6 +593,11 @@
string baseUrl = domainServiceUrl.ToString();
baseUrl = baseUrl.Substring(0, baseUrl.LastIndexOf('/'));
+ // This flag is used to identify if server is old and not supporting multi byte login
+ // Then creds are sent with out encoding again.
+
+ bool oldServer = false;
+
//Login to the server mentioned by the user, possible the user is already provisioned and this is a different client that is creating an account
status =
this.Login(
@@ -608,12 +608,24 @@
if ((status.statusCode != SCodes.Success) && (status.statusCode != SCodes.SuccessInGrace) && (status.statusCode != SCodes.UserAlreadyMoved))
{
log.Debug("Got Status {0}", status.statusCode);
- return status;
+ if( status.statusCode == SCodes.InvalidCredentials )
+ {
+ // Post 3.8.0.2, multibyte char support for usernames and password is added
+ // If a new client is connecting to an old server, then auth will fail as creds
+ // are encoded. Hence we try once more without encoding the creds.
+ log.Debug("This might be old server 3.8.0.2 with no multi byte support, trying once more with out encoding the creds");
+ status = this.Login( new Uri( baseUrl ), domainID, myOldCred, false );
+ if ( status.statusCode == SCodes.Success || status.statusCode == SCodes.SuccessInGrace )
+ oldServer = true;
+ else
+ return status;
+ }
}
else
log.Debug("Got else Status {0}", status.statusCode);
// Get the Home Server.
+ domainService.Credentials = oldServer ? myOldCred : myCred ;
string hostID = null;
HostInfo hInfo = new HostInfo();
@@ -635,7 +647,7 @@
DomainService ds = new DomainService();
ds.CookieContainer = cookies;
ds.Url = (new Uri(masterServerURL.TrimEnd(new char[] { '/' }) + DomainService)).ToString();
- ds.Credentials = myCred;
+ ds.Credentials = oldServer ? myOldCred : myCred;
ds.PreAuthenticate = true;
// ds.Proxy = ProxyState.GetProxyState( domainServiceUrl );
ds.AllowAutoRedirect = true;
@@ -690,7 +702,7 @@
this.Login(
new Uri( hInfo.PublicAddress ),
domainID,
- myCred,
+ oldServer ? myOldCred : myCred,
false);
if ( ( status.statusCode != SCodes.Success ) && ( status.statusCode != SCodes.SuccessInGrace ) )
{
@@ -721,7 +733,7 @@
// Save the credentials
CredentialCache myCache = new CredentialCache();
- myCache.Add(new Uri(domainService.Url), "Basic", myCred);
+ myCache.Add(new Uri(domainService.Url), "Basic", oldServer ? myOldCred : myCred);
domainService.Credentials = myCache;
domainService.Timeout = 30000;
@@ -892,7 +904,22 @@
log.Debug( "Login - called" );
log.Debug( " DomainID: " + DomainID );
log.Debug( " Username: " + Username );
+
+ // This flag is used to identify if server is old and not supporting multi byte login
+ // Then creds are sent with out encoding again.
+
+ bool oldServer = false;
+ UTF8Encoding utf8Name = new UTF8Encoding();
+ byte[] encodedCredsByteArray = utf8Name.GetBytes(Username);
+ string iFolderUserBase64 = Convert.ToBase64String(encodedCredsByteArray);
+
+ encodedCredsByteArray = utf8Name.GetBytes(Password);
+ string iFolderPassBase64 = Convert.ToBase64String(encodedCredsByteArray);
+
+ NetworkCredential myCred = new NetworkCredential( iFolderUserBase64, iFolderPassBase64 );
+ NetworkCredential myOldCred = new NetworkCredential( Username, Password );
+
Simias.Authentication.Status status = null;
Domain cDomain = store.GetDomain( DomainID );
if ( cDomain != null )
@@ -911,7 +938,7 @@
this.Login(
tempUri.Uri,
DomainID,
- new NetworkCredential( Username, Password ),
+ myCred,
false );
if ( status.statusCode == SCodes.Success ||
@@ -921,16 +948,36 @@
new BasicCredentials(
DomainID,
DomainID,
- Username,
- Password );
+ iFolderUserBase64,
+ iFolderPassBase64 );
basic.Save( false );
SetDomainState( DomainID, true, true );
}
+ else
+ {
+ // Post 3.8.0.2, multibyte char support for usernames and password is added
+ // If a new client is connecting to an old server, then auth will fail as creds
+ // are encoded. Hence we try once more without encoding the creds.
+ log.Debug("possibly server is 3.8.0.2 not supporting multi byte,trying again without encoding creds ");
+ status = this.Login( tempUri.Uri, DomainID, myOldCred, false);
+ if ( status.statusCode == SCodes.Success || status.statusCode == SCodes.SuccessInGrace )
+ {
+ oldServer = true;
+ BasicCredentials basic =
+ new BasicCredentials(
+ DomainID,
+ DomainID,
+ Username,
+ Password);
+ basic.Save( false );
+ SetDomainState( DomainID, true, true);
+ }
+ }
if (status.statusCode == SCodes.UserAlreadyMoved && Password != null)
{
// Connect to master , and login to new server where user has been moved
- status = ProvisionToNewHomeServer(DomainID, new NetworkCredential(Username, Password));
+ status = ProvisionToNewHomeServer(DomainID, oldServer ? myOldCred : myCred);
return status;
}
}
Modified: trunk/src/core/Sync/Http.cs
===================================================================
--- trunk/src/core/Sync/Http.cs 2010-04-21 05:41:55 UTC (rev 7333)
+++ trunk/src/core/Sync/Http.cs 2010-04-21 05:44:54 UTC (rev 7334)
@@ -294,7 +294,16 @@
WebHeaderCollection headers = request.Headers;
headers.Add(SyncHeaders.SyncVersion, HttpService.version);
headers.Add(SyncHeaders.Method, method.ToString());
- headers.Add(SyncHeaders.UserName, userName);
+ try {
+ headers.Add(SyncHeaders.UserName, userName);
+ }catch
+ {
+ // On Windows client, for some username with multi-byte chars,
+ // Exception occurs. However, we can ignore this as we would already
+ // have the user ID with us
+ log.Debug("Syncing multi byte char user name");
+ }
+
headers.Add(SyncHeaders.UserID, userID);
try {
//TODO: could be removed?
Modified: trunk/src/server/Simias.Server/Authentication.cs
===================================================================
--- trunk/src/server/Simias.Server/Authentication.cs 2010-04-21 05:41:55 UTC (rev 7333)
+++ trunk/src/server/Simias.Server/Authentication.cs 2010-04-21 05:44:54 UTC (rev 7334)
@@ -36,6 +36,7 @@
using System.Reflection;
using System.Net;
using System.Web;
+using System.Text;
using System.Threading;
using Simias;
@@ -387,8 +388,8 @@
if ( credentials.Length == 2 )
{
- this.username = credentials[ 0 ];
- this.password = credentials[ 1 ];
+ this.username = DecodeCreds(credentials[ 0 ], encodingName);
+ this.password = DecodeCreds(credentials[ 1 ], encodingName);
this.authType = "basic";
returnStatus = true;
}
@@ -399,7 +400,30 @@
return returnStatus;
}
+
/// <summary>
+ /// Returns the decoded value of user creds if its encoded. Else will return the same [ Old Client ] .
+ /// </summary>
+ /// <returns>String - User Creds in String</returns>
+ private string DecodeCreds(string creds, string encodingName)
+ {
+ try
+ {
+ byte[] encodedCredsByteArray = Convert.FromBase64String(creds);
+ Encoding encoder = System.Text.Encoding.GetEncoding( encodingName );
+ return encoder.GetString(encodedCredsByteArray, 0, encodedCredsByteArray.Length);
+ }
+ catch(Exception ex)
+ {
+ // Exception occurs when we try to decode string which is not encoded
+ // TODO : Find the right exception and catch it.
+ return creds;
+ }
+
+ }
+
+
+ /// <summary>
/// Returns whether the object has credentials.
/// </summary>
/// <returns></returns>
@@ -454,7 +478,7 @@
defaultBasicEncodingName = Store.Config.Get( Storage.Domain.SectionName, Storage.Domain.Encoding );
if ( defaultBasicEncodingName == null )
{
- defaultBasicEncodingName = "iso-8859-1";
+ defaultBasicEncodingName = "utf-8";
}
store = Store.GetStore();
Modified: trunk/src/webaccess/Login.aspx.cs
===================================================================
--- trunk/src/webaccess/Login.aspx.cs 2010-04-21 05:41:55 UTC (rev 7333)
+++ trunk/src/webaccess/Login.aspx.cs 2010-04-21 05:44:54 UTC (rev 7334)
@@ -450,9 +450,18 @@
loginUrl.Path = (new Uri(weblogin.Url)).PathAndQuery;
weblogin.Url = loginUrl.Uri.ToString();
+ UTF8Encoding utf8Name = new UTF8Encoding();
+ byte[] encodedCredsByteArray = utf8Name.GetBytes(username);
+ string iFolderUserBase64 = Convert.ToBase64String(encodedCredsByteArray);
+
+ encodedCredsByteArray = utf8Name.GetBytes(password);
+ string iFolderPassBase64 = Convert.ToBase64String(encodedCredsByteArray);
+
+
+
// credentials
weblogin.PreAuthenticate = true;
- weblogin.Credentials = new NetworkCredential(username, password);
+ weblogin.Credentials = new NetworkCredential(iFolderUserBase64, iFolderPassBase64);
// cookies
weblogin.CookieContainer = new CookieContainer();
@@ -492,7 +501,7 @@
// credentials
web.PreAuthenticate = true;
- web.Credentials = new NetworkCredential(username, password);
+ web.Credentials = new NetworkCredential(iFolderUserBase64, iFolderPassBase64);
// cookies
web.CookieContainer = new CookieContainer();
@@ -524,9 +533,8 @@
iFolderServer server = web.GetHomeServer();
Session["Server"] = server;
- UTF8Encoding utf8Name = new UTF8Encoding();
- byte[] EncodedUserNameInByte = utf8Name.GetBytes(user.UserName);
- string iFolderUserBase64 = Convert.ToBase64String(EncodedUserNameInByte);
+ encodedCredsByteArray = utf8Name.GetBytes(user.UserName);
+ iFolderUserBase64 = Convert.ToBase64String(encodedCredsByteArray);
// new username cookie for 30 days
Response.Cookies.Remove("username");
Modified: trunk/src/webservices/iFolderServer.cs
===================================================================
--- trunk/src/webservices/iFolderServer.cs 2010-04-21 05:41:55 UTC (rev 7333)
+++ trunk/src/webservices/iFolderServer.cs 2010-04-21 05:44:54 UTC (rev 7334)
@@ -890,7 +890,15 @@
DomainService domainService = new DomainService();
domainService.Url = MasterServer.PublicUrl + "/DomainService.asmx";
- domainService.Credentials = new NetworkCredential(username, password);
+
+ UTF8Encoding utf8Name = new UTF8Encoding();
+ byte[] encodedCredsByteArray = utf8Name.GetBytes(username);
+ string iFolderUserBase64 = Convert.ToBase64String(encodedCredsByteArray);
+
+ encodedCredsByteArray = utf8Name.GetBytes(password);
+ string iFolderPassBase64 = Convert.ToBase64String(encodedCredsByteArray);
+
+ domainService.Credentials = new NetworkCredential(iFolderUserBase64, iFolderPassBase64);
domainService.PreAuthenticate = true;
publicUrl = domainService.GetHomeServer( username ).PublicAddress;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2010-04-21 11:45:32
|
Revision: 7335
http://simias.svn.sourceforge.net/simias/?rev=7335&view=rev
Author: hegdegg
Date: 2010-04-21 11:45:26 +0000 (Wed, 21 Apr 2010)
Log Message:
-----------
Changes to make slave server as master.
Modified Paths:
--------------
trunk/src/core/CollectionStore/Collection.cs
trunk/src/core/CollectionStore/HostNode.cs
trunk/src/core/Storage/PropertyTags.cs
trunk/src/server/Simias.Server/Catalog.cs
trunk/src/webservices/iFolderAdmin.asmx.cs
trunk/src/webservices/iFolderAdminLocal.asmx.cs
trunk/src/webservices/iFolderServer.cs
Modified: trunk/src/core/CollectionStore/Collection.cs
===================================================================
--- trunk/src/core/CollectionStore/Collection.cs 2010-04-21 05:44:54 UTC (rev 7334)
+++ trunk/src/core/CollectionStore/Collection.cs 2010-04-21 11:45:26 UTC (rev 7335)
@@ -676,6 +676,7 @@
}
}
+
/// <summary>
/// Get or Set the HostID for this collection.
/// </summary>
@@ -699,10 +700,52 @@
p.LocalProperty = true;
properties.ModifyNodeProperty( p );
}
+ else
+ {
+ Property p = properties.FindSingleValue( PropertyTags.HostID);
+ if ( p != null )
+ {
+ p.DeleteProperty();
+ }
+ }
}
}
/// <summary>
+ /// Get or Set the HostUri for this collection.
+ /// </summary>
+ public string HostUri
+ {
+ get
+ {
+ string hostUri = null;
+ Property p = properties.FindSingleValue( PropertyTags.HostUri );
+ if (p != null)
+ {
+ hostUri = p.ToString();
+ }
+ return hostUri;
+ }
+ set
+ {
+ if (value != null && value.Length != 0)
+ {
+ Property p = new Property( PropertyTags.HostUri, value );
+ p.LocalProperty = true;
+ properties.ModifyNodeProperty( p );
+ }
+ else
+ {
+ Property p = properties.FindSingleValue( PropertyTags.HostUri);
+ if ( p != null )
+ {
+ p.DeleteProperty();
+ }
+ }
+ }
+ }
+
+ /// <summary>
/// Gets or Sets if SSL should be used.
/// </summary>
public bool UseSSL
Modified: trunk/src/core/CollectionStore/HostNode.cs
===================================================================
--- trunk/src/core/CollectionStore/HostNode.cs 2010-04-21 05:44:54 UTC (rev 7334)
+++ trunk/src/core/CollectionStore/HostNode.cs 2010-04-21 11:45:26 UTC (rev 7335)
@@ -52,6 +52,19 @@
const string LocalHostTag = "LocalHost";
#endregion
+ public enum changeMasterStates
+ {
+ /// <summary>
+ /// Changemaster process started
+ /// </summary>
+ Started,
+
+ /// <summary>
+ /// Changemaster all updates complete
+ /// </summary>
+ Complete
+ };
+
#region Properties
/// <summary>
/// Gets/Sets the public address for this host.
@@ -92,6 +105,26 @@
Properties.ModifyNodeProperty(new Property(PropertyTags.PrivateUrl, value));
}
}
+ /// <summary>
+ /// Gets/Sets the Master server address for this host.
+ /// </summary>
+ public string MasterUrl
+ {
+ get
+ {
+ Property pa = Properties.GetSingleProperty(PropertyTags.MasterUrl);
+ if (pa != null)
+ {
+ return pa.Value.ToString();
+ }
+ throw new NotExistException(PropertyTags.MasterUrl);
+ }
+ set
+ {
+ Properties.ModifyNodeProperty(new Property(PropertyTags.MasterUrl, value));
+ }
+ }
+ /// <summary>
/// <summary>
/// Gets/Sets if HostNode is the Master Host.
@@ -109,7 +142,14 @@
}
set
{
- Properties.ModifyNodeProperty(new Property(PropertyTags.MasterHost, value));
+ if ( value )
+ {
+ Properties.ModifyNodeProperty(new Property(PropertyTags.MasterHost, value));
+ }
+ else
+ {
+ properties.DeleteSingleNodeProperty( PropertyTags.MasterHost);
+ }
}
}
@@ -135,6 +175,33 @@
}
}
+
+ /// <summary>
+ /// Gets/Sets ChangeMasterState
+ /// </summary>
+ public int ChangeMasterState
+ {
+ get
+ {
+ Property pa = Properties.GetSingleProperty(PropertyTags.ChangeMasterState);
+ int value= (pa!=null) ? (int) pa.Value:(int)-1;
+ return value;
+ }
+ set
+ {
+ if ( value != -1)
+ {
+ Properties.ModifyNodeProperty(new Property(PropertyTags.ChangeMasterState, value));
+ }
+ else
+ {
+ properties.DeleteSingleNodeProperty( PropertyTags.ChangeMasterState);
+ }
+ }
+ }
+
+
+
#endregion
#region Constructors
Modified: trunk/src/core/Storage/PropertyTags.cs
===================================================================
--- trunk/src/core/Storage/PropertyTags.cs 2010-04-21 05:44:54 UTC (rev 7334)
+++ trunk/src/core/Storage/PropertyTags.cs 2010-04-21 11:45:26 UTC (rev 7335)
@@ -274,6 +274,11 @@
/// <summary>
/// Well known property name.
/// </summary>
+ static public string HostUri = "HostUri";
+
+ /// <summary>
+ /// Well known property name.
+ /// </summary>
static public string Journal = "JournalNode";
/// <summary>
@@ -483,6 +488,11 @@
/// <summary>
/// Well known property name.
/// </summary>
+ static public string ChangeMasterState = "ChangeMasterState";
+
+ /// <summary>
+ /// Well known property name.
+ /// </summary>
static public string AggregateDiskQuota = "AggregateDiskQuota";
@@ -568,6 +578,7 @@
systemPropertyTable.Add( DomainVersion, null );
systemPropertyTable.Add( UseSSL, null);
systemPropertyTable.Add( MasterHost, null);
+ systemPropertyTable.Add( ChangeMasterState, null);
}
#endregion
Modified: trunk/src/server/Simias.Server/Catalog.cs
===================================================================
--- trunk/src/server/Simias.Server/Catalog.cs 2010-04-21 05:44:54 UTC (rev 7334)
+++ trunk/src/server/Simias.Server/Catalog.cs 2010-04-21 11:45:26 UTC (rev 7335)
@@ -69,7 +69,7 @@
private static Store store;
private static Domain domain;
private static Collection catalog;
- internal static string catalogID = "a93266fd-55de-4590-b1c7-428f2fed815d";
+ public static string catalogID = "a93266fd-55de-4590-b1c7-428f2fed815d";
internal static string catalogName = "Collection Catalogue";
private static CollectionSyncClient syncClient;
@@ -100,6 +100,25 @@
}
#endregion
+ static internal string SyncRoleProperty = "Sync Role";
+ /// <summary>
+ /// Set/Get the SyncRol
+ /// </summary>
+ public SyncRoles SyncRole
+ {
+ get
+ {
+ Collection col = store.GetCollectionByID( catalogID );
+ return (col != null)?(SyncRoles)col.Properties.GetSingleProperty( SyncRoleProperty ).Value :(Simias.Sync.SyncRoles.None);
+ }
+ set
+ {
+ Collection col = store.GetCollectionByID( catalogID );
+ Property hprop = new Property( SyncRoleProperty, value );
+ col.Properties.ModifyProperty( hprop );
+ col.Commit();
+ }
+ }
#region Private Methods
/// <summary>
/// Event handler to handle an event
@@ -1193,18 +1212,18 @@
/// Delete a catalog entry for the specified collection
/// </summary>
static public void DeleteEntryByCollectionID( string CollectionID )
- {
- log.Debug("In DeleteEntryByCollectionID ...");
- Collection c = store.GetCollectionByID(CollectionID);
- CatalogEntry entry = GetEntryByCollectionID(CollectionID);
- if(entry != null)
- {
- catalog.Commit(catalog.Delete(entry));
- c.Commit(c.Delete());
- }
- log.Debug("Out of DeleteEntryByCollectionID ...");
- return ;
- }
+ {
+ log.Debug("In DeleteEntryByCollectionID ...");
+ Collection c = store.GetCollectionByID(CollectionID);
+ CatalogEntry entry = GetEntryByCollectionID(CollectionID);
+ if(entry != null)
+ {
+ catalog.Commit(catalog.Delete(entry));
+ c.Commit(c.Delete());
+ }
+ log.Debug("Out of DeleteEntryByCollectionID ...");
+ return ;
+ }
#endregion
}
@@ -1268,7 +1287,7 @@
{
log.Debug("Changing the host ID to: {0}", value);
Property hprop = new Property( HostProperty, value );
- this.Properties.ModifyProperty( hprop );
+ this.Properties.ModifyProperty( hprop );
catalog.Commit(this);
}
}
Modified: trunk/src/webservices/iFolderAdmin.asmx.cs
===================================================================
--- trunk/src/webservices/iFolderAdmin.asmx.cs 2010-04-21 05:44:54 UTC (rev 7334)
+++ trunk/src/webservices/iFolderAdmin.asmx.cs 2010-04-21 11:45:26 UTC (rev 7335)
@@ -682,6 +682,79 @@
return base.SetIPDetails(privateIP, publicIP, MastersIP);
}
+ /// <summary>
+ /// Get the Master Server
+ /// </summary>
+ /// <returns>true/false</returns>
+ [WebMethod(Description="gets the Master server", EnableSession=true)]
+ public override iFolderServer GetMasterServer ()
+ {
+ return base.GetMasterServer();
+ }
+
+ /// <summary>
+ /// Set the Master Url for node
+ /// </summary>
+ /// <returns>true/false</returns>
+ [WebMethod(Description="sets the MasterUrl for the server", EnableSession=true)]
+ public override bool SetMasterServerUrl (string HostID, string MasterUrl)
+ {
+ return base.SetMasterServerUrl (HostID, MasterUrl);
+ }
+
+ /// <summary>
+ /// Sets this server as Master Server
+ /// </summary>
+ /// <param name="HostID"> ID(Ace value) of the server</param>
+ /// <returns>true on success/false on failure</returns>
+ [WebMethod(Description= "set the new master server", EnableSession = true)]
+ public override bool SetAsMasterServer(string hostID)
+ {
+ return base.SetAsMasterServer(hostID);
+ }
+
+ /// <summary>
+ /// Sets this server as Slave Server
+ /// </summary>
+ /// <param name="HostID"> ID(Ace value) of the new server</param>
+ /// <param name="newMasterPublicUrl"> public url of the new master server</param>
+ /// <returns>true on success/false on failure</returns>
+ [WebMethod(Description= "set the server as Slave", EnableSession = true)]
+ public override bool SetAsSlaveServer(string newMasterHostID, string newMasterPublicUrl)
+ {
+ return base.SetAsSlaveServer(newMasterHostID, newMasterPublicUrl);
+ }
+
+ /// <summary>
+ /// Set the Master Url for node
+ /// </summary>
+ /// <returns>true/false</returns>
+ [WebMethod(Description="sets the Master node attriute for the host", EnableSession=true)]
+ public override bool SetMasterNodeAttribute(string HostID, bool Value)
+ {
+ return base.SetMasterNodeAttribute (HostID, Value);
+ }
+
+ /// <summary>
+ /// Get the value of IsMaster for this server
+ /// </summary>
+ /// <returns>true/false</returns>
+ [WebMethod(Description="Get the MasterNodeAttributes for the host", EnableSession=true)]
+ public override bool GetMasterNodeAttribute (string HostID)
+ {
+ return base.GetMasterNodeAttribute (HostID);
+ }
+
+ /// <summary>
+ /// Verify attributes of servers
+ /// </summary>
+ /// <returns>true/false</returns>
+ [WebMethod(Description="Get the Attributes for the host", EnableSession=true)]
+ public override bool VerifyChangeMaster(string currentMasterHostID, string newMasterHostID)
+ {
+ return base.VerifyChangeMaster( currentMasterHostID, newMasterHostID);
+ }
+
/// <summary>
/// Get information about a user using an id or username.
/// </summary>
Modified: trunk/src/webservices/iFolderAdminLocal.asmx.cs
===================================================================
--- trunk/src/webservices/iFolderAdminLocal.asmx.cs 2010-04-21 05:44:54 UTC (rev 7334)
+++ trunk/src/webservices/iFolderAdminLocal.asmx.cs 2010-04-21 11:45:26 UTC (rev 7335)
@@ -1842,6 +1842,118 @@
return result;
}
+ /// <summary>
+ /// Get the Master Server
+ /// </summary>
+ /// <returns>true/false</returns>
+ [WebMethod(Description="gets the Master server", EnableSession=true)]
+ public virtual iFolderServer GetMasterServer ()
+ {
+ return iFolderServer.GetMasterServer();
+ }
+
+
+ /// <summary>
+ /// set the Master Url on this node.
+ /// </summary>
+ /// <returns>true/false</returns>
+ [WebMethod(Description= "set the Master Url", EnableSession = true)]
+ public virtual bool SetMasterServerUrl (string HostID, string MasterUrl)
+ {
+ bool result = false;
+ try
+ {
+ result = iFolderServer.SetMasterServerUrl (HostID, MasterUrl);
+ }
+ catch (Exception e)
+ {
+ SmartException.Throw (e);
+ }
+ return result;
+ }
+
+ /// <summary>
+ /// Sets this server as Master Server
+ /// </summary>
+ /// <param name="HostID"> ID(Ace value) of the server</param>
+ /// <returns>true on success/false on failure</returns>
+ [WebMethod(Description= "set the new master server", EnableSession = true)]
+ public virtual bool SetAsMasterServer(string hostID)
+ {
+ return iFolderServer.SetAsMasterServer( hostID );
+ }
+
+ /// <summary>
+ /// Sets this server as Slave Server
+ /// </summary>
+ /// <param name="HostID"> ID(Ace value) of the new server</param>
+ /// <param name="newMasterPublicUrl"> public url of the new master server</param>
+ /// <returns>true on success/false on failure</returns>
+ [WebMethod(Description= "set the HostID on Domain", EnableSession = true)]
+ public virtual bool SetAsSlaveServer(string newMasterHostID, string newMasterPublicUrl)
+ {
+ return iFolderServer.SetAsSlaveServer(newMasterHostID, newMasterPublicUrl);
+ }
+
+ /// <summary>
+ /// set the MasterNodeAttribute
+ /// </summary>
+ /// <returns>true/false</returns>
+ [WebMethod(Description= "set the Master node attribute", EnableSession = true)]
+ public virtual bool SetMasterNodeAttribute (string HostID, bool Value)
+ {
+ bool result = false;
+
+ try
+ {
+ result = iFolderServer.SetMasterNodeAttribute (HostID, Value);
+ }
+ catch (Exception e)
+ {
+ SmartException.Throw (e);
+ }
+ return result;
+ }
+
+ /// <summary>
+ /// get the MasterNodeAttribute
+ /// </summary>
+ /// <returns>true/false</returns>
+ [WebMethod(Description= "get the Master node attribute", EnableSession = true)]
+ public virtual bool GetMasterNodeAttribute (string HostID)
+ {
+ bool result = false;
+
+ try
+ {
+ result = iFolderServer.GetMasterNodeAttribute (HostID);
+ }
+ catch (Exception e)
+ {
+ SmartException.Throw (e);
+ }
+ return result;
+ }
+
+ /// <summary>
+ /// get the server attributes
+ /// </summary>
+ /// <returns>true/false</returns>
+ [WebMethod(Description= "get the node attributes", EnableSession = true)]
+ public virtual bool VerifyChangeMaster(string cmHostID, string nmHostID)
+ {
+ bool result = false;
+
+ try
+ {
+ result = iFolderServer.VerifyChangeMaster(cmHostID, nmHostID);
+ }
+ catch (Exception e)
+ {
+ SmartException.Throw (e);
+ }
+ return result;
+ }
/// <summary>
/// DisablePast Sharing for the system
/// </summary>
Modified: trunk/src/webservices/iFolderServer.cs
===================================================================
--- trunk/src/webservices/iFolderServer.cs 2010-04-21 05:44:54 UTC (rev 7334)
+++ trunk/src/webservices/iFolderServer.cs 2010-04-21 11:45:26 UTC (rev 7335)
@@ -41,6 +41,7 @@
using Simias.Client;
using Simias.Storage;
using Simias.Server;
+using Simias.Sync;
using Simias.LdapProvider;
namespace iFolder.WebService
@@ -86,6 +87,7 @@
[Serializable]
public class iFolderServer
{
+ internal static string catalogID = "a93266fd-55de-4590-b1c7-428f2fed815d"; //TODO: refer.
/// <summary>
/// iFolder Log Instance
/// </summary>
@@ -605,6 +607,9 @@
privateUrl = AddVirtualPath( privateUrl );
publicUrl = AddVirtualPath( publicUrl );
+ log.Debug("private Url = {0}", privateUrl);
+ log.Debug("public url = {0}", publicUrl);
+
string SimiasConfigFilePath = Path.Combine ( Store.StorePath, "Simias.config");
if ( File.Exists( Path.Combine( Store.StorePath, Simias.Configuration.DefaultConfigFileName ) ) == true )
{
@@ -651,15 +656,254 @@
return UpdateStatus;
}
+
/// <summary>
+ /// This method is used to set the Master server url into simias.config file.
+ /// </summary>
+ /// <returns>true/false based upon the success/failure </returns>
+ public static bool SetMasterServerUrl (string HostID, string MasterUrl)
+ {
+ bool UpdateStatus = false;
+ string ServerSection="Server";
+ string MasterAddressKey = "MasterAddress";
+
+ if (MasterUrl != null && !MasterUrl.ToLower().StartsWith(Uri.UriSchemeHttps))
+ {
+ MasterUrl = (new UriBuilder(Uri.UriSchemeHttps, MasterUrl)).ToString();
+ }
+ try
+ {
+ Store store = Store.GetStore();
+ Domain domain = store.GetDomain(store.DefaultDomain);
+ HostNode localhostNode = HostNode.GetLocalHost();
+ domain.HostID = HostID;
+ domain.HostUri = MasterUrl;
+ domain.Commit();
+
+ string SimiasConfigFilePath = Path.Combine ( Store.StorePath, "Simias.config");
+ if ( File.Exists( Path.Combine( Store.StorePath, Simias.Configuration.DefaultConfigFileName ) ) == true )
+ {
+ SimiasConfigFilePath = Path.Combine( Store.StorePath, Simias.Configuration.DefaultConfigFileName );
+ }
+ XmlDocument document = new XmlDocument();
+ document.Load(SimiasConfigFilePath );
+ UpdateStatus = SetConfigValueWithSSL( document, ServerSection, MasterAddressKey, MasterUrl );
+ if(UpdateStatus == false) return false;
+ CommitConfiguration( document , SimiasConfigFilePath);
+ UpdateStatus = true;
+ }
+ catch(Exception ex)
+ {
+ SmartException.Throw(ex);
+ }
+ return UpdateStatus;
+ }
+
+ /// <summary>
+ /// This method is used to set the Current Server as Slave Server
+ /// To be called while setting the Master as Slave and creating a new master server
+ /// Ensure to make this call on the server which is Master Server
+ /// <param name ="newMasterHostID">HostID (Ace value) of the new Master Server </param>
+ /// <param name ="newMasterMasterPublicUrl">New Masters Public Url, this is to be set as HostUri on the current server domain
+ /// for this server to connect to new Master Server </param>
+ /// </summary>
+ /// <returns>true/false based upon the success/failure </returns>
+ public static bool SetAsSlaveServer(string newMasterHostID, string newMasterPublicUrl)
+ {
+ log.Info("Starting SetAsSlave.....");
+
+ try
+ {
+ Store store = Store.GetStore();
+ Domain domain = store.GetDomain(store.DefaultDomain);
+ Collection cat = store.GetCollectionByID(catalogID); //Simias.Server.Catalog.catalogID);
+
+ HostNode localhostNode = HostNode.GetLocalHost();
+
+ localhostNode.ChangeMasterState = (int)HostNode.changeMasterStates.Started;
+ domain.Commit(localhostNode);
+
+ //Setting the Maset node attribute to slave
+ localhostNode.IsMasterHost = false;
+
+ // HostID of the newMaster is updated in doman HostID
+ domain.HostID = newMasterHostID;
+ log.Info("Settting HostID with new Master Server HostID : {0}", domain.HostID);
+
+ // public url of the newmaster is updated in domain HostUri
+ domain.HostUri = newMasterPublicUrl;
+ log.Info("Setting HostUri with new Master Servers Public Url : {0}", domain.HostUri);
+
+ // Sync Roles updated for each of the collections.
+
+ //Updating the domain.
+ domain.Role = Simias.Sync.SyncRoles.Slave;
+ log.Info("Setting SyncRole on the Domain to Slave ({0})", domain.Role);
+
+ // Updating Catalog
+ cat.Role = Simias.Sync.SyncRoles.Slave;
+ log.Info("Setting SyncRole on the catalog");
+
+ domain.Commit();
+ cat.Commit(cat);
+ log.Info("Commiting all value to set this server ({0} as Slave Server", localhostNode.Name);
+
+
+ localhostNode.ChangeMasterState = (int)HostNode.changeMasterStates.Complete;
+ domain.Commit(localhostNode);
+ }
+ catch(Exception ex)
+ {
+ log.Error("Exception while running SetAsSlave : {0} : {1} ", ex.Message, ex.StackTrace);
+ return false;
+ }
+ return true;
+ }
+
+ /// <summary>
+ /// This method is used to set the Current Slave Server as Master
+ /// To be called while setting the Master as Slave and creating a new master server
+ /// Ensure to make this call on the server which is Slave Server
+ /// <param name ="HostID">HostID (Ace value) of the new Master Server </param>
+ /// for this server to connect to new Master Server </param>
+ /// </summary>
+ /// <returns>true/false based upon the success/failure </returns>
+ public static bool SetAsMasterServer(string HostID)
+ {
+ log.Info("Starting SetAsMasterServer");
+ log.Info(" HostName = {0}", HostID);
+
+ try
+ {
+ Store store = Store.GetStore();
+ Domain domain = store.GetDomain(store.DefaultDomain);
+ Collection cat = store.GetCollectionByID(catalogID); //Simias.Server.Catalog.catalogID);
+
+ HostNode localhostNode = HostNode.GetHostByID(domain.ID, HostID);
+
+ localhostNode.ChangeMasterState = (int)HostNode.changeMasterStates.Started;
+ domain.Commit(localhostNode);
+ log.Info("ChangeMasterState tag set to Started on this server");
+
+ // MasterNodeAttribute updated on this server.
+ localhostNode.IsMasterHost = true;
+ log.Info("Master Node Attribute set on New Master");
+
+ // Sync Roles updated for each of the collections.
+
+ //Updating the domain.
+ domain.Role = Simias.Sync.SyncRoles.Master;
+ log.Info("Setting SyncRole on the Domain");
+
+ // Updating Catalog
+ cat.Role = Simias.Sync.SyncRoles.Master;
+ log.Info("Setting SyncRole on the catalog");
+
+ // Remove the HostId
+ domain.HostID = "";
+ log.Info("Removing the HostID entry from Slave server");
+
+ // Remove the HostUrl
+ domain.HostUri = "";
+ log.Info("Removing the HostUri entry from Slave server");
+
+ domain.Commit();
+ domain.Commit(localhostNode);
+ cat.Commit(cat);
+ log.Info("This server is set as Master server successfully.");
+
+ localhostNode.ChangeMasterState = (int)HostNode.changeMasterStates.Complete;
+ domain.Commit(localhostNode);
+ log.Info("ChangeMasterState tag updated on this server");
+ }
+ catch(Exception ex)
+ {
+ log.Error("Exception while setting new Master Server :{0} : {1}", ex.Message, ex.StackTrace);
+ return false;
+ }
+ return true;
+ }
+
+ public static bool SetMasterNodeAttribute (string HostID, bool Value)
+ {
+ try
+ {
+ Store store = Store.GetStore();
+ log.Error("Set Master store : {0}", HostID);
+ Domain domain = store.GetDomain(store.DefaultDomain);
+ //HostNode lHostNode = HostNode.GetHostByID(domain.ID, HostID);
+ HostNode lHostNode = HostNode.GetHostLocalHost();
+ lHostNode.IsMasterHost = Value;
+ domain.Commit(lHostNode);
+ }
+ catch (Exception ex)
+ {
+ log.Error("Unable to set Master Node Attribute :{0} :{1}", ex.Message, ex.StackTrace);
+ return false;
+ }
+ return true;
+ }
+
+ public static bool GetMasterNodeAttribute(string HostID)
+ {
+ try
+ {
+ Store store = Store.GetStore();
+ Domain domain = store.GetDomain(store.DefaultDomain);
+ HostNode lHostNode = HostNode.GetHostByID(domain.ID, HostID);
+ return lHostNode.IsMasterHost ;
+ }
+ catch(Exception ex)
+ {
+ throw ex;
+ }
+ }
+
+ public static bool VerifyChangeMaster(string currentMasterID, string newMasterID)
+ {
+ bool retval = true;
+ log.Info("Verifying all values after Changing Master and Slave Server");
+ try
+ {
+ Store store = Store.GetStore();
+ Domain domain = store.GetDomain(store.DefaultDomain);
+ Collection cat = store.GetCollectionByID(catalogID); //Simias.Server.Catalog.catalogID);
+
+ HostNode currentMasterNode = HostNode.GetHostByID(domain.ID, currentMasterID);
+ HostNode newMasterNode = HostNode.GetHostByID(domain.ID, newMasterID);
+
+ log.Info("Domain attributes");
+ log.Info("HostID : {0}", domain.HostID);
+ log.Info("HostUrl : {0}", domain.HostUri);
+ log.Info("Domain Sync Role : {0}", domain.Role);
+
+ log.Info("Catalog attributes");
+ log.Info("Catalog Sync Role : {0}", cat.Role);
+
+ log.Info("Current Master node attributes");
+ log.Info("Name : {0}", currentMasterNode.Name);
+ log.Info("IsMasterHost : {0}", currentMasterNode.IsMasterHost);
+ log.Info("ChangeMasterState : {0}", currentMasterNode.ChangeMasterState);
+
+ log.Info("New Master node attributes");
+ log.Info("Name : {0}", newMasterNode.Name);
+ log.Info("IsMasterHost : {0}", newMasterNode.IsMasterHost);
+ log.Info("ChangeMasterState : {0}", newMasterNode.ChangeMasterState);
+ }
+ catch (Exception ex)
+ {
+ log.Error("Uable to verify change master");
+ retval = false;
+ throw ex;
+ }
+ return retval;
+ }
+
+ /// <summary>
/// Update the Master Url in the local store
/// </summary>
- /// <param name="masterUrl">
- /// A <see cref="System.String"/>
- /// </param>
- /// /// <returns>
- /// A <see cref="System.Boolean"/>
- /// </returns>
+ /// <param name="masterUrl"> url of the master server for the domain </param>
+ /// /// <returns> true/false on success/failure </returns>
private static bool UpdateMasterURL( string masterUrl)
{
bool retVal = true;;
@@ -673,11 +917,11 @@
}
catch (Exception ex)
{
- log.Debug("Exception in UpdateMasterURL" + ex.Message);
retVal = false;
}
return retVal;
}
+
/// <summary>
/// Adds simias10 into the path
/// </summary>
@@ -727,6 +971,7 @@
}
catch(Exception ex)
{
+ log.Error("Ex at SetConfigValuewithSSL");
SmartException.Throw(ex);
}
return updated;
@@ -741,124 +986,149 @@
/// <param name="configValue">value</param>
/// <returns>true if successful</returns>
private static bool SetConfigValue(XmlDocument document, string section, string key, string configValue)
- {
+ {
bool status = false;
// xml tags
- string SectionTag = "section";
- string SettingTag = "setting";
- string NameAttr = "name";
- string ValueAttr = "value";
+ string SectionTag = "section";
+ string SettingTag = "setting";
+ string NameAttr = "name";
+ string ValueAttr = "value";
// Build an xpath for the setting.
- string str = string.Format("//{0}[@{1}='{2}']/{3}[@{1}='{4}']", SectionTag, NameAttr, section, SettingTag, key);
- XmlElement element = ( XmlElement )document.DocumentElement.SelectSingleNode(str);
- if ( configValue == null )
- {
- // If a null value is passed in, remove the element.
- try
- {
- element.ParentNode.RemoveChild( element );
- }
- catch {}
- }
- else
- {
- if (element != null)
- {
- element.SetAttribute(ValueAttr, configValue);
- status = true;
- }
- else
- {
- // The setting doesn't exist, so create it.
- element = document.CreateElement(SettingTag);
- element.SetAttribute(NameAttr, key);
- element.SetAttribute(ValueAttr, configValue);
- str = string.Format("//{0}[@{1}='{2}']", SectionTag, NameAttr, section);
- XmlElement eSection = (XmlElement)document.DocumentElement.SelectSingleNode(str);
- if ( eSection == null )
- {
- // If the section doesn't exist, create it.
- eSection = document.CreateElement( SectionTag );
- eSection.SetAttribute( NameAttr, section );
- document.DocumentElement.AppendChild( eSection );
- }
+ string str = string.Format("//{0}[@{1}='{2}']/{3}[@{1}='{4}']", SectionTag, NameAttr, section, SettingTag, key);
+ XmlElement element = ( XmlElement )document.DocumentElement.SelectSingleNode(str);
+ if ( configValue == null )
+ {
+ // If a null value is passed in, remove the element.
+ try
+ {
+ element.ParentNode.RemoveChild( element );
+ }
+ catch {}
+ }
+ else
+ {
+ if (element != null)
+ {
+ element.SetAttribute(ValueAttr, configValue);
+ status = true;
+ }
+ else
+ {
+ // The setting doesn't exist, so create it.
+ element = document.CreateElement(SettingTag);
+ element.SetAttribute(NameAttr, key);
+ element.SetAttribute(ValueAttr, configValue);
+ str = string.Format("//{0}[@{1}='{2}']", SectionTag, NameAttr, section);
+ XmlElement eSection = (XmlElement)document.DocumentElement.SelectSingleNode(str);
+ if ( eSection == null )
+ {
+ // If the section doesn't exist, create it.
+ eSection = document.CreateElement( SectionTag );
+ eSection.SetAttribute( NameAttr, secti...
[truncated message content] |
|
From: <ra...@us...> - 2010-05-17 15:43:37
|
Revision: 7363
http://simias.svn.sourceforge.net/simias/?rev=7363&view=rev
Author: ravim85
Date: 2010-05-17 15:43:29 +0000 (Mon, 17 May 2010)
Log Message:
-----------
Unlocalized strings in ServerDetails tab. Date Time of ldapsync is also
localized based on current culture. Fixed few warnings.
Modified Paths:
--------------
trunk/src/admin/Global.asax.cs
trunk/src/admin/ServerDetails.aspx.cs
trunk/src/admin/iFolderAdmin.resx
trunk/src/webservices/SyncServiceInfo.cs
Modified: trunk/src/admin/Global.asax.cs
===================================================================
--- trunk/src/admin/Global.asax.cs 2010-05-12 12:53:27 UTC (rev 7362)
+++ trunk/src/admin/Global.asax.cs 2010-05-17 15:43:29 UTC (rev 7363)
@@ -275,7 +275,7 @@
bool result = false;
if ( ( certificateProblem == 0 ) || CertificateProblem.CertEXPIRED.Equals( certificateProblem ) ||
- ( ( certificate != null ) && ( certificate.GetIssuerName().Equals( (new X509Certificate(Convert.FromBase64String(certificateString)).GetIssuerName() ) ) ) ))
+ ( ( certificate != null ) && ( certificate.Issuer.Equals( (new X509Certificate(Convert.FromBase64String(certificateString)).Issuer ) ) ) ))
{
result = true;
}
Modified: trunk/src/admin/ServerDetails.aspx.cs
===================================================================
--- trunk/src/admin/ServerDetails.aspx.cs 2010-05-12 12:53:27 UTC (rev 7362)
+++ trunk/src/admin/ServerDetails.aspx.cs 2010-05-17 15:43:29 UTC (rev 7363)
@@ -487,7 +487,7 @@
}
if (files == null || files.Length == 0) {
- reports.Add ("N/A");
+ reports.Add (GetString("NOTAPPLICABLE"));
ReportList.Enabled = false;
ViewReportButton.Enabled = false;
}
@@ -551,11 +551,11 @@
redirectUrl = server.PublicUrl;
serverStatus = true;
- Status.Text = "Online";
- LdapStatus.Text = "N/A";
- iFolderCount.Text = "N/A";
- DnsName.Text = "N/A";
- UserCount.Text = "N/A";
+ Status.Text = GetString("ONLINE");
+ LdapStatus.Text = GetString("NOTAPPLICABLE");
+ iFolderCount.Text = GetString("NOTAPPLICABLE");
+ DnsName.Text = GetString("NOTAPPLICABLE");
+ UserCount.Text = GetString("NOTAPPLICABLE");
Name.Text = server.Name;
//KLUDGE: for SSL enabling the server. Case: When the server is SSL enabled and the Web Admin is not configured for Server SSL
@@ -603,7 +603,7 @@
{
// TopNav.ShowInfo (String.Format("WebException-noproto {0} {1}", ex1.Status, remoteweb.Url));
remoteweb = web;
- Status.Text = "<font color=red><b>Offline</b></font>";
+ Status.Text = String.Format("<font color=red><b>" + GetString("OFFLINE") + "</b></font>");
serverStatus = false;
TopNav.ShowInfo (String.Format ("Unable to reach {0}. Displaying minimal information", Name.Text));
}
@@ -613,7 +613,7 @@
{
remoteweb = web;
// TopNav.ShowInfo (String.Format("WebException- {0} {1}", ex.Status, remoteweb.Url));
- Status.Text = "<font color=red><b>Offline</b></font>";
+ Status.Text = String.Format("<font color=red><b>" + GetString("OFFLINE") + "</b></font>");
serverStatus = false;
}
}
@@ -621,7 +621,7 @@
catch
{
remoteweb = web;
- Status.Text = "<font color=red><b>Offline</b></font>";
+ Status.Text = String.Format("<font color=red><b>" + GetString("OFFLINE") + "</b></font>");
serverStatus = false;
// TopNav.ShowInfo (String.Format("Exception- {0} {1}", e.Message, remoteweb.Url));
return server.Name;
@@ -636,12 +636,12 @@
iFolderSet ifolders = remoteweb.GetiFolders( iFolderType.All, 0, 1 );
iFolderCount.Text = ifolders.Total.ToString();
-// LdapStatus.Text = remoteweb.IdentitySyncGetServiceInfo ().Status;
+// LdapStatus.Text = GetString(remoteweb.IdentitySyncGetServiceInfo ().Status);
}
catch
{
//Some information failed: Does it mean the Server is not Stable ???
- Status.Text = "<font color=red><b>Online</b></font>";
+ Status.Text = String.Format("<font color=red><b>" + GetString("ONLINE") + "</b></font>");
}
Name.Text = Details.FormatInputString(server.Name, NewLineAt);
Type.Text = GetString( server.IsMaster ? "MASTER" : "SLAVE" );
@@ -737,9 +737,9 @@
{
//Pick the information from SyncService
SyncServiceInfo syncInfo = remoteweb.IdentitySyncGetServiceInfo();
- LdapUpSince.Text = syncInfo.UpSince;
+ LdapUpSince.Text = syncInfo.UpSince.ToString("F",Thread.CurrentThread.CurrentUICulture);
LdapCycles.Text = syncInfo.Cycles.ToString();
- LdapStatus.Text = syncInfo.Status;
+ LdapStatus.Text = GetString(syncInfo.Status);
LdapDeleteGraceInterval.Text = ( syncInfo.DeleteMemberGracePeriod / 60).ToString();
IDSyncInterval.Text = (syncInfo.SynchronizationInterval / 60).ToString();
@@ -1487,8 +1487,7 @@
bool currentMasterUpdateComplete = false,
newMasterUpdateComplete = false,
slaveUpdateComplete = false;
- string HostID = null,
- newServerPublicUrl = null;
+ string newServerPublicUrl = null;
iFolderServer mServer = null,
newmServer=null;
Modified: trunk/src/admin/iFolderAdmin.resx
===================================================================
--- trunk/src/admin/iFolderAdmin.resx 2010-05-12 12:53:27 UTC (rev 7362)
+++ trunk/src/admin/iFolderAdmin.resx 2010-05-17 15:43:29 UTC (rev 7363)
@@ -1311,5 +1311,20 @@
<data name="CHANGEMASTERRETRY">
<value>Unable to update master node attribute on Master and slave. Retry the operation.</value>
</data>
+ <data name="running">
+ <value>running</value>
+ </data>
+ <data name="sleeping">
+ <value>sleeping</value>
+ </data>
+ <data name="disabled">
+ <value>disabled</value>
+ </data>
+ <data name="shutdown">
+ <value>shutdown</value>
+ </data>
+ <data name="waiting">
+ <value>waiting</value>
+ </data>
</data>
</root>
Modified: trunk/src/webservices/SyncServiceInfo.cs
===================================================================
--- trunk/src/webservices/SyncServiceInfo.cs 2010-05-12 12:53:27 UTC (rev 7362)
+++ trunk/src/webservices/SyncServiceInfo.cs 2010-05-17 15:43:29 UTC (rev 7363)
@@ -70,7 +70,7 @@
/// started.
/// RFC 822 format
/// </summary>
- public string UpSince;
+ public DateTime UpSince;
/// <summary>
/// Number of cycles the engine performed
@@ -106,6 +106,7 @@
/// "sleeping"
/// "disabled"
/// "shutdown"
+ /// "waiting"
/// </summary>
public string Status;
@@ -143,16 +144,7 @@
MethodInfo SynchronizationDetailsNow=type.GetMethod(SynchronizationDetailsMethod, BindingFlags.Public | BindingFlags.Static );
SyncDetails=(SynchronizationDetailsMethod) Delegate.CreateDelegate( typeof(SynchronizationDetailsMethod), SynchronizationDetailsNow);
UpSince = DateTime.Parse(SyncDetails( (int) sync.UpDateTime));
- info.UpSince =
- String.Format(
- "{0}, {1} {2} {3} {4}:{5}:{6} GMT",
- UpSince.DayOfWeek.ToString(),
- UpSince.Day,
- LastSyncInfo.MonthsOfYear[ UpSince.Month - 1 ],
- UpSince.Year.ToString(),
- UpSince.Hour,
- UpSince.Minute,
- UpSince.Second );
+ info.UpSince = UpSince;
info.Cycles = Convert.ToInt32(SyncDetails((int) sync.SyncCycles));
@@ -173,16 +165,7 @@
else
{
- info.UpSince =
- String.Format(
- "{0}, {1} {2} {3} {4}:{5}:{6} GMT",
- Service.UpSince.DayOfWeek.ToString(),
- Service.UpSince.Day,
- LastSyncInfo.MonthsOfYear[ Service.UpSince.Month - 1 ],
- Service.UpSince.Year.ToString(),
- Service.UpSince.Hour,
- Service.UpSince.Minute,
- Service.UpSince.Second );
+ info.UpSince = Service.UpSince;
info.Cycles = Service.Cycles;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2010-05-19 16:21:09
|
Revision: 7369
http://simias.svn.sourceforge.net/simias/?rev=7369&view=rev
Author: hegdegg
Date: 2010-05-19 16:21:03 +0000 (Wed, 19 May 2010)
Log Message:
-----------
Update done to wrapper methods to take url to connect.
Updation of Simias.config file with changemaster.
Modified Paths:
--------------
trunk/src/admin/ServerDetails.aspx.cs
trunk/src/webservices/iFolderServer.cs
Modified: trunk/src/admin/ServerDetails.aspx.cs
===================================================================
--- trunk/src/admin/ServerDetails.aspx.cs 2010-05-19 12:24:26 UTC (rev 7368)
+++ trunk/src/admin/ServerDetails.aspx.cs 2010-05-19 16:21:03 UTC (rev 7369)
@@ -515,14 +515,8 @@
if ( remoteweb.ServerNeedsRepair() == true )
{
log.Info("This server needs a repair");
- RepairServerButton.Enabled = true;
- RepairServerButton.Visible = true;
+ remoteweb.RepairChangeMasterUpdates();
}
- else
- {
- RepairServerButton.Enabled = false;
- RepairServerButton.Visible = false;
- }
}
catch (WebException ex)
{
@@ -809,6 +803,7 @@
ChangeMasterButton.Text = GetString ("CHANGEMASTER");
RepairServerButton.Text= GetString("NEEDSREPAIR");
RepairServerButton.Enabled = false;
+ RepairServerButton.Visible = false;
DisableButton.Text = GetString( "DISABLE" );
DeleteButton.Text = GetString( "DELETE" );
@@ -1281,14 +1276,14 @@
/// </summary>
/// <param name="serverID">ID of the server</param>
/// <param name="ServerURL">Url of the server</param>
- protected bool SetAsSlave(string serverID, string ServerURL)
+ protected bool SetAsSlave(string connectUrl, string serverID, string ServerURL)
{
int count = 0 ;
bool retval = false;
iFolderAdmin remoteWebServer = new iFolderAdmin();
remoteWebServer.PreAuthenticate = true;
remoteWebServer.Credentials = web.Credentials;
- remoteWebServer.Url = ServerURL + "/iFolderAdmin.asmx";
+ remoteWebServer.Url = connectUrl+ "/iFolderAdmin.asmx";
while ( count <= retryCount)
{
@@ -1317,14 +1312,14 @@
/// </summary>
/// <param name="serverID">ID of the server</param>
/// <param name="ServerURL">Url of the server</param>
- protected bool SetAsMaster(string serverID, string serverURL)
+ protected bool SetAsMaster(string connectUrl, string serverID )
{
int count = 0 ;
bool retval = false;
iFolderAdmin remoteWebServer = new iFolderAdmin();
remoteWebServer.PreAuthenticate = true;
remoteWebServer.Credentials = web.Credentials;
- remoteWebServer.Url = serverURL + "/iFolderAdmin.asmx";
+ remoteWebServer.Url = connectUrl + "/iFolderAdmin.asmx";
while ( count <= retryCount)
{
@@ -1354,7 +1349,7 @@
/// <param name="serverID">ID of the server</param>
/// <param name="ServerURL">Url of the server</param>
/// <param name="nodeValue">true/false for master/slave</param>
- protected bool SetMasterNode(string serverID, string serverURL, bool nodeValue)
+ protected bool SetMasterNode(string connectUrl, string serverID, bool nodeValue)
{
int count = 0;
bool retval = false;
@@ -1362,7 +1357,7 @@
iFolderAdmin remoteWebServer = new iFolderAdmin();
remoteWebServer.PreAuthenticate = true;
remoteWebServer.Credentials = web.Credentials;
- remoteWebServer.Url = serverURL + "/iFolderAdmin.asmx";
+ remoteWebServer.Url = connectUrl + "/iFolderAdmin.asmx";
while ( count <= retryCount)
{
@@ -1392,7 +1387,7 @@
/// <param name="serverID">ID of the server</param>
/// <param name="ServerURL">Url of the server</param>
/// <param name="checkVal">true/false for master/slave</param>
- protected bool GetMasterNode(string serverID, string serverURL, bool checkVal)
+ protected bool GetMasterNode(string connectUrl, string serverID, bool checkVal)
{
int count = 0;
bool retval = false;
@@ -1400,7 +1395,7 @@
iFolderAdmin remoteWebServer = new iFolderAdmin();
remoteWebServer.PreAuthenticate = true;
remoteWebServer.Credentials = web.Credentials;
- remoteWebServer.Url = serverURL + "/iFolderAdmin.asmx";
+ remoteWebServer.Url = connectUrl + "/iFolderAdmin.asmx";
int loop = 0;
while ( count <= retryCount)
@@ -1409,11 +1404,12 @@
{
while (loop <= retryCount)
{
+ log.Info("Getting the MasterNodeAttribute for : {0}", serverID);
retval = remoteWebServer.GetMasterNodeAttribute(serverID);
if (retval != checkVal)
{
log.Info("Waiting for master node attrituge to sync accross old and new master server");
- Thread.Sleep(10000);
+ Thread.Sleep(1000);
}
loop++;
}
@@ -1438,14 +1434,14 @@
/// </summary>
/// <param name="serverID">ID of the server</param>
/// <param name="ServerURL">Url of the server</param>
- protected bool SetMasterURL(string serverID, string serverURL)
+ protected bool SetMasterURL(string connectURL, string serverID, string serverURL)
{
int count = 0;
bool retval = false;
iFolderAdmin otherSlaveServers = new iFolderAdmin();
otherSlaveServers.PreAuthenticate = true;
otherSlaveServers.Credentials = web.Credentials;
- otherSlaveServers.Url = serverURL + "/iFolderAdmin.asmx";
+ otherSlaveServers.Url = connectURL + "/iFolderAdmin.asmx";
log.Info("Connecting to : {0}", otherSlaveServers.Url);
while ( count <= retryCount)
@@ -1491,8 +1487,6 @@
iFolderServer mServer = null,
newmServer=null;
- newmServer = web.GetServer(ServerID);
- mServer = web.GetMasterServer();
log.Info("Change Master Server process Initiated");
try
{
@@ -1532,7 +1526,7 @@
// First Set current Master server to Slave
log.Info("Setting as Slave server...");
- currentMasterUpdateComplete = SetAsSlave(ServerID, mServer.PublicUrl);
+ currentMasterUpdateComplete = SetAsSlave(mServer.PublicUrl, ServerID, newmServer.PublicUrl);
if( !currentMasterUpdateComplete )
{
log.Info("Unable to set the server as slave, retry");
@@ -1543,7 +1537,7 @@
log.Info("Set as Slave Server Complete.Setting selected server as Master Server...");
// Then, Set the New Master Server
log.Info("New Master Server admin service Url = {0}", newmServer.PublicUrl);
- newMasterUpdateComplete = SetAsMaster(ServerID, newmServer.PublicUrl);
+ newMasterUpdateComplete = SetAsMaster(newmServer.PublicUrl, ServerID);
if(!newMasterUpdateComplete)
{
log.Info("Unable to set the server as Master, retry");
@@ -1552,9 +1546,9 @@
}
// Master and Slave updated, now set the Master node attribute for new Master host on both
// current master and new master
- if ( SetMasterNode(ServerID, mServer.PublicUrl, true))
+ if ( SetMasterNode(mServer.PublicUrl, mServer.ID, true))
{
- if (GetMasterNode(newmServer.ID, newmServer.PublicUrl, true) != true )
+ if (GetMasterNode(newmServer.PublicUrl, newmServer.ID, true) != true )
{
TopNav.ShowInfo(GetString("CHANGEMASTERRETRY"));
return;
@@ -1572,7 +1566,7 @@
{
if ( ifs.HostName != newmServer.HostName)
{
- if (SetMasterURL(ServerID, newServerPublicUrl) != true)
+ if (SetMasterURL(ifs.PublicUrl, ServerID, newServerPublicUrl) != true)
{
log.Info("Update master serverurl on {0} failed ", ifs.PublicUrl);
list.Add(ifs.HostName);
Modified: trunk/src/webservices/iFolderServer.cs
===================================================================
--- trunk/src/webservices/iFolderServer.cs 2010-05-19 12:24:26 UTC (rev 7368)
+++ trunk/src/webservices/iFolderServer.cs 2010-05-19 16:21:03 UTC (rev 7369)
@@ -812,9 +812,28 @@
cat.Commit(cat);
log.Info("Commiting all value to set this server ({0} as Slave Server", localhostNode.Name);
-
localhostNode.ChangeMasterState = (int)HostNode.changeMasterStates.Complete;
domain.Commit(localhostNode);
+
+ string ServerSection="Server";
+ string MasterAddressKey = "MasterAddress";
+ string SimiasConfigFilePath = Path.Combine ( Store.StorePath, "Simias.config");
+ if ( File.Exists( Path.Combine( Store.StorePath, Simias.Configuration.DefaultConfigFileName ) ) == true )
+ {
+ SimiasConfigFilePath = Path.Combine( Store.StorePath, Simias.Configuration.DefaultConfigFileName );
+ }
+ // going to update the config file
+ // Load the configuration file into an xml document.
+ XmlDocument document = new XmlDocument();
+ document.Load(SimiasConfigFilePath );
+
+ log.Info("Setting the MasterAddress in simias.config file");
+ if (! SetConfigValue( document, ServerSection, MasterAddressKey, newMasterPublicUrl))
+ {
+ log.Error("Unable to add MasterAddress from Simias.config file");
+ }
+ CommitConfiguration( document , SimiasConfigFilePath);
+ log.Debug("Simias.config file updated");
}
catch(Exception ex)
{
@@ -879,6 +898,26 @@
localhostNode.ChangeMasterState = (int)HostNode.changeMasterStates.Complete;
domain.Commit(localhostNode);
log.Info("ChangeMasterState tag updated on this server");
+
+ string ServerSection="Server";
+ string MasterAddressKey = "MasterAddress";
+ string SimiasConfigFilePath = Path.Combine ( Store.StorePath, "Simias.config");
+ if ( File.Exists( Path.Combine( Store.StorePath, Simias.Configuration.DefaultConfigFileName ) ) == true )
+ {
+ SimiasConfigFilePath = Path.Combine( Store.StorePath, Simias.Configuration.DefaultConfigFileName );
+ }
+ // going to update the config file
+ // Load the configuration file into an xml document.
+ XmlDocument document = new XmlDocument();
+ document.Load(SimiasConfigFilePath );
+
+ log.Info("Removing the MasterAddress from simias.config file");
+ if (! SetConfigValue( document, ServerSection, MasterAddressKey, null ))
+ {
+ log.Error("Unable to remove MasterAddress from simias.config file");
+ }
+ CommitConfiguration( document , SimiasConfigFilePath);
+ log.Debug("Simias.config file updated");
}
catch(Exception ex)
{
@@ -899,7 +938,7 @@
try
{
Store store = Store.GetStore();
- log.Error("Set Master store : {0}", HostID);
+ log.Info("HostID: {0}, value: {1}", HostID, Value);
Domain domain = store.GetDomain(store.DefaultDomain);
//HostNode lHostNode = HostNode.GetHostByID(domain.ID, HostID);
HostNode lHostNode = HostNode.GetLocalHost();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ra...@us...> - 2010-05-25 06:08:05
|
Revision: 7372
http://simias.svn.sourceforge.net/simias/?rev=7372&view=rev
Author: ravim85
Date: 2010-05-25 06:07:57 +0000 (Tue, 25 May 2010)
Log Message:
-----------
webbindir coded using relative path rather than using $(webbindir) in
Makefile.am - patch by CS...@fa...
Modified Paths:
--------------
trunk/src/admin/Makefile.am
trunk/src/webaccess/Makefile.am
Modified: trunk/src/admin/Makefile.am
===================================================================
--- trunk/src/admin/Makefile.am 2010-05-21 10:18:32 UTC (rev 7371)
+++ trunk/src/admin/Makefile.am 2010-05-25 06:07:57 UTC (rev 7372)
@@ -201,8 +201,8 @@
rm -rf `find $(DESTDIR)$(admindir)/images -name .svn`
cd $(srcdir)/css; cp -r * $(DESTDIR)$(admindir)/css
rm -rf `find $(DESTDIR)$(admindir)/css -name .svn`
- $(INSTALL_PROGRAM) $(DESTDIR)$(admindir)/../web/bin/SimiasLib.dll $(DESTDIR)$(admindir)/bin/
- $(INSTALL_PROGRAM) $(DESTDIR)$(admindir)/../web/bin/SimiasClient.dll $(DESTDIR)$(admindir)/bin/
+ $(INSTALL_PROGRAM) $(DESTDIR)$(webbindir)/SimiasLib.dll $(DESTDIR)$(admindir)/bin/
+ $(INSTALL_PROGRAM) $(DESTDIR)$(webbindir)/SimiasClient.dll $(DESTDIR)$(admindir)/bin/
#if !LINUX
# $(INSTALL_PROGRAM) $(LOG4NET_DIR)/log4net.dll $(DESTDIR)$(admindir)/bin
#endif
Modified: trunk/src/webaccess/Makefile.am
===================================================================
--- trunk/src/webaccess/Makefile.am 2010-05-21 10:18:32 UTC (rev 7371)
+++ trunk/src/webaccess/Makefile.am 2010-05-25 06:07:57 UTC (rev 7372)
@@ -176,7 +176,7 @@
rm -rf `find $(DESTDIR)$(webaccessdir)/help -name .svn`
cd $(srcdir)/images; cp -r * $(DESTDIR)$(webaccessdir)/images
rm -rf `find $(DESTDIR)$(webaccessdir)/images -name .svn`
- $(INSTALL_PROGRAM) $(DESTDIR)$(webaccessdir)/../web/bin/SimiasLib.dll $(DESTDIR)$(webaccessdir)/bin
+ $(INSTALL_PROGRAM) $(DESTDIR)$(webbindir)/SimiasLib.dll $(DESTDIR)$(webaccessdir)/bin
#if !LINUX
# $(INSTALL_PROGRAM) $(LOG4NET_DIR)/log4net.dll $(DESTDIR)$(webaccessdir)/bin
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2010-06-09 11:20:34
|
Revision: 7391
http://simias.svn.sourceforge.net/simias/?rev=7391&view=rev
Author: hegdegg
Date: 2010-06-09 11:20:23 +0000 (Wed, 09 Jun 2010)
Log Message:
-----------
Fix for updating the new master information for 2nd server in
multiserver setup.
Modified Paths:
--------------
trunk/src/admin/ServerDetails.aspx.cs
trunk/src/admin/iFolderAdmin.resx
trunk/src/core/CollectionStore/Collection.cs
trunk/src/webservices/iFolderServer.cs
Modified: trunk/src/admin/ServerDetails.aspx.cs
===================================================================
--- trunk/src/admin/ServerDetails.aspx.cs 2010-06-08 14:00:58 UTC (rev 7390)
+++ trunk/src/admin/ServerDetails.aspx.cs 2010-06-09 11:20:23 UTC (rev 7391)
@@ -516,6 +516,8 @@
{
log.Info("This server needs a repair");
remoteweb.RepairChangeMasterUpdates();
+ server = web.GetServer( ServerID );
+ Type.Text = GetString( server.IsMaster ? "MASTER" : "SLAVE" );
}
}
catch (WebException ex)
@@ -586,16 +588,17 @@
remoteweb.Url = turl.ToString();
redirectUrl = remoteweb.Url;
remoteweb.Url = remoteweb.Url + "/iFolderAdmin.asmx";
-// TopNav.ShowInfo (String.Format("WebException-noproto {0} ", remoteweb.Url));
+ log.Info (String.Format("Connecting to {0} ", remoteweb.Url));
try
{
remoteweb.GetAuthenticatedUser();
}
- //catch (WebException ex1)
- catch
+ catch (Exception ex1)
+ //catch
{
// TopNav.ShowInfo (String.Format("WebException-noproto {0} {1}", ex1.Status, remoteweb.Url));
+ log.Info (String.Format("Exception-noproto {0} {1}", ex1.StackTrace, ex1.Message));
remoteweb = web;
Status.Text = String.Format("<font color=red><b>" + GetString("OFFLINE") + "</b></font>");
serverStatus = false;
@@ -649,6 +652,7 @@
MasterIP.Visible = MasterIP.Enabled = true;
MasterIP.Text = ldapInfo.MasterURL;
MasterUri.Text = GetString( "MASTERURI" );
+ ChangeMasterButton.Visible = true;
ChangeMasterButton.Enabled = true;
}
else
@@ -656,6 +660,7 @@
MasterIP.Enabled = false;
MasterIP.Text = "";
MasterUri.Text = "";
+ ChangeMasterButton.Visible = false;
ChangeMasterButton.Enabled = false;
}
@@ -1284,6 +1289,7 @@
remoteWebServer.PreAuthenticate = true;
remoteWebServer.Credentials = web.Credentials;
remoteWebServer.Url = connectUrl+ "/iFolderAdmin.asmx";
+ log.Info("Connecting to : {0}", remoteWebServer.Url);
while ( count <= retryCount)
{
@@ -1320,6 +1326,7 @@
remoteWebServer.PreAuthenticate = true;
remoteWebServer.Credentials = web.Credentials;
remoteWebServer.Url = connectUrl + "/iFolderAdmin.asmx";
+ log.Info("Connecting to : {0}", remoteWebServer.Url);
while ( count <= retryCount)
{
@@ -1346,8 +1353,8 @@
/// <summary>
/// Wrapper funtion to call SetAsMasterNodeAttribute
/// </summary>
+ /// <param name="connectUrl">Url of the server</param>
/// <param name="serverID">ID of the server</param>
- /// <param name="ServerURL">Url of the server</param>
/// <param name="nodeValue">true/false for master/slave</param>
protected bool SetMasterNode(string connectUrl, string serverID, bool nodeValue)
{
@@ -1358,6 +1365,7 @@
remoteWebServer.PreAuthenticate = true;
remoteWebServer.Credentials = web.Credentials;
remoteWebServer.Url = connectUrl + "/iFolderAdmin.asmx";
+ log.Info("Connecting to : {0}", remoteWebServer.Url);
while ( count <= retryCount)
{
@@ -1409,9 +1417,9 @@
if (retval != checkVal)
{
log.Info("Waiting for master node attrituge to sync accross old and new master server");
- Thread.Sleep(1000);
+ Thread.Sleep(5000);
}
- loop++;
+ loop++; count ++;
}
}
catch(Exception ex)
@@ -1436,6 +1444,7 @@
/// <param name="ServerURL">Url of the server</param>
protected bool SetMasterURL(string connectURL, string serverID, string serverURL)
{
+ log.Info("SetMasterURL");
int count = 0;
bool retval = false;
iFolderAdmin otherSlaveServers = new iFolderAdmin();
@@ -1448,13 +1457,14 @@
{
try
{
+ log.Info("will call setmasterUrls : {0} :{1} ", serverID, serverURL);
retval = otherSlaveServers.SetMasterServerUrl(serverID, serverURL);
break;
}
catch(Exception ex)
{
log.Info("Caught exception while SetMasterURL : {0} : {1}", ex.Message, ex.StackTrace);
- if (ex.Message.IndexOf("InvalidOperation") >= 0)
+ if (ex.Message.IndexOf("InvalidOperation") >= 0 )
{
count ++;
continue;
@@ -1544,6 +1554,7 @@
TopNav.ShowError(GetString("UNABLETOSETASMASTER"));
return;
}
+ log.Info("SetAsMaster Complete. Setting Node attributes");
// Master and Slave updated, now set the Master node attribute for new Master host on both
// current master and new master
if ( SetMasterNode(mServer.PublicUrl, mServer.ID, true))
@@ -1564,12 +1575,13 @@
StringBuilder failedServers = new System.Text.StringBuilder();
foreach(iFolderServer ifs in iFolderServers)
{
- if ( ifs.HostName != newmServer.HostName)
+ log.Info("Calling server : {0}: {1}", ifs.Name, ifs.PublicUrl);
+ if ( ifs.Name != newmServer.Name && ifs.Name != mServer.Name )
{
- if (SetMasterURL(ifs.PublicUrl, ServerID, newServerPublicUrl) != true)
+ if (SetMasterURL(ifs.PublicUrl.ToString(), ServerID, newServerPublicUrl) != true)
{
log.Info("Update master serverurl on {0} failed ", ifs.PublicUrl);
- list.Add(ifs.HostName);
+ list.Add(ifs.Name);
}
}
}
@@ -1580,7 +1592,6 @@
failedServers.Append(list[i].ToString()).Append(" ");
}
log.Info("Unable to set master url on : {0}", failedServers.ToString());
- TopNav.ShowError(GetString("UPDATEMASTERURLONSLAVEFAILED") + failedServers.ToString());
}
else
{
@@ -1590,7 +1601,6 @@
else
{
log.Info(String.Format ("Unable to get new Master ServerID and newServerPublicUrl, retry"));
- TopNav.ShowError(GetString("CHANGEMASTERINFOFAILED"));
}
}
else
@@ -1601,17 +1611,14 @@
finally
{
ChangeMasterButton.Enabled = false;
- /* this is just to get all the changes done on both the
- servers. does nothing other than logging. Will be useful
- for debuggind in case of any error */
- if (mServer != null && newmServer != null)
- web.VerifyChangeMaster(mServer.ID, newmServer.ID);
if (currentMasterUpdateComplete && newMasterUpdateComplete &&
slaveUpdateComplete)
{
- TopNav.ShowInfo (String.Format (GetString ("CHANGEMASTERSUCCESSFUL"), newServerPublicUrl));
+ TopNav.ShowInfo (String.Format (GetString ("CHANGEMASTERSUCCESSFUL"), newmServer.Name));
}
+ else
+ TopNav.ShowInfo (String.Format (GetString ("CHANGEMASTERWITHWARNING"), newmServer.Name));
}
return;
}
Modified: trunk/src/admin/iFolderAdmin.resx
===================================================================
--- trunk/src/admin/iFolderAdmin.resx 2010-06-08 14:00:58 UTC (rev 7390)
+++ trunk/src/admin/iFolderAdmin.resx 2010-06-09 11:20:23 UTC (rev 7391)
@@ -1300,8 +1300,11 @@
<value>Unable to get Server ID and New Server Public URL.</value>
</data>
<data name="CHANGEMASTERSUCCESSFUL">
- <value>Successfully changed the Master and Slave. New Master is {0}. Restart all servers for the changes to take effect.</value>
+ <value>Upgraded {0} as master server. Restart all servers for the changes to take effect.</value>
</data>
+ <data name="CHANGEMASTERWITHWARNING">
+ <value>Upgraded {0} as master server with exceptions. Refer Simias.log for more info. Restart all servers for the changes to take effect.</value>
+ </data>
<data name="CHANGEMASTERFAILED">
<value>Unable to change the Master and Slave. Check log files for more information.</value>
</data>
Modified: trunk/src/core/CollectionStore/Collection.cs
===================================================================
--- trunk/src/core/CollectionStore/Collection.cs 2010-06-08 14:00:58 UTC (rev 7390)
+++ trunk/src/core/CollectionStore/Collection.cs 2010-06-09 11:20:23 UTC (rev 7391)
@@ -820,7 +820,7 @@
{
if (value != null && value.Length != 0)
{
- Property p = new Property( PropertyTags.HostUri, value );
+ Property p = new Property( PropertyTags.HostUri, new Uri(value) );
p.LocalProperty = true;
properties.ModifyNodeProperty( p );
}
Modified: trunk/src/webservices/iFolderServer.cs
===================================================================
--- trunk/src/webservices/iFolderServer.cs 2010-06-08 14:00:58 UTC (rev 7390)
+++ trunk/src/webservices/iFolderServer.cs 2010-06-09 11:20:23 UTC (rev 7391)
@@ -87,7 +87,6 @@
[Serializable]
public class iFolderServer
{
- internal static string catalogID = "a93266fd-55de-4590-b1c7-428f2fed815d"; //TODO: refer.
/// <summary>
/// iFolder Log Instance
/// </summary>
@@ -252,7 +251,6 @@
string host = ldapSettings.Host;
bool SSL = ldapSettings.SSL;
string proxydn = ldapSettings.ProxyDN;
- string proxypwd = ldapSettings.ProxyPassword;
ProxyUser pu = new Simias.LdapProvider.ProxyUser();
string pwd2 = pu.Password;
string proxyfilename = "ldapdetails";
@@ -763,7 +761,6 @@
string ServerSection="Server";
string PublicAddressKey = "PublicAddress";
string PrivateAddressKey = "PrivateAddress";
- string MasterAddressKey = "MasterAddress";
if (!privateUrl.ToLower().StartsWith(Uri.UriSchemeHttp))
{
privateUrl = (new UriBuilder(Uri.UriSchemeHttp, privateUrl)).ToString();
@@ -797,28 +794,25 @@
{
// going to update the config file
// Load the configuration file into an xml document.
- XmlDocument document = new XmlDocument();
- document.Load(SimiasConfigFilePath );
+ XmlDocument document = new XmlDocument();
+ document.Load(SimiasConfigFilePath );
-
SetConfigValue( document, ServerSection, PublicAddressKey, publicUrl );
- SetConfigValue( document, ServerSection, PrivateAddressKey, privateUrl );
+ SetConfigValue( document, ServerSection, PrivateAddressKey, privateUrl );
if(MasterUrl != "")
- {
- /// it means its a slave server, so set the masters IP into config file
- UpdateStatus = SetConfigValueWithSSL( document, ServerSection, MasterAddressKey, MasterUrl );
- if(UpdateStatus == false)
- return false;
+ {
+ //verify and update simias too.
+ UpdateSimiasAndConfig(MasterUrl);
if (MasterUrl != null)
{
UpdateStatus = UpdateMasterURL(MasterUrl);
if(UpdateStatus == false)
return false;
}
- }
+ }
// Commit the config file changes.
- CommitConfiguration( document , SimiasConfigFilePath);
+ CommitConfiguration( document , SimiasConfigFilePath);
UpdateStatus = true;
}
catch(Exception ex)
@@ -840,7 +834,7 @@
bool needsRepair= false;
Store store = Store.GetStore();
Domain domain = store.GetDomain(store.DefaultDomain);
- Collection cat = store.GetCollectionByID(catalogID); //Simias.Server.Catalog.catalogID);
+ Collection cat = store.GetCollectionByID(Simias.Server.Catalog.catalogID);
HostNode localhostNode = HostNode.GetLocalHost();
@@ -890,12 +884,28 @@
}
catch (Exception ex)
{
- log.Info("Exception throw while RepairChangeMasterUpdate()");
+ log.Error("Exception throw while RepairChangeMasterUpdate() : {0}", ex.StackTrace);
status = false;
}
return status;
}
+ public static bool UpdateSimiasAndConfig(string MasterUrl)
+ {
+ bool status = false;
+ Store store = Store.GetStore();
+ Domain domain = store.GetDomain(store.DefaultDomain);
+ if ( domain.HostUri == MasterUrl)
+ {
+ status = SetMasterServerUrl(domain.HostID, domain.HostUri);
+ }
+ else
+ {
+ log.Error("New master url does not match with iFolder domain master url");
+ }
+ return status;
+ }
+
/// <summary>
/// This method is used to set the Master server url into simias.config file.
/// </summary>
@@ -905,25 +915,26 @@
bool UpdateStatus = false;
string ServerSection="Server";
string MasterAddressKey = "MasterAddress";
-
- if (MasterUrl != null && !MasterUrl.ToLower().StartsWith(Uri.UriSchemeHttps))
- {
- MasterUrl = (new UriBuilder(Uri.UriSchemeHttps, MasterUrl)).ToString();
- }
try
{
Store store = Store.GetStore();
Domain domain = store.GetDomain(store.DefaultDomain);
- HostNode localhostNode = HostNode.GetLocalHost();
domain.HostID = HostID;
- domain.HostUri = MasterUrl;
+ domain.HostUri = MasterUrl;
domain.Commit();
+ Collection cat = store.GetCollectionByID(Simias.Server.Catalog.catalogID);
+ cat.HostID = HostID;
+ cat.Commit(cat);
string SimiasConfigFilePath = Path.Combine ( Store.StorePath, "Simias.config");
if ( File.Exists( Path.Combine( Store.StorePath, Simias.Configuration.DefaultConfigFileName ) ) == true )
{
SimiasConfigFilePath = Path.Combine( Store.StorePath, Simias.Configuration.DefaultConfigFileName );
}
+ else
+ {
+ log.Info("Simias.config file does not exist");
+ }
XmlDocument document = new XmlDocument();
document.Load(SimiasConfigFilePath );
UpdateStatus = SetConfigValueWithSSL( document, ServerSection, MasterAddressKey, MasterUrl );
@@ -955,7 +966,7 @@
{
Store store = Store.GetStore();
Domain domain = store.GetDomain(store.DefaultDomain);
- Collection cat = store.GetCollectionByID(catalogID); //Simias.Server.Catalog.catalogID);
+ Collection cat = store.GetCollectionByID(Simias.Server.Catalog.catalogID);
HostNode localhostNode = HostNode.GetLocalHost();
@@ -979,6 +990,7 @@
domain.Role = Simias.Sync.SyncRoles.Slave;
log.Info("Setting SyncRole on the Domain to Slave ({0})", domain.Role);
+ domain.SystemSyncStatus = (domain.SystemSyncStatus | (ulong)Simias.Sync.CollectionSyncClient.StateMap.CatalogSyncOnce) ;
// Updating Catalog
cat.Role = Simias.Sync.SyncRoles.Slave;
log.Info("Setting SyncRole on the catalog");
@@ -1035,7 +1047,7 @@
{
Store store = Store.GetStore();
Domain domain = store.GetDomain(store.DefaultDomain);
- Collection cat = store.GetCollectionByID(catalogID); //Simias.Server.Catalog.catalogID);
+ Collection cat = store.GetCollectionByID(Simias.Server.Catalog.catalogID);
HostNode localhostNode = HostNode.GetHostByID(domain.ID, HostID);
@@ -1162,7 +1174,7 @@
{
Store store = Store.GetStore();
Domain domain = store.GetDomain(store.DefaultDomain);
- Collection cat = store.GetCollectionByID(catalogID); //Simias.Server.Catalog.catalogID);
+ Collection cat = store.GetCollectionByID(Simias.Server.Catalog.catalogID);
HostNode currentMasterNode = HostNode.GetHostByID(domain.ID, currentMasterID);
HostNode newMasterNode = HostNode.GetHostByID(domain.ID, newMasterID);
@@ -1185,9 +1197,8 @@
log.Info("IsMasterHost : {0}", newMasterNode.IsMasterHost);
log.Info("ChangeMasterState : {0}", newMasterNode.ChangeMasterState);
}
- catch (Exception ex)
+ catch
{
- log.Error("Uable to verify change master");
retval = false;
}
return retval;
@@ -1209,7 +1220,7 @@
masterNode.PrivateUrl = masterUrl;
domain.Commit(masterNode);
}
- catch (Exception ex)
+ catch
{
retVal = false;
}
@@ -1371,7 +1382,7 @@
if (masterAddress.ToLower().StartsWith(Uri.UriSchemeHttps))
{
string machineArch = GetServerArch();
- string webPath = webPath = Path.GetFullPath("../../../../lib/simias/web");
+ string webPath = Path.GetFullPath("../../../../lib/simias/web");
if (machineArch != null)
{
@@ -1379,29 +1390,31 @@
}
// swap policy
+ ICertificatePolicy policy = ServicePointManager.CertificatePolicy;
ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();
- HttpWebRequest request = (HttpWebRequest) HttpWebRequest.Create(masterAddress);
+ HttpWebRequest request = (HttpWebRequest) HttpWebRequest.Create(RemoveVirtualPath(masterAddress));
+ log.Debug("Master URL is {0}", RemoveVirtualPath(masterAddress));
try
{
- HttpWebResponse response = (HttpWebResponse)request.GetResponse();
+ request.GetResponse();
}
- catch (Exception ex)
+ catch
{
// ignore
}
// restore policy
+ ServicePointManager.CertificatePolicy = policy;
// service point
ServicePoint sp = request.ServicePoint;
if(sp == null) throw new Exception("sp is null for master "+ masterAddress);
if(sp.Certificate == null) throw new Exception("sp.Certificate is null for master "+masterAddress);
if ((sp != null) && (sp.Certificate != null))
- {
+ {
string path = Path.GetFullPath(Path.Combine(webPath, "web.config"));
string certRawDetail = Convert.ToBase64String(sp.Certificate.GetRawCertData());
- string certDetail = sp.Certificate.ToString(true);
XmlDocument doc = new XmlDocument();
doc.Load(path);
XmlElement cert = (XmlElement)doc.DocumentElement.SelectSingleNode("//configuration/appSettings/add[@key='SimiasCert']");
@@ -1622,9 +1635,7 @@
SearchPrpList.Add(BaseSchema.ObjectType, NodeTypes.MemberType, SearchOp.Equal);
SearchPrpList.Add(PropertyTags.Types, HostNode.HostNodeType, SearchOp.Equal);
ICSList searchList = domain.Search(SearchPrpList);
- DateTime t1= DateTime.Now;
SearchState searchState = new SearchState( domain.ID, searchList.GetEnumerator() as ICSEnumerator, searchList.Count );
- int total = searchList.Count;
int i = 0;
if(index > 0)
searchState.Enumerator.SetCursor(Simias.Storage.Provider.IndexOrigin.SET, index);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jj...@us...> - 2010-06-21 06:49:35
|
Revision: 7397
http://simias.svn.sourceforge.net/simias/?rev=7397&view=rev
Author: jjohnny
Date: 2010-06-21 06:49:29 +0000 (Mon, 21 Jun 2010)
Log Message:
-----------
ID: Bug #609106
Reviewers: Anil
Localization Required: No
Documentation Required: No
Description: Local machine policies (default filetype filter policies) will not be shown in Admin console.
Local machine policies in GetiFolderPolicy and GetUserPolicy APIs
in iFolderAdmin.asmx would be filtered out.
Modified Paths:
--------------
trunk/src/core/CollectionStore/Policy.cs
trunk/src/core/Policy/FileTypeFilter.cs
trunk/src/webservices/UserPolicy.cs
trunk/src/webservices/iFolderPolicy.cs
Modified: trunk/src/core/CollectionStore/Policy.cs
===================================================================
--- trunk/src/core/CollectionStore/Policy.cs 2010-06-17 07:06:35 UTC (rev 7396)
+++ trunk/src/core/CollectionStore/Policy.cs 2010-06-21 06:49:29 UTC (rev 7397)
@@ -119,6 +119,25 @@
}
/// <summary>
+ /// Gets whether this is a local machine policy.
+ /// </summary>
+ public bool IsLocalMachinePolicy
+ {
+ get
+ {
+ Property p = properties.GetSingleProperty( PropertyTags.PolicyAssociation );
+
+ if (p != null) {
+ Store store = Store.GetStore();
+ Collection c = store.GetCollectionByID( ( p.Value as Relationship ).CollectionID );
+ return c.IsType (NodeTypes.LocalDatabaseType);
+ }
+ return false;
+ }
+ }
+
+
+ /// <summary>
/// Returns the PolicyTime object for this policy. If there is no time condition,
/// null is returned.
/// </summary>
@@ -782,6 +801,8 @@
/// returned if the Policy does not exist.</returns>
public Policy GetAggregatePolicy( string policyID, Member member )
{
+ // TODO : Mark GetAggregatePolicy methods as static.
+
return GetAggregatePolicy( policyID, member, false );
}
@@ -814,7 +835,24 @@
/// <param name="includeExceptions">Include exception policies.</param>
/// <returns>A reference to the associated aggregate Policy if successful. A null is
/// returned if the Policy does not exist.</returns>
- public Policy GetAggregatePolicy( string policyID, Member member, bool includeExceptions )
+ public Policy GetAggregatePolicy( string policyID, Member member, bool includeExceptions )
+ {
+ return GetAggregatePolicy( policyID, member, includeExceptions, true );
+ }
+
+ /// <summary>
+ /// Gets an aggregate Policy that is associated with the user. This routine will check for
+ /// an associated Policy on the Member first. If no Policy is found, the domain will
+ /// be searched for an associated Policy. If there is a local Policy for the user it will
+ /// be aggregated with the other Policy if one was found. Otherwise it will be returned.
+ /// </summary>
+ /// <param name="policyID">Strong name for the Policy.</param>
+ /// <param name="member">Member used to lookup the associated aggregate Policy.</param>
+ /// <param name="includeExceptions">Include exception policies.</param>
+ /// <param name="includeLocalMachinePolicy">Include local machine policies.</param>
+ /// <returns>A reference to the associated aggregate Policy if successful. A null is
+ /// returned if the Policy does not exist.</returns>
+ public Policy GetAggregatePolicy( string policyID, Member member, bool includeExceptions, bool includeLocalMachinePolicy )
{
// First look for an exception policy for the member object. If a policy is found,
// then we don't need to look for a domain policy since the exception policy will
@@ -874,23 +912,61 @@
policy.AddAggregatePolicy( policy );
}
- // Check for a local policy.
- Policy localPolicy = GetPolicy( policyID );
- if ( localPolicy != null )
+ if (includeLocalMachinePolicy)
+ {
+ // Check for a local policy.
+ Policy localPolicy = GetPolicy( policyID );
+ if ( localPolicy != null )
+ {
+ // If there is no exception or domain policy return the local policy.
+ if ( policy == null )
+ policy = localPolicy;
+
+ // Set the aggregation.
+ policy.AddAggregatePolicy( localPolicy );
+ }
+ }
+
+ return policy;
+ }
+
+ /// <summary>
+ /// Gets an aggregate Policy that is associated with the user and the specified Collection.
+ /// This routine will check for an associated Policy on the Member first. If no Policy is
+ /// found, the domain will be searched for an associated Policy. If there is a local Policy
+ /// for the user it will be aggregated with the other Policy if one was found. Otherwise
+ /// it will be returned. The procedure for the local Policy is also followed for an
+ /// associated Collection Policy.
+ /// </summary>
+ /// <param name="policyID">Strong name of the Policy.</param>
+ /// <param name="member">Member used to lookup the associated aggregate Policy.</param>
+ /// <param name="collection">Collection used to lookup the associated aggregate Policy.</param>
+ /// <param name="includeExceptions">Include exception policies.</param>
+ /// <param name="includeLocalMachinePolicy">Include local machine policies.</param>
+ /// <returns>A reference to the associated aggregate Policy if successful. A null is
+ /// returned if the Policy does not exist.</returns>
+ public Policy GetAggregatePolicy( string policyID, Member member, Collection collection, bool includeExceptions, bool includeLocalMachinePolicy )
+ {
+ // Get the aggregate for the member.
+ Policy policy = GetAggregatePolicy( policyID, member, includeExceptions, includeLocalMachinePolicy );
+
+ // Check for a collection policy.
+ Policy collectionPolicy = GetPolicy( policyID, collection , includeLocalMachinePolicy);
+ if ( collectionPolicy != null )
{
// If there is no exception or domain policy return the local policy.
if ( policy == null )
{
- policy = localPolicy;
+ policy = collectionPolicy;
}
// Set the aggregation.
- policy.AddAggregatePolicy( localPolicy );
+ policy.AddAggregatePolicy( collectionPolicy );
}
return policy;
}
-
+
/// <summary>
/// Gets an aggregate Policy that is associated with the user and the specified Collection.
/// This routine will check for an associated Policy on the Member first. If no Policy is
@@ -935,6 +1011,8 @@
/// returned if the Policy does not exist.</returns>
public Policy GetPolicy( string policyID )
{
+ //TODO : Mark GetPolicy methods static.
+
Policy policy = null;
// Search the local database for the specified policy.
@@ -1059,18 +1137,39 @@
/// returned if the Policy does not exist.</returns>
public Policy GetPolicy( string policyID, Collection collection )
{
+ return GetPolicy( policyID, collection, true );
+ }
+
+ /// <summary>
+ /// Gets the Policy that is associated with the collection.
+ /// </summary>
+ /// <param name="policyID">Strong name of the Policy.</param>
+ /// <param name="collection">Collection used to lookup the associated Policy.</param>
+ /// <param name="includeLocalMachinePolicy">Includes local machine policy.</param>
+ /// <returns>A reference to the associated Policy if successful. A null is
+ /// returned if the Policy does not exist.</returns>
+ public Policy GetPolicy( string policyID, Collection collection, bool includeLocalMachinePolicy )
+ {
Policy policy = null;
-
+
// Search the collection for the specified policy.
ICSList list = collection.Search( PropertyTags.PolicyID, policyID, SearchOp.Equal );
foreach ( ShallowNode sn in list )
{
Policy tempPolicy = new Policy( collection, sn );
- if ( !tempPolicy.IsSystemPolicy )
- {
- policy = tempPolicy;
- break;
- }
+ if (includeLocalMachinePolicy) {
+ if ( !tempPolicy.IsSystemPolicy )
+ {
+ policy = tempPolicy;
+ break;
+ }
+ } else {
+ if ( !tempPolicy.IsSystemPolicy && !tempPolicy.IsLocalMachinePolicy)
+ {
+ policy = tempPolicy;
+ break;
+ }
+ }
}
return policy;
Modified: trunk/src/core/Policy/FileTypeFilter.cs
===================================================================
--- trunk/src/core/Policy/FileTypeFilter.cs 2010-06-17 07:06:35 UTC (rev 7396)
+++ trunk/src/core/Policy/FileTypeFilter.cs 2010-06-21 06:49:29 UTC (rev 7397)
@@ -192,8 +192,28 @@
/// <summary>
/// Initializes a new instance of an object.
/// </summary>
+ /// <param name="member">Member that this file type filter is associated with.</param>
+ /// <param name="includeLocalMachinePolicy">Includes local machine policy.</param>
+ private FileTypeFilter( Member member, bool includeLocalMachinePolicy )
+ {
+ PolicyManager pm = new PolicyManager();
+ this.memberPolicy = pm.GetAggregatePolicy( FileTypeFilterPolicyID, member, true, includeLocalMachinePolicy );
+ }
+
+ /// <summary>
+ /// Initializes a new instance of an object.
+ /// </summary>
/// <param name="collection">Collection that this disk space quota is associated with.</param>
- private FileTypeFilter( Collection collection )
+ private FileTypeFilter( Collection collection ) :this( collection, true )
+ {
+ }
+
+ /// <summary>
+ /// Initializes a new instance of an object.
+ /// </summary>
+ /// <param name="collection">Collection that this disk space quota is associated with.</param>
+ /// <param name="includeLocalMachinePolicy">Includes local machine policy.</param>
+ private FileTypeFilter( Collection collection, bool includeLocalMachinePolicy )
{
PolicyManager pm = new PolicyManager();
@@ -209,9 +229,9 @@
// member should not be null , but if it is , then use old code.
member = collection.Owner;
}
- this.memberPolicy = pm.GetAggregatePolicy( FileTypeFilterPolicyID, member, true );
+ this.memberPolicy = pm.GetAggregatePolicy( FileTypeFilterPolicyID, member, true, includeLocalMachinePolicy );
- this.collectionPolicy = pm.GetAggregatePolicy( FileTypeFilterPolicyID, member, collection, true );
+ this.collectionPolicy = pm.GetAggregatePolicy( FileTypeFilterPolicyID, member, collection, true, includeLocalMachinePolicy );
}
#endregion
@@ -440,7 +460,18 @@
/// Gets the aggregate file type filter policy for the specified member.
/// </summary>
/// <param name="member">Member that filter is associated with.</param>
+ /// <param name="includeLocalMachinePolicy">Includes local machine policy.</param>
/// <returns>A FileTypeFilter object that contains the policy for the specified member.</returns>
+ static public FileTypeFilter Get( Member member, bool includeLocalMachinePolicy )
+ {
+ return new FileTypeFilter( member, includeLocalMachinePolicy);
+ }
+
+ /// <summary>
+ /// Gets the aggregate file type filter policy for the specified member.
+ /// </summary>
+ /// <param name="member">Member that filter is associated with.</param>
+ /// <returns>A FileTypeFilter object that contains the policy for the specified member.</returns>
static public FileTypeFilter Get( Member member )
{
return new FileTypeFilter( member );
@@ -469,6 +500,17 @@
}
/// <summary>
+ /// Gets the aggregate file type filter policy for the specified member and collection.
+ /// </summary>
+ /// <param name="collection">Collection to add to the aggregate quota policy.</param>
+ /// <param name="includeLocalMachinePolicy">Includes local machine policy.</param>
+ /// <returns>A FileTypeFilter object that contains the policy for the specified member.</returns>
+ static public FileTypeFilter Get( Collection collection, bool includeLocalMachinePolicy )
+ {
+ return new FileTypeFilter( collection, includeLocalMachinePolicy );
+ }
+
+ /// <summary>
/// Gets the file type filter patterns associated with the specified domain.
/// </summary>
/// <param name="domainID">Domain that the filter is associated with.</param>
Modified: trunk/src/webservices/UserPolicy.cs
===================================================================
--- trunk/src/webservices/UserPolicy.cs 2010-06-17 07:06:35 UTC (rev 7396)
+++ trunk/src/webservices/UserPolicy.cs 2010-06-21 06:49:29 UTC (rev 7397)
@@ -271,7 +271,7 @@
out props.FileTypesIncludes, out props.FileTypesExcludes);
// file types effective
- SystemPolicy.SplitFileTypes(FileTypeFilter.Get(member).FilterUserList,
+ SystemPolicy.SplitFileTypes(FileTypeFilter.Get(member, false).FilterUserList,
out props.FileTypesIncludesEffective, out props.FileTypesExcludesEffective);
props.AdminGroupRights = iFolderUser.GetAdminRights(AdminId , userID);
return props;
Modified: trunk/src/webservices/iFolderPolicy.cs
===================================================================
--- trunk/src/webservices/iFolderPolicy.cs 2010-06-17 07:06:35 UTC (rev 7396)
+++ trunk/src/webservices/iFolderPolicy.cs 2010-06-21 06:49:29 UTC (rev 7397)
@@ -190,7 +190,7 @@
SystemPolicy.SplitFileTypes(FileTypeFilter.GetPatterns(c),
out props.FileTypesIncludes, out props.FileTypesExcludes);
- SystemPolicy.SplitFileTypes(FileTypeFilter.Get(c).FilterList,
+ SystemPolicy.SplitFileTypes(FileTypeFilter.Get(c, false).FilterList,
out props.FileTypesIncludesEffective, out props.FileTypesExcludesEffective );
// file size
@@ -244,7 +244,7 @@
SystemPolicy.SplitFileTypes(FileTypeFilter.GetPatterns(c),
out props.FileTypesIncludes, out props.FileTypesExcludes);
- SystemPolicy.SplitFileTypes(FileTypeFilter.Get(c).FilterList,
+ SystemPolicy.SplitFileTypes(FileTypeFilter.Get(c, false).FilterList,
out props.FileTypesIncludesEffective, out props.FileTypesExcludesEffective );
// file size
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <sb...@us...> - 2010-07-07 05:42:10
|
Revision: 7425
http://simias.svn.sourceforge.net/simias/?rev=7425&view=rev
Author: sbipin
Date: 2010-07-07 05:42:03 +0000 (Wed, 07 Jul 2010)
Log Message:
-----------
ID: #613203
Reviewer: Shane
Localization Required: No
Documentation Required: No
Description: Included localized files.
Modified Paths:
--------------
trunk/src/admin/iFolderAdmin.cs.resx
trunk/src/admin/iFolderAdmin.de.resx
trunk/src/admin/iFolderAdmin.es.resx
trunk/src/admin/iFolderAdmin.fr.resx
trunk/src/admin/iFolderAdmin.hu.resx
trunk/src/admin/iFolderAdmin.it.resx
trunk/src/admin/iFolderAdmin.ja.resx
trunk/src/admin/iFolderAdmin.pl.resx
trunk/src/admin/iFolderAdmin.pt-BR.resx
trunk/src/admin/iFolderAdmin.ru.resx
trunk/src/admin/iFolderAdmin.sk.resx
trunk/src/admin/iFolderAdmin.zh-CN.resx
trunk/src/admin/iFolderAdmin.zh-TW.resx
trunk/src/webaccess/iFolderWeb.cs.resx
trunk/src/webaccess/iFolderWeb.de.resx
trunk/src/webaccess/iFolderWeb.es.resx
trunk/src/webaccess/iFolderWeb.fr.resx
trunk/src/webaccess/iFolderWeb.hu.resx
trunk/src/webaccess/iFolderWeb.it.resx
trunk/src/webaccess/iFolderWeb.ja.resx
trunk/src/webaccess/iFolderWeb.pl.resx
trunk/src/webaccess/iFolderWeb.pt-BR.resx
trunk/src/webaccess/iFolderWeb.ru.resx
trunk/src/webaccess/iFolderWeb.sk.resx
trunk/src/webaccess/iFolderWeb.zh-CN.resx
trunk/src/webaccess/iFolderWeb.zh-TW.resx
Modified: trunk/src/admin/iFolderAdmin.cs.resx
===================================================================
--- trunk/src/admin/iFolderAdmin.cs.resx 2010-07-06 08:13:30 UTC (rev 7424)
+++ trunk/src/admin/iFolderAdmin.cs.resx 2010-07-07 05:42:03 UTC (rev 7425)
@@ -160,9 +160,6 @@
<data name="SERVERLOGS">
<value>Protokoly serveru</value>
</data>
- <data name="ALLADMINS">
- <value>Všichni správci</value>
- </data>
<data name="PRIVATEURI">
<value>Privátní URL:</value>
</data>
@@ -202,14 +199,14 @@
<data name="REPROVISOINSTATE">
<value>Stav opakovaného poskytování</value>
</data>
- <data name="SPANISH">
- <value>Španělština</value>
+ <data name="CHANGEMASTERFAILED">
+ <value>Nelze změnit hlavní a podřízený server. Další informace zjistíte v souborech protokolu.</value>
</data>
<data name="COMPLETEDTAG">
<value>Dokončeno:</value>
</data>
- <data name="ERRORIFOLDERTRANSFEREXCEPTION">
- <value>Vlastnictví nelze převést, protože překračujete počet složek iFolder nastavený správcem.</value>
+ <data name="ENTERLDAPDETAILS">
+ <value>Zadejte pověření správce LDAP</value>
</data>
<data name="MEMBERTYPELDAPGROUP">
<value>Skupina LDAP</value>
@@ -223,15 +220,21 @@
<data name="USEDTAG">
<value>Využité:</value>
</data>
+ <data name="NEEDSREPAIR">
+ <value>Opravit server</value>
+ </data>
<data name="MEMBERTYPETAG">
<value>Typ člena:</value>
</data>
<data name="NONE">
<value>Žádné</value>
</data>
- <data name="GROUPRIGHTSADDFAILURE">
- <value>Uživatele {0}{1}{2} nebylo možné přidat jako správce pro skupinu {3}{4}{5}. Klepnutím na možnost Opakovat lze znovu přidat skupinu. Klepnutím na tlačítko OK se vrátíte na stránku Systémy. </value>
+ <data name="ERRORIFOLDERTRANSFEREXCEPTION">
+ <value>Vlastnictví nelze převést, protože překračujete počet složek iFolder nastavený správcem.</value>
</data>
+ <data name="running">
+ <value>běží</value>
+ </data>
<data name="ERRORCANNOTDELETESECONDARYADMIN">
<value>Nelze odstranit sekundárního správce {0}.</value>
</data>
@@ -262,9 +265,15 @@
<data name="ERRORCANNOTCHANGERIGHTS">
<value>Není možné změnit členská práva uživatele {0}.</value>
</data>
+ <data name="CHANGEMASTER">
+ <value>Nastavit jako hlavní</value>
+ </data>
<data name="FULLNAME">
<value>Celé jméno</value>
</data>
+ <data name="sleeping">
+ <value>spánek</value>
+ </data>
<data name="LOGINNOCOOKIES">
<value>Musíte ve svém prohlížeči zapnout cookies.</value>
</data>
@@ -274,6 +283,9 @@
<data name="WEEKLY">
<value>Týdně</value>
</data>
+ <data name="shutdown">
+ <value>ukončování</value>
+ </data>
<data name="REPORTIFOLDERTAG">
<value>Složka iFolder:</value>
</data>
@@ -301,12 +313,15 @@
<data name="USERS">
<value>Uživatelé</value>
</data>
- <data name="SET">
- <value>Nastavit</value>
+ <data name="ALLADMINS">
+ <value>Všichni správci</value>
</data>
<data name="LASTPAGE">
<value>Poslední stránka</value>
</data>
+ <data name="CANNOTSETQUOTAPERUSERERROR">
+ <value>Tento limit nelze nastavit, protože celková přidělená disková kvóta na uživatele překračuje kvótu skupiny.</value>
+ </data>
<data name="ERRORDETAIL">
<value>Podrobnosti o chybě</value>
</data>
@@ -319,8 +334,8 @@
<data name="SIZETAG">
<value>Velikost:</value>
</data>
- <data name="FILENAME">
- <value>Název souboru</value>
+ <data name="GENERATEWEEKLYREPORT">
+ <value>Generovat zprávu každý {0} v {1} do {2}</value>
</data>
<data name="LOGINNOSCRIPT">
<value>Musíte ve svém prohlížeči zapnout skripty.</value>
@@ -388,6 +403,9 @@
<data name="GROUPLISTTAG">
<value>Skupiny uživatelů:</value>
</data>
+ <data name="ADDADMINS">
+ <value>Přidat správce</value>
+ </data>
<data name="MINUTES">
<value>Minut</value>
</data>
@@ -406,8 +424,8 @@
<data name="SERVERNAMETAG">
<value>Server:</value>
</data>
- <data name="GROUPRIGHTSEDITSUCCESSFUL">
- <value>Práva správce {0}{1}{2} byla úspěšně upravena pro skupinu {3}{4}{5}. Klepnutím na tlačítko Opakovat provedete operace u dalších skupin stejného správce. Klepnutím na tlačítko OK se vrátíte na stránku Systémy.</value>
+ <data name="ERRORTYPE">
+ <value>Neočekávaná chyba</value>
</data>
<data name="SECONDARY">
<value>Sekundární</value>
@@ -439,14 +457,14 @@
<data name="LOGINERROR">
<value>Chyba:</value>
</data>
- <data name="SELECTGROUPTODELETE">
- <value>Vybrat skupiny k odstranění</value>
+ <data name="CHANGEMASTERNOINFOFAILED">
+ <value>Nelze získat ID serveru a novou veřejnou adresu URL serveru.</value>
</data>
<data name="OWNED">
<value>Vlastněno</value>
</data>
- <data name="ACCOUNT">
- <value>Účet</value>
+ <data name="CHANGEMASTERRETRY">
+ <value>Nelze aktualizovat atribut hlavního uzlu v hlavním nebo podřízeném objektu. Opakujte operaci.</value>
</data>
<data name="USERSTAG">
<value>Uživatelé:</value>
@@ -490,6 +508,9 @@
<data name="ALLOWMODIFYSHARINGPOLICY">
<value>Povolit změny zásad sdílení</value>
</data>
+ <data name="REPORTS">
+ <value>Oznámení</value>
+ </data>
<data name="NOTMOUNTED">
<value>Nepřipojeno</value>
</data>
@@ -508,12 +529,18 @@
<data name="READONLY">
<value>Pouze pro čtení</value>
</data>
+ <data name="ERRORINVALIDIDSYNCINTERVAL">
+ <value>Byl zadán neplatný synchronizační interval. Hodnota musí být v rozmezí 5 až 10080.</value>
+ </data>
<data name="LDAPSERVER">
<value>Server LDAP:</value>
</data>
<data name="IFOLDERUSERS">
<value>Uživatelé aplikace iFolder</value>
</data>
+ <data name="waiting">
+ <value>čeká</value>
+ </data>
<data name="INVALIDFULLPATH">
<value>Zadaná úplná cesta je neplatná, zkontrolujte ji a znovu ji zapište.</value>
</data>
@@ -544,8 +571,8 @@
<data name="SELECTEDUSERS">
<value>Vybraní uživatelé</value>
</data>
- <data name="RESTARTSERVER">
- <value>Informace byly aktualizovány. Tyto změny se projeví až po opětovném spuštění serveru iFolder. </value>
+ <data name="CHINESE-SIMPLIFIED">
+ <value>Zjednodušená čínština</value>
</data>
<data name="PUBLICURI">
<value>Veřejná URL:</value>
@@ -559,9 +586,6 @@
<data name="SERVERDETAILS">
<value>Podrobnosti o serveru</value>
</data>
- <data name="LDAPUPSINCE">
- <value>Do:</value>
- </data>
<data name="USERLOGINDISABLED">
<value>Vypnout přihlášení uživatele</value>
</data>
@@ -658,8 +682,8 @@
<data name="ALLOWMODIFYENCRYPTIONPOLICY">
<value>Povolit změny zásad šifrování</value>
</data>
- <data name="REPROVISIONBUTTON">
- <value>Stav opakovaného poskytování</value>
+ <data name="MEMBER">
+ <value>Člen</value>
</data>
<data name="FILES">
<value>Soubory:</value>
@@ -667,6 +691,9 @@
<data name="ERRORCANNOTREMOVEADMIN">
<value>Není možné odebrat uživatele {0} jako správce.</value>
</data>
+ <data name="CHANGEMASTERWITHWARNING">
+ <value>Byl inovován server {0} jako hlavní server s výjimkami. Další informace najdete v protokolu Simias.log. Restartujte všechny servery, aby se změny projevily.</value>
+ </data>
<data name="PASSWORDSDONOTMATCH">
<value>Zadaná hesla nejsou stejná.</value>
</data>
@@ -688,14 +715,11 @@
<data name="ERRORLOCKEXCEPTION">
<value>Operace byla zrušena protože složka iFolder byla uzamčena/zablokována správcem.</value>
</data>
- <data name="ENTERLDAPDETAILS">
- <value>Zadejte pověření správce LDAP</value>
- </data>
<data name="PASSWORDTAG">
<value>Heslo:</value>
</data>
<data name="SESSIONCLOSED">
- <value>Vaše relace byla ukončena. Znovu se přihlaste.</value>
+ <value>Zadané uživatelské jméno a heslo není správné. Přihlaste se prosím.</value>
</data>
<data name="DNSNAMETAG">
<value>Název DNS:</value>
@@ -784,9 +808,15 @@
<data name="TIME">
<value>Čas</value>
</data>
+ <data name="CONFIGFILEUPDATEFAILED">
+ <value>Nelze aktualizovat konfigurační soubor. Aktualizujte soubor simias.config ručně.</value>
+ </data>
<data name="LOGINSECUREFAILED">
<value>Se serverem iFolder není možné bezpečně komunikovat.</value>
</data>
+ <data name="CONFIRMCHANGEMASTER">
+ <value>Vybraný server bude vyhrazen jako hlavní server. Chcete pokračovat? Klepnutím na tlačítko OK budete pokračovat a klepnutím na tlačítko Storno akci ukončíte.</value>
+ </data>
<data name="LOGINPASSWORD">
<value>Heslo:</value>
</data>
@@ -826,6 +856,9 @@
<data name="ADMINISTRATORS">
<value>Správci</value>
</data>
+ <data name="SELECTGROUPTODELETE">
+ <value>Vybrat skupiny k odstranění</value>
+ </data>
<data name="FORMATTAG">
<value>Formát:</value>
</data>
@@ -862,15 +895,15 @@
<data name="TOTALUSERSTAG">
<value>Celkem uživatelů:</value>
</data>
+ <data name="WEBACCESSLOGFILE">
+ <value>Aplikace Web Access</value>
+ </data>
<data name="ERRORUSERDOESNOTEXIST">
<value>Uvedený uživatel složky iFolder neexistuje.</value>
</data>
<data name="LOGINCOPYRIGHT">
- <value>&copy; Copyright 2009 Novell, Inc. Všechna práva vyhrazena.</value>
+ <value>&copy; Copyright 2010 Novell, Inc. Všechna práva vyhrazena.</value>
</data>
- <data name="GENERATEWEEKLYREPORT">
- <value>Generovat zprávu každý {0} v {1} do {2}</value>
- </data>
<data name="VIEW">
<value>Zobrazit</value>
</data>
@@ -880,12 +913,9 @@
<data name="GENERATEDAILYREPORT">
<value>Generovat zprávu každý den v {0} do {1}</value>
</data>
- <data name="ERRORINSTRUCTIONS">
- <value><p>Aplikace iFolder Web Access zaznamenala neočekávanou chybu.</p> <p>Omlouváme se za veškeré nepříjemnosti a žádáme vás, abyste se odhlásili a zkusili to znovu.</p></value>
+ <data name="MASTERNODEUPDATEWAIT">
+ <value>Čekání na synchronizaci atributu hlavního uzlu s hlavním a podřízenými objekty.</value>
</data>
- <data name="MEMBER">
- <value>Člen</value>
- </data>
<data name="ERRORCANNOTDELETEUSER">
<value>Není možné odstranit ID uživatele {0}.</value>
</data>
@@ -916,8 +946,8 @@
<data name="SELECTMEMBERTOADD">
<value>Vyberte nového sekundárního správce.</value>
</data>
- <data name="ERRORINVALIDIDSYNCINTERVAL">
- <value>Byl zadán neplatný synchronizační interval. Hodnota musí být v rozmezí 5 až 10080.</value>
+ <data name="VOLUME">
+ <value>Svazek</value>
</data>
<data name="IDENTITYSYNCTAG">
<value>Synchronizace identifikačních dat:</value>
@@ -934,9 +964,15 @@
<data name="ADD">
<value>Přidat</value>
</data>
+ <data name="MB">
+ <value>MB</value>
+ </data>
<data name="DISABLE">
<value>Vypnout</value>
</data>
+ <data name="disabled">
+ <value>vypnuto</value>
+ </data>
<data name="ENABLEREPORTING">
<value>Zapnout hlášení</value>
</data>
@@ -946,6 +982,9 @@
<data name="SLOVAK">
<value>Slovenština</value>
</data>
+ <data name="UPDATEMASTERURLONSLAVESFAILED">
+ <value>Nelze aktualizovat hlavní adresu URL na serveru {0}. Aktualizujte hlavní adresu IP na tomto serveru ručně.</value>
+ </data>
<data name="ONLINE">
<value>Online</value>
</data>
@@ -976,17 +1015,23 @@
<data name="COMPLETED">
<value>Dokončeno</value>
</data>
+ <data name="RESTARTSERVER">
+ <value>Informace byly aktualizovány. Tyto změny se projeví až po opětovném spuštění serveru iFolder. </value>
+ </data>
<data name="CZECH">
<value>Čeština</value>
</data>
+ <data name="GROUPQUOTARESTRICTION">
+ <value>Správa používání kvóty skupiny: </value>
+ </data>
<data name="MEMBERLISTTAG">
<value>Členové skupiny:</value>
</data>
<data name="ERRORCANNOTADDADMIN">
<value>Není možné přidat člena {0} jako správce.</value>
</data>
- <data name="ADDADMINS">
- <value>Přidat správce</value>
+ <data name="LDAPUPSINCE">
+ <value>Do:</value>
</data>
<data name="DAYTAG">
<value>Den:</value>
@@ -1018,6 +1063,9 @@
<data name="ERRORINVALIDSYNCINTERVAL">
<value>Byl zadán neplatný synchronizační interval. Hodnota musí být v rozmezí 5 až 999.</value>
</data>
+ <data name="REPROVISIONBUTTON">
+ <value>Stav opakovaného poskytování</value>
+ </data>
<data name="MEMBERTYPELOCALGROUP">
<value>Místní skupina</value>
</data>
@@ -1033,8 +1081,8 @@
<data name="FULLCONTROL">
<value>Úplné řízení</value>
</data>
- <data name="CANNOTSETQUOTAPERUSERERROR">
- <value>Tento limit nelze nastavit, protože celková přidělená disková kvóta na uživatele překračuje kvótu skupiny.</value>
+ <data name="GENERATEMONTHLYREPORT">
+ <value>Generovat zprávu {0}. den každého měsíce v {1} do {2}</value>
</data>
<data name="REPORTDIRECTORY">
<value>Adresář hlášení</value>
@@ -1042,11 +1090,14 @@
<data name="ATTAG">
<value>V:</value>
</data>
+ <data name="SPANISH">
+ <value>Španělština</value>
+ </data>
<data name="ELLIPSES">
<value> . . .</value>
</data>
- <data name="NEWIFOLDERDESCRIPTIONTAG">
- <value>Popis složky iFolder:</value>
+ <data name="ERRORINSTRUCTIONS">
+ <value><p>Aplikace iFolder Web Access zaznamenala neočekávanou chybu.</p> <p>Omlouváme se za veškeré nepříjemnosti a žádáme vás, abyste se odhlásili a zkusili to znovu.</p></value>
</data>
<data name="POLISH">
<value>Polština</value>
@@ -1054,12 +1105,12 @@
<data name="FULLNAMETAG">
<value>Celé jméno:</value>
</data>
- <data name="ERRORTYPE">
- <value>Neočekávaná chyba</value>
- </data>
<data name="ERRORCANNOTSETDESCRIPTION">
<value>Není možné nastavit popis složky iFolder.</value>
</data>
+ <data name="REVERTSHARINGCONNECTFAILED">
+ <value>Nelze se připojit k serveru iFolder. Jakmile bude server dosažitelný, odvolejte sdílení.</value>
+ </data>
<data name="LOGINUNAUTHORIZED">
<value>Zadejte znovu vaše uživatelské jméno a heslo.</value>
</data>
@@ -1069,8 +1120,8 @@
<data name="PENDING">
<value>Probíhající</value>
</data>
- <data name="REPORTS">
- <value>Oznámení</value>
+ <data name="FILENAME">
+ <value>Název souboru</value>
</data>
<data name="ENFORCED">
<value>Vynuceno </value>
@@ -1090,8 +1141,8 @@
<data name="LDAPSSL">
<value>LDAP SSL:</value>
</data>
- <data name="MINIMALINFO">
- <value>Zobrazení minimálních informací</value>
+ <data name="NEWIFOLDERDESCRIPTIONTAG">
+ <value>Popis složky iFolder:</value>
</data>
<data name="CREATEUSER">
<value>Vytvořit uživatele</value>
@@ -1105,6 +1156,9 @@
<data name="FREESPACE">
<value>Volné místo</value>
</data>
+ <data name="CHANGEMASTERSUCCESSFUL">
+ <value>Byl inovován server {0} na hlavní server. Restartujte všechny servery, aby se změna projevila.</value>
+ </data>
<data name="LOGTAG">
<value>Protokol</value>
</data>
@@ -1120,9 +1174,6 @@
<data name="IFOLDERDETAILS">
<value>Podrobnosti o složce iFolder</value>
</data>
- <data name="CHINESE-SIMPLIFIED">
- <value>Zjednodušená čínština</value>
- </data>
<data name="UNKNOWNERROR">
<value>Došlo k neznáme chybě. Nebyla určena žádná výjimka.</value>
</data>
@@ -1141,8 +1192,8 @@
<data name="POLICIES">
<value>Zásady</value>
</data>
- <data name="GROUPQUOTARESTRICTION">
- <value>Správa používání kvóty skupiny: </value>
+ <data name="CONNECTIONFAILED">
+ <value>Nelze se připojit k serveru {0}.</value>
</data>
<data name="NONSSLSTRING">
<value>NONSSL</value>
@@ -1159,14 +1210,17 @@
<data name="PORTUGUESE-BRAZIL">
<value>Brazilská portugalština</value>
</data>
+ <data name="ENCRYPTION">
+ <value>Šifrování heslem</value>
+ </data>
<data name="BEGINSWITH">
<value>Začíná</value>
</data>
- <data name="MB">
- <value>MB</value>
+ <data name="DOWNLOAD">
+ <value>Stáhnout</value>
</data>
<data name="ERRORCANNOTDELETEIFOLDER">
- <value>Složku iFolder nelze odstranit.</value>
+ <value>Nemáte oprávnění odstranit {0}.</value>
</data>
<data name="DISKSPACEAVAILABLETAG">
<value>Volný diskový prostor:</value>
@@ -1180,6 +1234,12 @@
<data name="TRANSFERING">
<value>Přenášení</value>
</data>
+ <data name="ALLOWDELETEIFOLDERRIGHTS">
+ <value>Povolit oprávnění k odstranění složek iFolder</value>
+ </data>
+ <data name="SET">
+ <value>Nastavit</value>
+ </data>
<data name="LDAPADMINPWD">
<value>Heslo správce LDAP:</value>
</data>
@@ -1192,8 +1252,8 @@
<data name="STATUSTAG">
<value>Stav:</value>
</data>
- <data name="ENCRYPTION">
- <value>Šifrování heslem</value>
+ <data name="MINIMALINFO">
+ <value>Zobrazení minimálních informací</value>
</data>
<data name="LOGLEVELTAG">
<value>Úroveň protokolu</value>
@@ -1204,6 +1264,9 @@
<data name="CONTAINS">
<value>Obsahuje</value>
</data>
+ <data name="GROUPRIGHTSEDITSUCCESSFUL">
+ <value>Práva správce {0}{1}{2} byla úspěšně upravena pro skupinu {3}{4}{5}. Klepnutím na tlačítko Opakovat provedete operace u dalších skupin stejného správce. Klepnutím na tlačítko OK se vrátíte na stránku Systémy.</value>
+ </data>
<data name="LDAPMEMBERDELETE">
<value>Odstranit člena</value>
</data>
@@ -1213,6 +1276,9 @@
<data name="ERRORUNKNOWNERROR">
<value>Došlo k neznámé chybě.</value>
</data>
+ <data name="GROUPRIGHTSADDFAILURE">
+ <value>Uživatele {0}{1}{2} nebylo možné přidat jako správce pro skupinu {3}{4}{5}. Klepnutím na možnost Opakovat lze znovu přidat skupinu. Klepnutím na tlačítko OK se vrátíte na stránku Systémy. </value>
+ </data>
<data name="NAMETAG">
<value>Název:</value>
</data>
@@ -1252,12 +1318,9 @@
<data name="RIGHTS">
<value>Práva</value>
</data>
- <data name="WEBACCESSLOGFILE">
- <value>Aplikace Web Access</value>
+ <data name="ACCOUNT">
+ <value>Účet</value>
</data>
- <data name="GENERATEMONTHLYREPORT">
- <value>Generovat zprávu {0}. den každého měsíce v {1} do {2}</value>
- </data>
<data name="ADDROOT">
<value>Přidat kořen</value>
</data>
@@ -1288,9 +1351,6 @@
<data name="REPROVISOINSTATETAG">
<value>Stav opakovaného poskytování:</value>
</data>
- <data name="DOWNLOAD">
- <value>Stáhnout</value>
- </data>
<data name="DELETESECONDARYADMIN">
<value>Odstranit sekundárního správce: </value>
</data>
@@ -1315,13 +1375,13 @@
<data name="GROUPDISKQUOTA">
<value>Disková kvóta skupiny: </value>
</data>
+ <data name="UNABLETOSETASSLAVE">
+ <value>Nelze nastavit jako podřízený server. Opakujte operaci.</value>
+ </data>
<data name="LOGINUSERNAME">
<value>Uživatelské jméno:</value>
</data>
- <data name="VOLUME">
- <value>Svazek</value>
- </data>
<data name="UNLIMITED">
<value>Neomezeno</value>
</data>
-</root>
+</root>
\ No newline at end of file
Modified: trunk/src/admin/iFolderAdmin.de.resx
===================================================================
--- trunk/src/admin/iFolderAdmin.de.resx 2010-07-06 08:13:30 UTC (rev 7424)
+++ trunk/src/admin/iFolderAdmin.de.resx 2010-07-07 05:42:03 UTC (rev 7425)
@@ -160,9 +160,6 @@
<data name="SERVERLOGS">
<value>Serverprotokolle</value>
</data>
- <data name="ALLADMINS">
- <value>Alle Admins</value>
- </data>
<data name="PRIVATEURI">
<value>Private URL:</value>
</data>
@@ -202,14 +199,14 @@
<data name="REPROVISOINSTATE">
<value>Wiederbereitstellungsstatus</value>
</data>
- <data name="SPANISH">
- <value>Spanisch</value>
+ <data name="CHANGEMASTERFAILED">
+ <value>Master und Slave können nicht geändert werden. Weitere Informationen finden Sie in den Protokolldateien.</value>
</data>
<data name="COMPLETEDTAG">
<value>Abgeschlossen:</value>
</data>
- <data name="ERRORIFOLDERTRANSFEREXCEPTION">
- <value>Die Eigentümerschaft konnte nicht übertragen werden, da hierdurch die vom Administrator festgelegte Höchstzahl an iFolder-Ordnern überschritten wird.</value>
+ <data name="ENTERLDAPDETAILS">
+ <value>LDAP-Administrator-Berechtigungsnachweis eingeben</value>
</data>
<data name="MEMBERTYPELDAPGROUP">
<value>LDAP-Gruppe</value>
@@ -223,15 +220,21 @@
<data name="USEDTAG">
<value>Belegt:</value>
</data>
+ <data name="NEEDSREPAIR">
+ <value>Server reparieren</value>
+ </data>
<data name="MEMBERTYPETAG">
<value>Mitgliedstyp:</value>
</data>
<data name="NONE">
<value>Keine</value>
</data>
- <data name="GROUPRIGHTSADDFAILURE">
- <value>Benutzer {0}{1}{2} konnte nicht als Administrator für Gruppe {3}{4}{5} hinzugefügt werden. Klicken Sie auf "Erneut versuchen", um die Gruppen erneut hinzufügen. Klicken Sie auf "OK", um zur Systemseite zurückzukehren. </value>
+ <data name="ERRORIFOLDERTRANSFEREXCEPTION">
+ <value>Die Eigentümerschaft konnte nicht übertragen werden, da hierdurch die vom Administrator festgelegte Höchstzahl an iFolder-Ordnern überschritten wird.</value>
</data>
+ <data name="running">
+ <value>wird ausgeführt</value>
+ </data>
<data name="ERRORCANNOTDELETESECONDARYADMIN">
<value>Sekundärer Administrator {0} kann nicht gelöscht werden.</value>
</data>
@@ -262,9 +265,15 @@
<data name="ERRORCANNOTCHANGERIGHTS">
<value>Mitgliedsrechte für Benutzer {0} können nicht geändert werden.</value>
</data>
+ <data name="CHANGEMASTER">
+ <value>Als Master festlegen</value>
+ </data>
<data name="FULLNAME">
<value>Vollständiger Name</value>
</data>
+ <data name="sleeping">
+ <value>inaktiv</value>
+ </data>
<data name="LOGINNOCOOKIES">
<value>Sie müssen Cookies in Ihrem Browser aktivieren.</value>
</data>
@@ -274,6 +283,9 @@
<data name="WEEKLY">
<value>Wöchentlich</value>
</data>
+ <data name="shutdown">
+ <value>herunterfahren</value>
+ </data>
<data name="REPORTIFOLDERTAG">
<value>iFolder:</value>
</data>
@@ -301,12 +313,15 @@
<data name="USERS">
<value>Benutzern</value>
</data>
- <data name="SET">
- <value>Festlegen</value>
+ <data name="ALLADMINS">
+ <value>Alle Admins</value>
</data>
<data name="LASTPAGE">
<value>Letzte Seite</value>
</data>
+ <data name="CANNOTSETQUOTAPERUSERERROR">
+ <value>Diese Beschränkung kann nicht festgelegt werden, da die gesamte zugewiesene Speicherplatzquote pro Benutzer größer ist als die Gruppenquote.</value>
+ </data>
<data name="ERRORDETAIL">
<value>Fehlerdetails</value>
</data>
@@ -319,8 +334,8 @@
<data name="SIZETAG">
<value>Größe:</value>
</data>
- <data name="FILENAME">
- <value>Dateiname</value>
+ <data name="GENERATEWEEKLYREPORT">
+ <value>Bericht erstellen alle {0} um {1} in {2}</value>
</data>
<data name="LOGINNOSCRIPT">
<value>Sie müssen Skripts in Ihrem Browser aktivieren.</value>
@@ -388,6 +403,9 @@
<data name="GROUPLISTTAG">
<value>Benutzergruppen:</value>
</data>
+ <data name="ADDADMINS">
+ <value>Administratoren hinzufügen</value>
+ </data>
<data name="MINUTES">
<value>Minute(n)</value>
</data>
@@ -406,8 +424,8 @@
<data name="SERVERNAMETAG">
<value>Server:</value>
</data>
- <data name="GROUPRIGHTSEDITSUCCESSFUL">
- <value>Die Rechte des Administrators {0}{1}{2} wurden für Gruppe {3}{4}{5} erfolgreich bearbeitet. Klicken Sie auf "Wiederholen", um weitere Gruppen für diesen Administrator zu bearbeiten. Klicken Sie auf "OK", um zur Systemseite zurückzukehren.</value>
+ <data name="ERRORTYPE">
+ <value>Unerwarteter Fehler</value>
</data>
<data name="SECONDARY">
<value>Sekundär</value>
@@ -439,14 +457,14 @@
<data name="LOGINERROR">
<value>Fehler:</value>
</data>
- <data name="SELECTGROUPTODELETE">
- <value>Gruppe(n) zum Löschen auswählen</value>
+ <data name="CHANGEMASTERNOINFOFAILED">
+ <value>Die Server-ID und öffentliche URL des neuen Servers können nicht abgerufen werden.</value>
</data>
<data name="OWNED">
<value>Gehört zu</value>
</data>
- <data name="ACCOUNT">
- <value>Konto</value>
+ <data name="CHANGEMASTERRETRY">
+ <value>Das Masterknotenattribut konnte nicht auf Master und Slave aktualisiert werden. Versuchen Sie den Vorgang erneut.</value>
</data>
<data name="USERSTAG">
<value>Benutzer:</value>
@@ -490,6 +508,9 @@
<data name="ALLOWMODIFYSHARINGPOLICY">
<value>Bearbeitung der Freigaberichtlinien zulassen</value>
</data>
+ <data name="REPORTS">
+ <value>Berichte</value>
+ </data>
<data name="NOTMOUNTED">
<value>Nicht gemountet</value>
</data>
@@ -508,12 +529,18 @@
<data name="READONLY">
<value>Schreibgeschützt</value>
</data>
+ <data name="ERRORINVALIDIDSYNCINTERVAL">
+ <value>Das angegebene Synchronisierungsintervall ist ungültig. Der Wert muss zwischen 5 und 10080 liegen.</value>
+ </data>
<data name="LDAPSERVER">
<value>LDAP-Server:</value>
</data>
<data name="IFOLDERUSERS">
<value>iFolder-Benutzer</value>
</data>
+ <data name="waiting">
+ <value>System wartet</value>
+ </data>
<data name="INVALIDFULLPATH">
<value>Der angegebene vollständige Pfad ist ungültig, bitte überprüfen und erneut eingeben.</value>
</data>
@@ -544,8 +571,8 @@
<data name="SELECTEDUSERS">
<value>Ausgewählte Benutzer</value>
</data>
- <data name="RESTARTSERVER">
- <value>Informationen aktualisiert. Diese Änderungen treten beim Neustart des iFolder-Servers in Kraft. </value>
+ <data name="CHINESE-SIMPLIFIED">
+ <value>Chinesisch vereinfacht</value>
</data>
<data name="PUBLICURI">
<value>Öffentliche URL:</value>
@@ -559,9 +586,6 @@
<data name="SERVERDETAILS">
<value>Server-Details</value>
</data>
- <data name="LDAPUPSINCE">
- <value>Hochgefahren seit:</value>
- </data>
<data name="USERLOGINDISABLED">
<value>Benutzeranmeldung deaktivieren</value>
</data>
@@ -658,8 +682,8 @@
<data name="ALLOWMODIFYENCRYPTIONPOLICY">
<value>Bearbeitung der Verschlüsselungsrichtlinien zulassen</value>
</data>
- <data name="REPROVISIONBUTTON">
- <value>Wiederbereitstellungsstatus</value>
+ <data name="MEMBER">
+ <value>Mitglied</value>
</data>
<data name="FILES">
<value>Dateien</value>
@@ -667,6 +691,9 @@
<data name="ERRORCANNOTREMOVEADMIN">
<value>Benutzer {0} kann nicht als Administrator entfernt werden.</value>
</data>
+ <data name="CHANGEMASTERWITHWARNING">
+ <value>{0} mit Ausnahmen als Masterserver aufgerüstet. Weitere Informationen finden Sie in der Datei 'Simias.log'. Starten Sie alle Server neu, damit die Änderungen wirksam werden.</value>
+ </data>
<data name="PASSWORDSDONOTMATCH">
<value>Die Passwörter stimmen nicht überein.</value>
</data>
@@ -688,14 +715,11 @@
<data name="ERRORLOCKEXCEPTION">
<value>Der Vorgang wurde abgebrochen, weil der iFolder-Ordner vom Administrator gesperrt/deaktiviert wurde.</value>
</data>
- <data name="ENTERLDAPDETAILS">
- <value>LDAP-Administrator-Berechtigungsnachweis eingeben</value>
- </data>
<data name="PASSWORDTAG">
<value>Passwort:</value>
</data>
<data name="SESSIONCLOSED">
- <value>Ihre Sitzung wurde geschlossen. Bitte melden Sie sich an.</value>
+ <value>Der eingegebene Benutzername oder das eingegebene Passwort ist falsch. Melden Sie sich an.</value>
</data>
<data name="DNSNAMETAG">
<value>DNS-Name:</value>
@@ -784,9 +808,15 @@
<data name="TIME">
<value>Zeit</value>
</data>
+ <data name="CONFIGFILEUPDATEFAILED">
+ <value>Konfigurationsdatei kann nicht aktualisiert werden. Aktualisieren Sie die Datei 'simias.config' manuell.</value>
+ </data>
<data name="LOGINSECUREFAILED">
<value>Sichere Kommunikation mit dem iFolder-Server nicht möglich.</value>
</data>
+ <data name="CONFIRMCHANGEMASTER">
+ <value>Der ausgewählte Server wird als Masterserver festgelegt. Weiter? Klicken Sie 'OK' zum Fortfahren oder 'Abbrechen' zum Beenden.</value>
+ </data>
<data name="LOGINPASSWORD">
<value>Passwort:</value>
</data>
@@ -826,6 +856,9 @@
<data name="ADMINISTRATORS">
<value>Administratoren</value>
</data>
+ <data name="SELECTGROUPTODELETE">
+ <value>Gruppe(n) zum Löschen auswählen</value>
+ </data>
<data name="FORMATTAG">
<value>Format:</value>
</data>
@@ -862,15 +895,15 @@
<data name="TOTALUSERSTAG">
<value>Benutzer insgesamt:</value>
</data>
+ <data name="WEBACCESSLOGFILE">
+ <value>Web-Zugriff</value>
+ </data>
<data name="ERRORUSERDOESNOTEXIST">
<value>Der angegebene iFolder-Benutzer existiert nicht.</value>
</data>
<data name="LOGINCOPYRIGHT">
- <value>&copy; Copyright 2009 Novell, Inc. Alle Rechte vorbehalten.</value>
+ <value>&copy; C...
[truncated message content] |
|
From: <he...@us...> - 2010-07-28 13:06:59
|
Revision: 7446
http://simias.svn.sourceforge.net/simias/?rev=7446&view=rev
Author: hegdegg
Date: 2010-07-28 13:06:52 +0000 (Wed, 28 Jul 2010)
Log Message:
-----------
Fix for new server access throwing exception when added to multi-server
after slave server upgrade
Modified Paths:
--------------
trunk/src/admin/ServerDetails.aspx.cs
trunk/src/core/CollectionStore/HostNode.cs
trunk/src/server/Simias.Server/Service.cs
Modified: trunk/src/admin/ServerDetails.aspx.cs
===================================================================
--- trunk/src/admin/ServerDetails.aspx.cs 2010-07-28 13:02:29 UTC (rev 7445)
+++ trunk/src/admin/ServerDetails.aspx.cs 2010-07-28 13:06:52 UTC (rev 7446)
@@ -932,7 +932,7 @@
BuildBreadCrumbList( serverName );
if(serverStatus)
{
- GetServerStatus();
+ //GetServerStatus();
GetReportList();
GetLogList();
GetLdapDetails ();
Modified: trunk/src/core/CollectionStore/HostNode.cs
===================================================================
--- trunk/src/core/CollectionStore/HostNode.cs 2010-07-28 13:02:29 UTC (rev 7445)
+++ trunk/src/core/CollectionStore/HostNode.cs 2010-07-28 13:06:52 UTC (rev 7446)
@@ -62,7 +62,12 @@
/// <summary>
/// Changemaster all updates complete
/// </summary>
- Complete
+ Complete,
+
+ /// <summary>
+ /// Changemaster verified after restart
+ /// </summary>
+ Verified
};
#region Properties
Modified: trunk/src/server/Simias.Server/Service.cs
===================================================================
--- trunk/src/server/Simias.Server/Service.cs 2010-07-28 13:02:29 UTC (rev 7445)
+++ trunk/src/server/Simias.Server/Service.cs 2010-07-28 13:06:52 UTC (rev 7446)
@@ -212,10 +212,68 @@
Simias.Server.Catalog.StartCatalogService();
ExtractMemberPoliciesOnMaster();
CheckStoreAndLoadRA();
+ CheckServerForChageMasterError();
}
}
/// <summary>
+ /// Run repair on the node, verify the inconsistancy on the node
+ /// </summary>
+ /// <returns> true/false for success/failure</returns>
+ public static bool VerifyChangeMaster()
+ {
+ bool status = true;
+ try
+ {
+ Store store = Store.GetStore();
+ Domain domain = store.GetDomain(store.DefaultDomain);
+ HostNode[] hosts = Simias.Storage.HostNode.GetHosts(domain.ID);
+ foreach(HostNode host in hosts)
+ {
+ if( domain.Role == Simias.Sync.SyncRoles.Master )
+ {
+ if ( host.IsLocalHost == true )
+ host.IsMasterHost = true;
+ else
+ host.IsMasterHost = false;
+ }
+ domain.Commit(host);
+ }
+ }
+ catch (Exception ex)
+ {
+ log.Error("Exception throw at VerifiyChangeMaster() : {0} : {1}", ex.Message, ex.StackTrace);
+ status = false;
+ }
+ return status;
+ }
+
+ public void CheckServerForChageMasterError()
+ {
+ try
+ {
+ Store store = Store.GetStore();
+ Domain domain = store.GetDomain(store.DefaultDomain);
+ HostNode localhostNode = HostNode.GetLocalHost();
+ if ( localhostNode.ChangeMasterState != -1 )
+ {
+ if( (int)HostNode.changeMasterStates.Verified != localhostNode.ChangeMasterState )
+ {
+ if (VerifyChangeMaster())
+ {
+ localhostNode.ChangeMasterState = (int)HostNode.changeMasterStates.Verified;
+ domain.Commit(localhostNode);
+ }
+ }
+ }
+ }
+ catch (Exception ex)
+ { //will check at next restat
+ log.Error("Exception at CheckServerForChageMasterError:{0} : {1}", ex.Message, ex.StackTrace);
+ }
+ }
+
+ /// <summary>
/// Resumes a paused service.
/// </summary>
public void Resume()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <sp...@us...> - 2010-08-04 13:19:16
|
Revision: 7452
http://simias.svn.sourceforge.net/simias/?rev=7452&view=rev
Author: spkumar
Date: 2010-08-04 13:19:09 +0000 (Wed, 04 Aug 2010)
Log Message:
-----------
ID: Bug#623941
Reviewer: Ravi
Localization Required: No
Documentation Required: No
Description: Enforce encryption at group level is not displayed in admin
console and not honored in webacess.
Modified Paths:
--------------
trunk/src/admin/SecurityState.ascx.cs
trunk/src/webservices/iFolderWebLocal.asmx.cs
Modified: trunk/src/admin/SecurityState.ascx.cs
===================================================================
--- trunk/src/admin/SecurityState.ascx.cs 2010-08-04 12:58:32 UTC (rev 7451)
+++ trunk/src/admin/SecurityState.ascx.cs 2010-08-04 13:19:09 UTC (rev 7452)
@@ -342,25 +342,25 @@
{
encryption.Enabled = false;
Session["EncryptionWasChecked"] = "true";
- if( (DerivedStatus & (int)Encryption.EnforceEncrypt) == (int) Encryption.EnforceEncrypt)
- {
- encryption.Checked = enforceEncryption.Checked = true;
- enforceEncryption.Enabled = true;
- }
+ if( (DerivedStatus & (int)Encryption.EnforceEncrypt) == (int) Encryption.EnforceEncrypt)
+ {
+ encryption.Checked = enforceEncryption.Checked = true;
+ enforceEncryption.Enabled = true;
+ }
else
- {
- encryption.Checked = true;
- enforceEncryption.Checked = false;
- enforceEncryption.Enabled = true;
- }
- // next check for bug id 296014 , where if this user has created an encrypted iFolder then disable
+ {
+ encryption.Checked = true;
+ enforceEncryption.Checked = false;
+ enforceEncryption.Enabled = true;
+ }
+ // next check for bug id 296014 , where if this user has created an encrypted iFolder then disable
// the encryption check box for him.
- if(IsUser)
- {
-
- if(web.IsPassPhraseSetForUser(Request.Params["ID"]))
- encryption.Enabled = false;
- }
+ if(IsUser)
+ {
+
+ if(web.IsPassPhraseSetForUser(Request.Params["ID"]))
+ encryption.Enabled = false;
+ }
}
else if((DerivedStatus & (int) Encryption.EnforceSSL) == (int) Encryption.EnforceSSL)
{
@@ -379,22 +379,27 @@
{
//Preference is not done
if( preference == 0)
- {
- if(system != 0)
- return system;
+ {
+ if(system != 0) {
+ if(group != 0){
+ return group|system;
+ } else {
+ return system;
+ }
+ }
else if(group != 0)
return group;
- return user;
- }
- else
- {
- if(user != 0)
- return user;
+ return user;
+ }
+ else
+ {
+ if(user != 0)
+ return user;
else if (group != 0)
return group;
else
- return system;
- }
+ return system;
+ }
}
Modified: trunk/src/webservices/iFolderWebLocal.asmx.cs
===================================================================
--- trunk/src/webservices/iFolderWebLocal.asmx.cs 2010-08-04 12:58:32 UTC (rev 7451)
+++ trunk/src/webservices/iFolderWebLocal.asmx.cs 2010-08-04 13:19:09 UTC (rev 7452)
@@ -1021,7 +1021,11 @@
if( preference == 0)
{
if(system != 0)
- return system;
+ if(group != 0){
+ return group|system;
+ } else {
+ return system;
+ }
else if(group != 0)
return group;
return user;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2010-10-13 10:43:27
|
Revision: 7529
http://simias.svn.sourceforge.net/simias/?rev=7529&view=rev
Author: hegdegg
Date: 2010-10-13 10:43:20 +0000 (Wed, 13 Oct 2010)
Log Message:
-----------
ID:#624816
Reviewer: Ramesh
Localization Required: No
Documentation Required: No
Description: Confirmation done before removing the slave server. After
slave server is removed, config file removed to ensure it cant get
restarted.
Modified Paths:
--------------
trunk/src/core/Common/Configuration.cs
trunk/src/server/setup/SimiasServerSetup.cs
Modified: trunk/src/core/Common/Configuration.cs
===================================================================
--- trunk/src/core/Common/Configuration.cs 2010-10-06 12:56:50 UTC (rev 7528)
+++ trunk/src/core/Common/Configuration.cs 2010-10-13 10:43:20 UTC (rev 7529)
@@ -48,6 +48,8 @@
{
#region Class Members
public const string DefaultConfigFileName = "Simias.config";
+ public const string RenamedConfigFileName = "Simiasconfig.removed";
+
private const string SectionTag = "section";
private const string SettingTag = "setting";
Modified: trunk/src/server/setup/SimiasServerSetup.cs
===================================================================
--- trunk/src/server/setup/SimiasServerSetup.cs 2010-10-06 12:56:50 UTC (rev 7528)
+++ trunk/src/server/setup/SimiasServerSetup.cs 2010-10-13 10:43:20 UTC (rev 7529)
@@ -168,8 +168,11 @@
#endregion
#region Options
-
/// <summary>
+ /// Confirm slave server remove
+ /// </summary>
+ public BoolOption confirmDelete = new BoolOption("confirm-delete", "Removing this server will make iFolders on this server unaccessible. Do you want to proceed", "Confirm slave server remove", false, true);
+ /// <summary>
/// The store path.
/// </summary>
public Option path = new Option("path,p", "Server's Data Path", "Path to the server's data files", true, "/var/simias/data");
@@ -381,7 +384,8 @@
// On windows we do not want to prompt for these values.
apache.Value = false;
#endif
-
+ confirmDelete.Prompt = false;
+ confirmDelete.OnOptionEntered = new Option.OptionEnteredHandler( OnConfirmDelete );
path.OnOptionEntered = new Option.OptionEnteredHandler( OnPath );
// defaultConfigPath.OnOptionEntered = new Option.OptionEnteredHandler( OnDefaultConfig );
@@ -663,7 +667,16 @@
}
return true;
}
-
+ /// <summary>
+ /// Confirm slave server removal.
+ /// </summary>
+ /// <returns>true if confirmed </returns>
+ private bool OnConfirmDelete()
+ {
+ if ( !confirmDelete.Value )
+ System.Environment.Exit( -1 );
+ return true;
+ }
/// <summary>
/// called during public URL selection
/// </summary>
@@ -1464,7 +1477,7 @@
/// <returns>true if fields of simias-server-setup set successfully</returns>
private bool OnRemove()
{
- path.Prompt = systemAdminPassword.Prompt = true;
+ path.Prompt = systemAdminPassword.Prompt = confirmDelete.Prompt = true;
systemName.Prompt = systemDescription.Prompt = systemAdminDN.Prompt = publicUrl.Prompt = slaveServer.Prompt =
useLdap.Prompt = ldapServer.Prompt = ldapPlugin.Prompt = secure.Prompt = ldapProxyDN.Prompt = ldapSearchContext.Prompt =
namingAttribute.Prompt = privateUrl.Prompt = serverName.Prompt = useSsl.Prompt =
@@ -2235,6 +2248,17 @@
Console.WriteLine("Failed to read \"Master server URL\" from \"{0}\"",configFile);
return false;
}
+
+ try {
+ // rename config file so that if server is restarted it should not be coming up.
+ // FIXME: need a better way, may be we could have another option remove-with-data and clean up all
+ System.IO.File.Move(configFile, Path.Combine( storePath, Configuration.RenamedConfigFileName ) );
+ }
+ catch
+ {
+ Console.WriteLine("Unable to rename config file : {)}", configFile);
+ }
+
if(!UnRegisterSlaveFromMaster(systemAdminDN.Value,serverName.Value))
{
return false;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <he...@us...> - 2011-01-27 16:10:01
|
Revision: 7566
http://simias.svn.sourceforge.net/simias/?rev=7566&view=rev
Author: hegdegg
Date: 2011-01-27 16:09:54 +0000 (Thu, 27 Jan 2011)
Log Message:
-----------
ID:#000
Reviewer: Vikash Mehta
Localization Required: No
Documentation Required: No
Description: Update for script files for using mono-addon
Modified Paths:
--------------
trunk/src/server/setup/iFolder_retrieve_proxy_creds.in
trunk/src/server/setup/ifolder-admin-setup.in
trunk/src/server/setup/ifolder-web-setup.in
trunk/src/server/setup/simias-server-setup.in
trunk/src/utils/restore/ifolder-data-recovery.in
Modified: trunk/src/server/setup/iFolder_retrieve_proxy_creds.in
===================================================================
--- trunk/src/server/setup/iFolder_retrieve_proxy_creds.in 2011-01-27 12:36:19 UTC (rev 7565)
+++ trunk/src/server/setup/iFolder_retrieve_proxy_creds.in 2011-01-27 16:09:54 UTC (rev 7566)
@@ -79,7 +79,7 @@
source $MONO_RUNTIME_PATH/bin/mono-addon-environment.sh
export MONO_CFG_DIR=/etc
export IFOLDER_MOD_MONO_SERVER2_PATH=@_bindir_@
- export IFOLDER_MONO_PATH=$MONO_RUNTIME_PATH
+ #export IFOLDER_MONO_PATH=$MONO_RUNTIME_PATH
cd @_bindir_@
MONO_CMD=$MONO_RUNTIME_PATH/bin/mono
fi
Modified: trunk/src/server/setup/ifolder-admin-setup.in
===================================================================
--- trunk/src/server/setup/ifolder-admin-setup.in 2011-01-27 12:36:19 UTC (rev 7565)
+++ trunk/src/server/setup/ifolder-admin-setup.in 2011-01-27 16:09:54 UTC (rev 7566)
@@ -54,11 +54,11 @@
mono @_bindir_@/iFolderAdminSetup.exe "$@"
else
MONO_RUNTIME_PATH=/opt/novell/mono
- export MONO_PATH=$MONO_RUNTIME_PATH/lib/mono/:$MONO_RUNTIME_PATH/lib/mono/2.0:@_webbindir_@:@_bindir_@
+ export MONO_PATH=$MONO_RUNTIME_PATH/lib/mono/:$MONO_RUNTIME_PATH/lib/mono/2.0:@_webbindir_@:@_bindir_@:/usr/lib/mono/log4net
source $MONO_RUNTIME_PATH/bin/mono-addon-environment.sh
export MONO_CFG_DIR=/etc
export IFOLDER_MOD_MONO_SERVER2_PATH=@_bindir_@
- export IFOLDER_MONO_PATH=$MONO_RUNTIME_PATH
+ #export IFOLDER_MONO_PATH=$MONO_RUNTIME_PATH
cd @_bindir_@
$MONO_RUNTIME_PATH/bin/mono @_bindir_@/iFolderAdminSetup.exe "$@"
Modified: trunk/src/server/setup/ifolder-web-setup.in
===================================================================
--- trunk/src/server/setup/ifolder-web-setup.in 2011-01-27 12:36:19 UTC (rev 7565)
+++ trunk/src/server/setup/ifolder-web-setup.in 2011-01-27 16:09:54 UTC (rev 7566)
@@ -56,11 +56,11 @@
else
MONO_RUNTIME_PATH=/opt/novell/mono
- export MONO_PATH=$MONO_RUNTIME_PATH/lib/mono/:$MONO_RUNTIME_PATH/lib/mono/2.0:@_webbindir_@:@_bindir_@
+ export MONO_PATH=$MONO_RUNTIME_PATH/lib/mono/:$MONO_RUNTIME_PATH/lib/mono/2.0:@_webbindir_@:@_bindir_@:/usr/lib/mono/log4net
source $MONO_RUNTIME_PATH/bin/mono-addon-environment.sh
export MONO_CFG_DIR=/etc
export IFOLDER_MOD_MONO_SERVER2_PATH=@_bindir_@
- export IFOLDER_MONO_PATH=$MONO_RUNTIME_PATH
+ #export IFOLDER_MONO_PATH=$MONO_RUNTIME_PATH
cd @_bindir_@
$MONO_RUNTIME_PATH/bin/mono @_bindir_@/iFolderWebSetup.exe "$@"
Modified: trunk/src/server/setup/simias-server-setup.in
===================================================================
--- trunk/src/server/setup/simias-server-setup.in 2011-01-27 12:36:19 UTC (rev 7565)
+++ trunk/src/server/setup/simias-server-setup.in 2011-01-27 16:09:54 UTC (rev 7566)
@@ -54,11 +54,11 @@
else
MONO_RUNTIME_PATH=/opt/novell/mono
- export MONO_PATH=$MONO_RUNTIME_PATH/lib/mono/:$MONO_RUNTIME_PATH/lib/mono/2.0:@_webbindir_@:@_bindir_@
+ export MONO_PATH=$MONO_RUNTIME_PATH/lib/mono/:$MONO_RUNTIME_PATH/lib/mono/2.0:@_webbindir_@:@_bindir_@:/usr/lib/mono/log4net
source $MONO_RUNTIME_PATH/bin/mono-addon-environment.sh
export MONO_CFG_DIR=/etc
export IFOLDER_MOD_MONO_SERVER2_PATH=@_bindir_@
- export IFOLDER_MONO_PATH=$MONO_RUNTIME_PATH
+ #export IFOLDER_MONO_PATH=$MONO_RUNTIME_PATH
cd @_bindir_@
$MONO_RUNTIME_PATH/bin/mono @_bindir_@/SimiasServerSetup.exe "$@"
Modified: trunk/src/utils/restore/ifolder-data-recovery.in
===================================================================
--- trunk/src/utils/restore/ifolder-data-recovery.in 2011-01-27 12:36:19 UTC (rev 7565)
+++ trunk/src/utils/restore/ifolder-data-recovery.in 2011-01-27 16:09:54 UTC (rev 7566)
@@ -47,7 +47,7 @@
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:@_webbindir_@
cd @_bindir_@
else
- MONO_RUNTIME_PATH=/opt/novell/bin
+ MONO_RUNTIME_PATH=/opt/novell/mono
export MONO_PATH=$MONO_RUNTIME_PATH/lib/mono/:$MONO_RUNTIME_PATH/lib/mono/2.0:@_webbindir_@:@_bindir_@
source $MONO_RUNTIME_PATH/bin/novell-ifolder-mono-environment.sh
export MONO_CFG_DIR=/etc
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mv...@us...> - 2011-04-13 16:09:33
|
Revision: 7584
http://simias.svn.sourceforge.net/simias/?rev=7584&view=rev
Author: mvikash
Date: 2011-04-13 16:09:23 +0000 (Wed, 13 Apr 2011)
Log Message:
-----------
ID: #670529
Reviewer: GG
Localization Required: Yes
Documentation Required: No
Description:
Modified Paths:
--------------
trunk/src/admin/iFolderAdmin.resx
trunk/src/webaccess/iFolderWeb.resx
Modified: trunk/src/admin/iFolderAdmin.resx
===================================================================
--- trunk/src/admin/iFolderAdmin.resx 2011-04-13 15:56:56 UTC (rev 7583)
+++ trunk/src/admin/iFolderAdmin.resx 2011-04-13 16:09:23 UTC (rev 7584)
@@ -592,7 +592,7 @@
<value>Unable to connect to the iFolder server. Revoke sharing once the server is reachable.</value>
</data>
<data name="LOGINCOPYRIGHT">
- <value>&copy; Copyright 2010 Novell, Inc. All rights reserved.</value>
+ <value>&copy; Copyright 2011 Novell, Inc. All rights reserved.</value>
</data>
<data name="LOGINERROR">
<value>Error:</value>
Modified: trunk/src/webaccess/iFolderWeb.resx
===================================================================
--- trunk/src/webaccess/iFolderWeb.resx 2011-04-13 15:56:56 UTC (rev 7583)
+++ trunk/src/webaccess/iFolderWeb.resx 2011-04-13 16:09:23 UTC (rev 7584)
@@ -127,7 +127,7 @@
<value>Language:</value>
</data>
<data name="LOGIN.COPYRIGHT">
- <value>&copy; Copyright 2010 Novell, Inc. All rights reserved.</value>
+ <value>&copy; Copyright 2011 Novell, Inc. All rights reserved.</value>
</data>
<data name="LOGIN">
<value>Log In</value>
@@ -735,4 +735,7 @@
<data name="DIRECTORY">
<value>Directory</value>
</data>
+ <data name="UNSUPPORTEDCHAR">
+ <value>Special characters are not supported. For more details, contact your administrator.</value>
+ </data>
</root>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mv...@us...> - 2011-05-11 12:17:12
|
Revision: 7597
http://simias.svn.sourceforge.net/simias/?rev=7597&view=rev
Author: mvikash
Date: 2011-05-11 12:17:06 +0000 (Wed, 11 May 2011)
Log Message:
-----------
ID: #611437
Reviewer: GG
Localization Required: No
Documentation Required: No
Description: changes done in webacess and admin page of ifolder to
prevent cross-site scripting.
Modified Paths:
--------------
trunk/src/admin/Footer.ascx.cs
trunk/src/admin/Login.aspx.cs
trunk/src/webaccess/Login.aspx
trunk/src/webaccess/Login.aspx.cs
trunk/src/webaccess/Settings.aspx.cs
Modified: trunk/src/admin/Footer.ascx.cs
===================================================================
--- trunk/src/admin/Footer.ascx.cs 2011-04-28 11:24:26 UTC (rev 7596)
+++ trunk/src/admin/Footer.ascx.cs 2011-05-11 12:17:06 UTC (rev 7597)
@@ -157,7 +157,7 @@
String.Format(
"Login.aspx?MessageType={0}&MessageText={1}",
Context.Server.UrlEncode( GetString( "LOGINERROR" ) ),
- Context.Server.UrlEncode( GetString( "SESSIONCLOSED" ) ) ) );
+ Context.Server.UrlEncode( "SESSIONCLOSED" ) ) );
}
if ( !IsPostBack )
Modified: trunk/src/admin/Login.aspx.cs
===================================================================
--- trunk/src/admin/Login.aspx.cs 2011-04-28 11:24:26 UTC (rev 7596)
+++ trunk/src/admin/Login.aspx.cs 2011-05-11 12:17:06 UTC (rev 7597)
@@ -153,6 +153,8 @@
{
// query message
MessageType.Text = Request.QueryString.Get("MessageType");
+
+ //retrive error code
MessageText.Text = Request.QueryString.Get("MessageText");
// basic authentication for iChain
@@ -272,6 +274,8 @@
ServerUrl.Text = simiasUrl;
}
+ //retrive msg code
+ MessageText.Text = DisplayText(MessageText.Text);
}
/// <summary>
@@ -377,7 +381,7 @@
if (testCookie == null)
{
MessageType.Text = rm.GetString("LOGINERROR");
- MessageText.Text = rm.GetString("LOGINNOCOOKIES");
+ MessageText.Text = "LOGINNOCOOKIES";
// log access
log.Info(Context, "Login Failed: Browser Cookies Disabled");
@@ -394,7 +398,7 @@
if ((noscript != null) && (noscript == "true"))
{
MessageType.Text = rm.GetString("LOGINERROR");
- MessageText.Text = rm.GetString("LOGINNOSCRIPT");
+ MessageText.Text = "LOGINNOSCRIPT";
// log access
log.Info(Context, "Login Failed: Browser Scripts Disabled");
@@ -622,26 +626,26 @@
switch(error)
{
case "InvalidCertificate":
- MessageText.Text = rm.GetString("INVALIDCERTIFICATE");
+ MessageText.Text = "INVALIDCERTIFICATE";
break;
case "InvalidCredentials":
case "UnknownUser":
case "InvalidPassword":
- MessageText.Text = rm.GetString("LOGINUNAUTHORIZED");
+ MessageText.Text = "LOGINUNAUTHORIZED";
break;
case "AccountDisabled":
case "SimiasLoginDisabled":
- MessageText.Text = rm.GetString("LOGINACCOUNTDISABLED");
+ MessageText.Text = "LOGINACCOUNTDISABLED";
break;
case "AccountLockout":
- MessageText.Text = rm.GetString("LOGINACCOUNTLOCKED");
+ MessageText.Text = "LOGINACCOUNTLOCKED";
break;
default:
- MessageText.Text = rm.GetString("LOGINCONNECTFAILED");
+ MessageText.Text = "LOGINCONNECTFAILED";
break;
}
@@ -662,7 +666,7 @@
switch(code)
{
case HttpStatusCode.Unauthorized:
- MessageText.Text = rm.GetString("LOGINUNAUTHORIZED");
+ MessageText.Text = "LOGINUNAUTHORIZED";
break;
case HttpStatusCode.Redirect:
@@ -678,12 +682,12 @@
{
// ignore
}
-
+
MessageText.Text = String.Format("{0}<br>{1}", rm.GetString("LOGINREDIRECT"), location);
break;
default:
- MessageText.Text = rm.GetString("LOGINCONNECTFAILED");
+ MessageText.Text = "LOGINCONNECTFAILED";
break;
}
}
@@ -691,22 +695,22 @@
case WebExceptionStatus.ConnectFailure:
MessageType.Text = rm.GetString("LOGINERROR");
- MessageText.Text = rm.GetString("LOGINCONNECTFAILED");
+ MessageText.Text = "LOGINCONNECTFAILED";
break;
case WebExceptionStatus.TrustFailure:
MessageType.Text = rm.GetString("LOGINERROR");
- MessageText.Text = rm.GetString("LOGINTRUSTFAILED");
+ MessageText.Text = "LOGINTRUSTFAILED";
break;
case WebExceptionStatus.SecureChannelFailure:
MessageType.Text = rm.GetString("LOGINERROR");
- MessageText.Text = rm.GetString("LOGINSECUREFAILED");
+ MessageText.Text = "LOGINSECUREFAILED";
break;
case WebExceptionStatus.SendFailure:
MessageType.Text = rm.GetString("LOGINERROR");
- MessageText.Text = rm.GetString("LOGINSENDFAILED");
+ MessageText.Text = "LOGINSENDFAILED";
break;
default:
@@ -720,6 +724,39 @@
return result;
}
+
+
+ public string DisplayText(string msgCode)
+ {
+
+ string fullstring = null ;
+
+ switch (msgCode)
+ {
+ case "LOGINSENDFAILED" :
+ case "LOGINSECUREFAILED":
+ case "LOGINTRUSTFAILED":
+ case "LOGINCONNECTFAILED":
+ case "LOGINUNAUTHORIZED":
+ case "LOGINACCOUNTLOCKED":
+ case "LOGINACCOUNTDISABLED":
+ case "INVALIDCERTIFICATE":
+ case "LOGINNOCOOKIES":
+ case "LOGINNOSCRIPT":
+ fullstring = rm.GetString(msgCode);
+ break;
+ default :
+
+ if( msgCode.Contains(rm.GetString("LOGINLOGOUT")) ||
+ msgCode.Contains(rm.GetString("LOGINREDIRECT")) ||
+ msgCode.Contains(rm.GetString("LOGINLOSTSESSION")) )
+ fullstring = msgCode;
+ break;
+ }
+
+ return fullstring;
+ }
+
}
/// <summary>
Modified: trunk/src/webaccess/Login.aspx
===================================================================
--- trunk/src/webaccess/Login.aspx 2011-04-28 11:24:26 UTC (rev 7596)
+++ trunk/src/webaccess/Login.aspx 2011-05-11 12:17:06 UTC (rev 7597)
@@ -48,7 +48,7 @@
<tr>
<td class="title" colspan="2"><asp:HyperLink ID="HelpButton" style="float:right; margin: -25px 5px 0px 0px; color:white; position: relative; text-decoration: none; font-size: 1em; font-weight: bold;" Target="ifolderHelp" NavigateUrl="help/login.html" runat="server" /></td>
</tr>
- <tr><td class="message" colspan="2"><asp:Literal ID="Message" runat="server" /></td></tr>
+ <tr><td class="message" colspan="2"><asp:Label ID="Message" runat="server" /></td></tr>
<tr>
<td class="field" style="text-align:right"><%= GetString("LOGIN.USERNAME") %></td>
<td class="field"><asp:TextBox ID="UserName" CssClass="field" runat="server" /></td>
Modified: trunk/src/webaccess/Login.aspx.cs
===================================================================
--- trunk/src/webaccess/Login.aspx.cs 2011-04-28 11:24:26 UTC (rev 7596)
+++ trunk/src/webaccess/Login.aspx.cs 2011-05-11 12:17:06 UTC (rev 7597)
@@ -65,7 +65,7 @@
/// <summary>
/// Message
/// </summary>
- protected Literal Message;
+ protected Label Message;
/// <summary>
/// Help Button
@@ -132,14 +132,14 @@
private void Page_Load(object sender, EventArgs e)
{
// clear any message
- Message.Text = "";
+ Message.Text = String.Empty;
// localization
rm = (ResourceManager) Application["RM"];
if (!IsPostBack)
{
- // query message
+ // query message, retrive error code
Message.Text = Request.QueryString.Get("Message");
// basic authentication for iChain
@@ -249,6 +249,8 @@
// check browser version
CheckBrowserVersion();
}
+ //retrive msg code
+ Message.Text = DisplayText(Message.Text);
}
/// <summary>
@@ -409,7 +411,7 @@
HttpCookie testCookie = Request.Cookies["test"];
if (testCookie == null)
{
- Message.Text = GetString("LOGIN.NOCOOKIES");
+ Message.Text = "LOGIN.NOCOOKIES";
// log access
log.Info(Context, "Login Failed: Browser Cookies Disabled");
@@ -425,7 +427,7 @@
string noscript = Request.Form.Get("noscript");
if ((noscript != null) && (noscript == "true"))
{
- Message.Text = GetString("LOGIN.NOSCRIPT");
+ Message.Text = "LOGIN.NOSCRIPT";
// log access
log.Info(Context, "Login Failed: Browser Scripts Disabled");
@@ -487,7 +489,7 @@
log.Info(Context, e, "Login Failed");
string ccode = LanguageList.SelectedValue == null ? "en" : LanguageList.SelectedValue;
Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture(ccode);
- Message.Text = GetString("LOGIN.UNAUTHORIZED");
+ Message.Text = "LOGIN.UNAUTHORIZED";
return;
}
@@ -533,7 +535,7 @@
{
//for now give a general message
log.Info(Context, e, "Login Failed");
- Message.Text = GetString("LOGIN.UNAUTHORIZED");
+ Message.Text = "LOGIN.UNAUTHORIZED";
return;
}
@@ -659,26 +661,26 @@
switch(error)
{
case "InvalidCertificate":
- Message.Text = GetString("LOGIN.INVALIDCERTIFICATE");
+ Message.Text = "LOGIN.INVALIDCERTIFICATE";
break;
case "InvalidCredentials":
case "UnknownUser":
case "InvalidPassword":
- Message.Text = GetString("LOGIN.UNAUTHORIZED");
+ Message.Text = "LOGIN.UNAUTHORIZED";
break;
case "AccountDisabled":
case "SimiasLoginDisabled":
- Message.Text = GetString("LOGIN.ACCOUNTDISABLED");
+ Message.Text = "LOGIN.ACCOUNTDISABLED";
break;
case "AccountLockout":
- Message.Text = GetString("LOGIN.ACCOUNTLOCKED");
+ Message.Text = "LOGIN.ACCOUNTLOCKED";
break;
default:
- Message.Text = GetString("LOGIN.CONNECTFAILED");
+ Message.Text = "LOGIN.CONNECTFAILED";
break;
}
@@ -697,7 +699,7 @@
switch(code)
{
case HttpStatusCode.Unauthorized:
- Message.Text = GetString("LOGIN.UNAUTHORIZED");
+ Message.Text = "LOGIN.UNAUTHORIZED";
break;
case HttpStatusCode.Redirect:
@@ -718,26 +720,26 @@
break;
default:
- Message.Text = GetString("LOGIN.CONNECTFAILED");
+ Message.Text = "LOGIN.CONNECTFAILED";
break;
}
}
break;
case WebExceptionStatus.ConnectFailure:
- Message.Text = GetString("LOGIN.CONNECTFAILED");
+ Message.Text = "LOGIN.CONNECTFAILED";
break;
case WebExceptionStatus.TrustFailure:
- Message.Text = GetString("LOGIN.TRUSTFAILED");
+ Message.Text = "LOGIN.TRUSTFAILED";
break;
case WebExceptionStatus.SecureChannelFailure:
- Message.Text = GetString("LOGIN.SECUREFAILED");
+ Message.Text = "LOGIN.SECUREFAILED";
break;
case WebExceptionStatus.SendFailure:
- Message.Text = GetString("LOGIN.SENDFAILED");
+ Message.Text = "LOGIN.SENDFAILED";
break;
default:
@@ -779,11 +781,43 @@
{
log.Info(Context, ex, "Culture: {0}", code);
}
- Message.Text = GetString("LOGIN.UNAUTHORIZED");
+ Message.Text = "LOGIN.UNAUTHORIZED";
}
+ Response.Redirect( String.Format("Login.aspx?Message={0}",Context.Server.UrlEncode( Message.Text )));
return result;
}
+
+ public string DisplayText(string msgCode)
+ {
+ string fullstring = null ;
+ switch (msgCode)
+ {
+ case "LOGIN.NOCOOKIES":
+ case "LOGIN.NOSCRIPT":
+ case "LOGIN.UNAUTHORIZED":
+ case "LOGIN.INVALIDCERTIFICATE":
+ case "LOGIN.ACCOUNTDISABLED":
+ case "LOGIN.ACCOUNTLOCKED":
+ case "LOGIN.CONNECTFAILED":
+ case "LOGIN.TRUSTFAILED":
+ case "LOGIN.SECUREFAILED":
+ case "LOGIN.SENDFAILED":
+ case "PASSWORDCHANGESUCCESS":
+ fullstring = rm.GetString(msgCode);
+ break;
+ default:
+ if( msgCode.Contains(rm.GetString("LOGIN.LOGOUT")) ||
+ msgCode.Contains(rm.GetString("LOGIN.LOSTSESSION")) ||
+ msgCode.Contains(rm.GetString("LOGIN.REDIRECT")) )
+ fullstring = msgCode;
+ break;
+ }
+ return fullstring;
+ }
+
+
+
}
}
Modified: trunk/src/webaccess/Settings.aspx.cs
===================================================================
--- trunk/src/webaccess/Settings.aspx.cs 2011-04-28 11:24:26 UTC (rev 7596)
+++ trunk/src/webaccess/Settings.aspx.cs 2011-05-11 12:17:06 UTC (rev 7597)
@@ -485,7 +485,7 @@
url += String.Format("?PasswordChanged={0}",PasswordChanged);
}
- Head.Logout(GetString("PASSWORDCHANGESUCCESS"));
+ Head.Logout("PASSWORDCHANGESUCCESS");
// redirect
//Response.Redirect(url);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kal...@us...> - 2013-08-02 05:59:04
|
Revision: 7647
http://sourceforge.net/p/simias/code/7647
Author: kalidasbala
Date: 2013-08-02 05:59:00 +0000 (Fri, 02 Aug 2013)
Log Message:
-----------
ID:#00000
Reviewer: Kalis
Localization Required: No
Documentation Required: No
Description: Upgrade to VS 2010
Modified Paths:
--------------
trunk/src/core/POBoxWS/POBoxWS.csproj
trunk/src/core/SimiasApp/Simias.csproj
trunk/src/core/SimiasClient/SimiasClient.csproj
trunk/src/core/SimiasLib.csproj
trunk/src/core/SimiasLib.sln
trunk/src/core/SyncService/SyncService.csproj
trunk/src/core/WebService/SimiasWebService.csproj
trunk/src/server/Simias.ADLdapProvider/Simias.ADLdapProvider.csproj
trunk/src/server/Simias.ClientUpdate/ClientUpdate.csproj
trunk/src/server/Simias.HostService/Simias.HostService.csproj
trunk/src/server/Simias.HttpFile/Simias.HttpFile.csproj
trunk/src/server/Simias.LdapProvider/Simias.LdapProvider.csproj
trunk/src/server/Simias.OpenLdapProvider/Simias.OpenLdapProvider.csproj
trunk/src/server/Simias.Rss/Simias.Rss.csproj
trunk/src/server/Simias.Server/Simias.Server.csproj
trunk/src/server/server.sln
trunk/src/server/setup/SimiasServerSetup.csproj
Modified: trunk/src/core/POBoxWS/POBoxWS.csproj
===================================================================
--- trunk/src/core/POBoxWS/POBoxWS.csproj 2013-07-30 10:41:06 UTC (rev 7646)
+++ trunk/src/core/POBoxWS/POBoxWS.csproj 2013-08-02 05:59:00 UTC (rev 7647)
@@ -1,4 +1,5 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
@@ -26,7 +27,9 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SignAssembly>true</SignAssembly>
- <OldToolsVersion>2.0</OldToolsVersion>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
Modified: trunk/src/core/SimiasApp/Simias.csproj
===================================================================
--- trunk/src/core/SimiasApp/Simias.csproj 2013-07-30 10:41:06 UTC (rev 7646)
+++ trunk/src/core/SimiasApp/Simias.csproj 2013-08-02 05:59:00 UTC (rev 7647)
@@ -1,4 +1,5 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
@@ -26,7 +27,9 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SignAssembly>true</SignAssembly>
- <OldToolsVersion>2.0</OldToolsVersion>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
@@ -91,6 +94,10 @@
<Optimize>true</Optimize>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
+ <PlatformTarget>x86</PlatformTarget>
+ <OutputPath>bin\Debug\</OutputPath>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="Mono.WebServer2, Version=0.2.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
@@ -130,6 +137,7 @@
</Compile>
</ItemGroup>
<ItemGroup>
+ <None Include="app.config" />
<None Include="iFolder.snk" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Modified: trunk/src/core/SimiasClient/SimiasClient.csproj
===================================================================
--- trunk/src/core/SimiasClient/SimiasClient.csproj 2013-07-30 10:41:06 UTC (rev 7646)
+++ trunk/src/core/SimiasClient/SimiasClient.csproj 2013-08-02 05:59:00 UTC (rev 7647)
@@ -1,4 +1,5 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
@@ -26,7 +27,9 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SignAssembly>true</SignAssembly>
- <OldToolsVersion>2.0</OldToolsVersion>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
Modified: trunk/src/core/SimiasLib.csproj
===================================================================
--- trunk/src/core/SimiasLib.csproj 2013-07-30 10:41:06 UTC (rev 7646)
+++ trunk/src/core/SimiasLib.csproj 2013-08-02 05:59:00 UTC (rev 7647)
@@ -1,4 +1,5 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
@@ -26,7 +27,9 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SignAssembly>true</SignAssembly>
- <OldToolsVersion>2.0</OldToolsVersion>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
Modified: trunk/src/core/SimiasLib.sln
===================================================================
--- trunk/src/core/SimiasLib.sln 2013-07-30 10:41:06 UTC (rev 7646)
+++ trunk/src/core/SimiasLib.sln 2013-08-02 05:59:00 UTC (rev 7647)
@@ -1,5 +1,5 @@
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimiasLib", "SimiasLib.csproj", "{7839E703-0177-4162-B083-BCFD4ED1CC1B}"
ProjectSection(ProjectDependencies) = postProject
{188191A2-3D4D-404E-8F66-A1FAB865F586} = {188191A2-3D4D-404E-8F66-A1FAB865F586}
@@ -11,7 +11,7 @@
{188191A2-3D4D-404E-8F66-A1FAB865F586} = {188191A2-3D4D-404E-8F66-A1FAB865F586}
EndProjectSection
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FlaimWrapper", "FlaimProvider\FlaimWrapper\FlaimWrapper.vcproj", "{188191A2-3D4D-404E-8F66-A1FAB865F586}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FlaimWrapper", "FlaimProvider\FlaimWrapper\FlaimWrapper.vcxproj", "{188191A2-3D4D-404E-8F66-A1FAB865F586}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimiasWebService", "WebService\SimiasWebService.csproj", "{BEB45326-E6BE-45F1-B7AF-8A404656C684}"
EndProject
@@ -23,34 +23,64 @@
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {7839E703-0177-4162-B083-BCFD4ED1CC1B}.Debug|Win32.ActiveCfg = Debug|x86
+ {7839E703-0177-4162-B083-BCFD4ED1CC1B}.Debug|Win32.Build.0 = Debug|x86
+ {7839E703-0177-4162-B083-BCFD4ED1CC1B}.Debug|x64.ActiveCfg = Debug|x64
+ {7839E703-0177-4162-B083-BCFD4ED1CC1B}.Debug|x64.Build.0 = Debug|x64
{7839E703-0177-4162-B083-BCFD4ED1CC1B}.Release|Win32.ActiveCfg = Release|x86
{7839E703-0177-4162-B083-BCFD4ED1CC1B}.Release|Win32.Build.0 = Release|x86
{7839E703-0177-4162-B083-BCFD4ED1CC1B}.Release|x64.ActiveCfg = Release|x64
{7839E703-0177-4162-B083-BCFD4ED1CC1B}.Release|x64.Build.0 = Release|x64
+ {FBC32721-2AEE-48D5-8353-FAACC2AF16B2}.Debug|Win32.ActiveCfg = Debug|x86
+ {FBC32721-2AEE-48D5-8353-FAACC2AF16B2}.Debug|Win32.Build.0 = Debug|x86
+ {FBC32721-2AEE-48D5-8353-FAACC2AF16B2}.Debug|x64.ActiveCfg = Debug|x64
+ {FBC32721-2AEE-48D5-8353-FAACC2AF16B2}.Debug|x64.Build.0 = Debug|x64
{FBC32721-2AEE-48D5-8353-FAACC2AF16B2}.Release|Win32.ActiveCfg = Release|x86
{FBC32721-2AEE-48D5-8353-FAACC2AF16B2}.Release|Win32.Build.0 = Release|x86
{FBC32721-2AEE-48D5-8353-FAACC2AF16B2}.Release|x64.ActiveCfg = Release|x64
{FBC32721-2AEE-48D5-8353-FAACC2AF16B2}.Release|x64.Build.0 = Release|x64
+ {188191A2-3D4D-404E-8F66-A1FAB865F586}.Debug|Win32.ActiveCfg = Debug|Win32
+ {188191A2-3D4D-404E-8F66-A1FAB865F586}.Debug|Win32.Build.0 = Debug|Win32
+ {188191A2-3D4D-404E-8F66-A1FAB865F586}.Debug|x64.ActiveCfg = Release|x64
+ {188191A2-3D4D-404E-8F66-A1FAB865F586}.Debug|x64.Build.0 = Release|x64
{188191A2-3D4D-404E-8F66-A1FAB865F586}.Release|Win32.ActiveCfg = Release|Win32
{188191A2-3D4D-404E-8F66-A1FAB865F586}.Release|Win32.Build.0 = Release|Win32
{188191A2-3D4D-404E-8F66-A1FAB865F586}.Release|x64.ActiveCfg = Release|x64
{188191A2-3D4D-404E-8F66-A1FAB865F586}.Release|x64.Build.0 = Release|x64
+ {BEB45326-E6BE-45F1-B7AF-8A404656C684}.Debug|Win32.ActiveCfg = Debug|x86
+ {BEB45326-E6BE-45F1-B7AF-8A404656C684}.Debug|Win32.Build.0 = Debug|x86
+ {BEB45326-E6BE-45F1-B7AF-8A404656C684}.Debug|x64.ActiveCfg = Debug|x64
+ {BEB45326-E6BE-45F1-B7AF-8A404656C684}.Debug|x64.Build.0 = Debug|x64
{BEB45326-E6BE-45F1-B7AF-8A404656C684}.Release|Win32.ActiveCfg = Release|x86
{BEB45326-E6BE-45F1-B7AF-8A404656C684}.Release|Win32.Build.0 = Release|x86
{BEB45326-E6BE-45F1-B7AF-8A404656C684}.Release|x64.ActiveCfg = Release|x64
{BEB45326-E6BE-45F1-B7AF-8A404656C684}.Release|x64.Build.0 = Release|x64
+ {3275A0B3-4BE7-4FB4-83F9-601FA09C0C86}.Debug|Win32.ActiveCfg = Debug|x86
+ {3275A0B3-4BE7-4FB4-83F9-601FA09C0C86}.Debug|Win32.Build.0 = Debug|x86
+ {3275A0B3-4BE7-4FB4-83F9-601FA09C0C86}.Debug|x64.ActiveCfg = Debug|x64
+ {3275A0B3-4BE7-4FB4-83F9-601FA09C0C86}.Debug|x64.Build.0 = Debug|x64
{3275A0B3-4BE7-4FB4-83F9-601FA09C0C86}.Release|Win32.ActiveCfg = Release|x86
{3275A0B3-4BE7-4FB4-83F9-601FA09C0C86}.Release|Win32.Build.0 = Release|x86
{3275A0B3-4BE7-4FB4-83F9-601FA09C0C86}.Release|x64.ActiveCfg = Release|x64
{3275A0B3-4BE7-4FB4-83F9-601FA09C0C86}.Release|x64.Build.0 = Release|x64
+ {4C2C177D-6D5C-46F1-9345-7BE58F1422B1}.Debug|Win32.ActiveCfg = Debug|x86
+ {4C2C177D-6D5C-46F1-9345-7BE58F1422B1}.Debug|Win32.Build.0 = Debug|x86
+ {4C2C177D-6D5C-46F1-9345-7BE58F1422B1}.Debug|x64.ActiveCfg = Debug|x64
+ {4C2C177D-6D5C-46F1-9345-7BE58F1422B1}.Debug|x64.Build.0 = Debug|x64
{4C2C177D-6D5C-46F1-9345-7BE58F1422B1}.Release|Win32.ActiveCfg = Release|x86
{4C2C177D-6D5C-46F1-9345-7BE58F1422B1}.Release|Win32.Build.0 = Release|x86
{4C2C177D-6D5C-46F1-9345-7BE58F1422B1}.Release|x64.ActiveCfg = Release|x64
{4C2C177D-6D5C-46F1-9345-7BE58F1422B1}.Release|x64.Build.0 = Release|x64
+ {E38BAF80-9B31-4D15-A002-E775B96FAFA6}.Debug|Win32.ActiveCfg = Debug|x86
+ {E38BAF80-9B31-4D15-A002-E775B96FAFA6}.Debug|Win32.Build.0 = Debug|x86
+ {E38BAF80-9B31-4D15-A002-E775B96FAFA6}.Debug|x64.ActiveCfg = Debug|x64
+ {E38BAF80-9B31-4D15-A002-E775B96FAFA6}.Debug|x64.Build.0 = Debug|x64
{E38BAF80-9B31-4D15-A002-E775B96FAFA6}.Release|Win32.ActiveCfg = Release|x86
{E38BAF80-9B31-4D15-A002-E775B96FAFA6}.Release|Win32.Build.0 = Release|x86
{E38BAF80-9B31-4D15-A002-E775B96FAFA6}.Release|x64.ActiveCfg = Release|x64
Modified: trunk/src/core/SyncService/SyncService.csproj
===================================================================
--- trunk/src/core/SyncService/SyncService.csproj 2013-07-30 10:41:06 UTC (rev 7646)
+++ trunk/src/core/SyncService/SyncService.csproj 2013-08-02 05:59:00 UTC (rev 7647)
@@ -1,4 +1,5 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
@@ -26,7 +27,9 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SignAssembly>true</SignAssembly>
- <OldToolsVersion>2.0</OldToolsVersion>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
Modified: trunk/src/core/WebService/SimiasWebService.csproj
===================================================================
--- trunk/src/core/WebService/SimiasWebService.csproj 2013-07-30 10:41:06 UTC (rev 7646)
+++ trunk/src/core/WebService/SimiasWebService.csproj 2013-08-02 05:59:00 UTC (rev 7647)
@@ -1,4 +1,5 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
@@ -26,7 +27,9 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SignAssembly>true</SignAssembly>
- <OldToolsVersion>2.0</OldToolsVersion>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
Modified: trunk/src/server/Simias.ADLdapProvider/Simias.ADLdapProvider.csproj
===================================================================
--- trunk/src/server/Simias.ADLdapProvider/Simias.ADLdapProvider.csproj 2013-07-30 10:41:06 UTC (rev 7646)
+++ trunk/src/server/Simias.ADLdapProvider/Simias.ADLdapProvider.csproj 2013-08-02 05:59:00 UTC (rev 7647)
@@ -1,140 +1,124 @@
-<VisualStudioProject>
- <CSHARP
- ProjectType = "Local"
- ProductVersion = "7.10.3077"
- SchemaVersion = "2.0"
- ProjectGuid = "{E12333DC-7C6C-48BA-8439-AC53D1A33766}"
- >
- <Build>
- <Settings
- ApplicationIcon = ""
- AssemblyKeyContainerName = ""
- AssemblyName = "Simias.ADLdapProvider"
- AssemblyOriginatorKeyFile = ""
- DefaultClientScript = "JScript"
- DefaultHTMLPageLayout = "Grid"
- DefaultTargetSchema = "IE50"
- DelaySign = "false"
- OutputType = "Library"
- PreBuildEvent = ""
- PostBuildEvent = ""
- RootNamespace = "Simias.ADLdapProvider"
- RunPostBuildEvent = "OnBuildSuccess"
- StartupObject = ""
- >
- <Config
- Name = "Debug"
- AllowUnsafeBlocks = "false"
- BaseAddress = "285212672"
- CheckForOverflowUnderflow = "false"
- ConfigurationOverrideFile = ""
- DefineConstants = "DEBUG;TRACE"
- DocumentationFile = ""
- DebugSymbols = "true"
- FileAlignment = "4096"
- IncrementalBuild = "false"
- NoStdLib = "false"
- NoWarn = ""
- Optimize = "false"
- OutputPath = "bin\Debug\"
- RegisterForComInterop = "false"
- RemoveIntegerChecks = "false"
- TreatWarningsAsErrors = "false"
- WarningLevel = "4"
- />
- <Config
- Name = "Release"
- AllowUnsafeBlocks = "false"
- BaseAddress = "285212672"
- CheckForOverflowUnderflow = "false"
- ConfigurationOverrideFile = ""
- DefineConstants = "TRACE"
- DocumentationFile = ""
- DebugSymbols = "false"
- FileAlignment = "4096"
- IncrementalBuild = "false"
- NoStdLib = "false"
- NoWarn = ""
- Optimize = "true"
- OutputPath = "bin\Release\"
- RegisterForComInterop = "false"
- RemoveIntegerChecks = "false"
- TreatWarningsAsErrors = "false"
- WarningLevel = "4"
- />
- </Settings>
- <References>
- <Reference
- Name = "System"
- AssemblyName = "System"
- HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"
- />
- <Reference
- Name = "System.Data"
- AssemblyName = "System.Data"
- HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"
- />
- <Reference
- Name = "System.XML"
- AssemblyName = "System.Xml"
- HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll"
- />
- <Reference
- Name = "log4net"
- AssemblyName = "log4net"
- HintPath = "..\..\..\external\log4net\bin\net\1.1\release\log4net.dll"
- />
- <Reference
- Name = "Novell.Directory.Ldap"
- AssemblyName = "Novell.Directory.Ldap"
- HintPath = "..\..\..\external\csharpldap\Novell.Directory.Ldap.dll"
- />
- <Reference
- Name = "Mono.Security"
- AssemblyName = "Mono.Security"
- HintPath = "..\..\..\external\csharpldap\Mono.Security.dll"
- />
- <Reference
- Name = "Simias.Server"
- AssemblyName = "Simias.Server"
- HintPath = "..\Simias.Server\Simias.Server.dll"
- />
- <Reference
- Name = "SimiasClient"
- AssemblyName = "SimiasClient"
- HintPath = "..\..\core\SimiasClient\SimiasClient.dll"
- />
- <Reference
- Name = "SimiasLib"
- AssemblyName = "SimiasLib"
- HintPath = "..\..\core\SimiasLib.dll\SimiasLib.dll"
- />
- <Reference
- Name = "Simias.LdapProvider"
- AssemblyName = "Simias.LdapProvider"
- HintPath = "..\Simias.LdapProvider\Simias.LdapProvider.dll"
- />
- </References>
- </Build>
- <Files>
- <Include>
- <File
- RelPath = "ADLdapSync.cs"
- SubType = "Code"
- BuildAction = "Compile"
- />
- <File
- RelPath = "AssemblyInfo.cs"
- SubType = "Code"
- BuildAction = "Compile"
- />
- <File
- RelPath = "User.cs"
- SubType = "Code"
- BuildAction = "Compile"
- />
- </Include>
- </Files>
- </CSHARP>
-</VisualStudioProject>
-
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
+ <PropertyGroup>
+ <ProjectType>Local</ProjectType>
+ <ProductVersion>8.0.30319</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{E12333DC-7C6C-48BA-8439-AC53D1A33766}</ProjectGuid>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ApplicationIcon />
+ <AssemblyKeyContainerName />
+ <AssemblyName>Simias.ADLdapProvider</AssemblyName>
+ <AssemblyOriginatorKeyFile />
+ <DefaultClientScript>JScript</DefaultClientScript>
+ <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
+ <DefaultTargetSchema>IE50</DefaultTargetSchema>
+ <DelaySign>false</DelaySign>
+ <OutputType>Library</OutputType>
+ <RootNamespace>Simias.ADLdapProvider</RootNamespace>
+ <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
+ <StartupObject />
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ <OldToolsVersion>0.0</OldToolsVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <OutputPath>bin\Debug\</OutputPath>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+ <BaseAddress>285212672</BaseAddress>
+ <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
+ <ConfigurationOverrideFile />
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DocumentationFile />
+ <DebugSymbols>true</DebugSymbols>
+ <FileAlignment>4096</FileAlignment>
+ <NoStdLib>false</NoStdLib>
+ <NoWarn />
+ <Optimize>false</Optimize>
+ <RegisterForComInterop>false</RegisterForComInterop>
+ <RemoveIntegerChecks>false</RemoveIntegerChecks>
+ <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
+ <WarningLevel>4</WarningLevel>
+ <DebugType>full</DebugType>
+ <ErrorReport>prompt</ErrorReport>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <OutputPath>bin\Release\</OutputPath>
+ <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
+ <BaseAddress>285212672</BaseAddress>
+ <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
+ <ConfigurationOverrideFile />
+ <DefineConstants>TRACE</DefineConstants>
+ <DocumentationFile />
+ <DebugSymbols>false</DebugSymbols>
+ <FileAlignment>4096</FileAlignment>
+ <NoStdLib>false</NoStdLib>
+ <NoWarn />
+ <Optimize>true</Optimize>
+ <RegisterForComInterop>false</RegisterForComInterop>
+ <RemoveIntegerChecks>false</RemoveIntegerChecks>
+ <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
+ <WarningLevel>4</WarningLevel>
+ <DebugType>none</DebugType>
+ <ErrorReport>prompt</ErrorReport>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="log4net">
+ <Name>log4net</Name>
+ <HintPath>..\..\..\external\log4net\bin\net\1.1\release\log4net.dll</HintPath>
+ </Reference>
+ <Reference Include="Mono.Security">
+ <Name>Mono.Security</Name>
+ <HintPath>..\..\..\external\csharpldap\Mono.Security.dll</HintPath>
+ </Reference>
+ <Reference Include="Novell.Directory.Ldap">
+ <Name>Novell.Directory.Ldap</Name>
+ <HintPath>..\..\..\external\csharpldap\Novell.Directory.Ldap.dll</HintPath>
+ </Reference>
+ <Reference Include="Simias.LdapProvider">
+ <Name>Simias.LdapProvider</Name>
+ <HintPath>..\Simias.LdapProvider\Simias.LdapProvider.dll</HintPath>
+ </Reference>
+ <Reference Include="Simias.Server">
+ <Name>Simias.Server</Name>
+ <HintPath>..\Simias.Server\Simias.Server.dll</HintPath>
+ </Reference>
+ <Reference Include="SimiasClient">
+ <Name>SimiasClient</Name>
+ <HintPath>..\..\core\SimiasClient\SimiasClient.dll</HintPath>
+ </Reference>
+ <Reference Include="SimiasLib">
+ <Name>SimiasLib</Name>
+ <HintPath>..\..\core\SimiasLib.dll\SimiasLib.dll</HintPath>
+ </Reference>
+ <Reference Include="System">
+ <Name>System</Name>
+ </Reference>
+ <Reference Include="System.Data">
+ <Name>System.Data</Name>
+ </Reference>
+ <Reference Include="System.Xml">
+ <Name>System.XML</Name>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="ADLdapSync.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="AssemblyInfo.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="User.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PreBuildEvent />
+ <PostBuildEvent />
+ </PropertyGroup>
+</Project>
\ No newline at end of file
Modified: trunk/src/server/Simias.ClientUpdate/ClientUpdate.csproj
===================================================================
--- trunk/src/server/Simias.ClientUpdate/ClientUpdate.csproj 2013-07-30 10:41:06 UTC (rev 7646)
+++ trunk/src/server/Simias.ClientUpdate/ClientUpdate.csproj 2013-08-02 05:59:00 UTC (rev 7647)
@@ -1,139 +1,116 @@
-<VisualStudioProject>
- <CSHARP
- ProjectType = "Local"
- ProductVersion = "7.10.3077"
- SchemaVersion = "2.0"
- ProjectGuid = "{D2793964-4AF4-44EA-8B73-A5E6F853E7BE}"
- >
- <Build>
- <Settings
- ApplicationIcon = ""
- AssemblyKeyContainerName = ""
- AssemblyName = "ClientUpdate"
- AssemblyOriginatorKeyFile = ""
- DefaultClientScript = "JScript"
- DefaultHTMLPageLayout = "Grid"
- DefaultTargetSchema = "IE50"
- DelaySign = "false"
- OutputType = "Library"
- PreBuildEvent = ""
- PostBuildEvent = ""
- RootNamespace = "ClientUpdate"
- RunPostBuildEvent = "OnBuildSuccess"
- StartupObject = ""
- >
- <Config
- Name = "Debug"
- AllowUnsafeBlocks = "false"
- BaseAddress = "285212672"
- CheckForOverflowUnderflow = "false"
- ConfigurationOverrideFile = ""
- DefineConstants = "DEBUG;TRACE"
- DocumentationFile = ""
- DebugSymbols = "true"
- FileAlignment = "4096"
- IncrementalBuild = "false"
- NoStdLib = "false"
- NoWarn = ""
- Optimize = "false"
- OutputPath = "bin\Debug\"
- RegisterForComInterop = "false"
- RemoveIntegerChecks = "false"
- TreatWarningsAsErrors = "false"
- WarningLevel = "4"
- />
- <Config
- Name = "Release"
- AllowUnsafeBlocks = "false"
- BaseAddress = "285212672"
- CheckForOverflowUnderflow = "false"
- ConfigurationOverrideFile = ""
- DefineConstants = "TRACE"
- DocumentationFile = ""
- DebugSymbols = "false"
- FileAlignment = "4096"
- IncrementalBuild = "false"
- NoStdLib = "false"
- NoWarn = ""
- Optimize = "true"
- OutputPath = "bin\Release\"
- RegisterForComInterop = "false"
- RemoveIntegerChecks = "false"
- TreatWarningsAsErrors = "false"
- WarningLevel = "4"
- />
- </Settings>
- <References>
- <Reference
- Name = "System"
- AssemblyName = "System"
- HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"
- />
- <Reference
- Name = "System.Data"
- AssemblyName = "System.Data"
- HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"
- />
- <Reference
- Name = "System.XML"
- AssemblyName = "System.Xml"
- HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll"
- />
- <Reference
- Name = "System.Web"
- AssemblyName = "System.Web"
- HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.dll"
- />
- <Reference
- Name = "System.Web.Services"
- AssemblyName = "System.Web.Services"
- HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.Services.dll"
- />
- <Reference
- Name = "SimiasLib"
- AssemblyName = "SimiasLib"
- HintPath = "..\..\core\SimiasLib.dll\SimiasLib.dll"
- />
- <Reference
- Name = "SimiasClient"
- AssemblyName = "SimiasClient"
- HintPath = "..\..\core\SimiasClient\SimiasClient.dll"
- />
- </References>
- </Build>
- <Files>
- <Include>
- <File
- RelPath = "AssemblyInfo.cs"
- SubType = "Code"
- BuildAction = "Compile"
- />
- <File
- ...
[truncated message content] |
|
From: <kal...@us...> - 2013-09-13 04:48:13
|
Revision: 7653
http://sourceforge.net/p/simias/code/7653
Author: kalidasbala
Date: 2013-09-13 04:48:09 +0000 (Fri, 13 Sep 2013)
Log Message:
-----------
ID:#00000
Reviewer: Kalis
Localization Required: No
Documentation Required: No
Description: Version.config update and assembly version update
Modified Paths:
--------------
trunk/src/core/FlaimProvider/FlaimWrapper/FlaimWrapper.vcxproj
trunk/src/core/POBoxWS/Properties/AssemblyInfo.cs
trunk/src/core/Properties/AssemblyInfo.cs
trunk/src/core/SimiasApp/Properties/AssemblyInfo.cs
trunk/src/core/SimiasClient/Properties/AssemblyInfo.cs
trunk/src/core/SyncService/Properties/AssemblyInfo.cs
trunk/src/core/WebService/Properties/AssemblyInfo.cs
trunk/src/server/Simias.ClientUpdate/version.config
Modified: trunk/src/core/FlaimProvider/FlaimWrapper/FlaimWrapper.vcxproj
===================================================================
--- trunk/src/core/FlaimProvider/FlaimWrapper/FlaimWrapper.vcxproj 2013-08-26 12:44:38 UTC (rev 7652)
+++ trunk/src/core/FlaimProvider/FlaimWrapper/FlaimWrapper.vcxproj 2013-09-13 04:48:09 UTC (rev 7653)
@@ -115,7 +115,7 @@
<Link>
<AdditionalDependencies>rpcrt4.lib;ws2_32.lib;odbc32.lib;odbccp32.lib;flaim.lib;msvcrt.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>.\Release/FlaimWrapper.dll</OutputFile>
- <Version>3.9.1.0</Version>
+ <Version>3.9.2.0</Version>
<SuppressStartupBanner>true</SuppressStartupBanner>
<AdditionalLibraryDirectories>$(SolutionDir)..\..\dependencies\external\libflaim\win32;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<ManifestFile>$(IntDir)$(TargetFileName).manifest</ManifestFile>
Modified: trunk/src/core/POBoxWS/Properties/AssemblyInfo.cs
===================================================================
--- trunk/src/core/POBoxWS/Properties/AssemblyInfo.cs 2013-08-26 12:44:38 UTC (rev 7652)
+++ trunk/src/core/POBoxWS/Properties/AssemblyInfo.cs 2013-09-13 04:48:09 UTC (rev 7653)
@@ -9,8 +9,8 @@
[assembly: AssemblyDescription("Core Component of Novell iFolder")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Novell Inc")]
-[assembly: AssemblyProduct("Novell iFolder")]
-[assembly: AssemblyCopyright("Copyright © 2009")]
+[assembly: AssemblyProduct("Novell iFolder")]
+[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("iFolder")]
[assembly: AssemblyCulture("")]
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("3.9.1.0")]
-[assembly: AssemblyFileVersion("3.9.1.0")]
+[assembly: AssemblyVersion("3.9.2.0")]
+[assembly: AssemblyFileVersion("3.9.2.0")]
Modified: trunk/src/core/Properties/AssemblyInfo.cs
===================================================================
--- trunk/src/core/Properties/AssemblyInfo.cs 2013-08-26 12:44:38 UTC (rev 7652)
+++ trunk/src/core/Properties/AssemblyInfo.cs 2013-09-13 04:48:09 UTC (rev 7653)
@@ -9,8 +9,8 @@
[assembly: AssemblyDescription("Core Library for iFolder")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Novell Inc")]
-[assembly: AssemblyProduct("Novell iFolder")]
-[assembly: AssemblyCopyright("Copyright © 2009")]
+[assembly: AssemblyProduct("Novell iFolder")]
+[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("iFolder")]
[assembly: AssemblyCulture("")]
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("3.9.1.0")]
-[assembly: AssemblyFileVersion("3.9.1.0")]
+[assembly: AssemblyVersion("3.9.2.0")]
+[assembly: AssemblyFileVersion("3.9.2.0")]
Modified: trunk/src/core/SimiasApp/Properties/AssemblyInfo.cs
===================================================================
--- trunk/src/core/SimiasApp/Properties/AssemblyInfo.cs 2013-08-26 12:44:38 UTC (rev 7652)
+++ trunk/src/core/SimiasApp/Properties/AssemblyInfo.cs 2013-09-13 04:48:09 UTC (rev 7653)
@@ -9,8 +9,8 @@
[assembly: AssemblyDescription("Simias Executable for Web Service Communication")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Novell Inc")]
-[assembly: AssemblyProduct("Novell iFolder")]
-[assembly: AssemblyCopyright("Copyright © 2009")]
+[assembly: AssemblyProduct("Novell iFolder")]
+[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("iFolder")]
[assembly: AssemblyCulture("")]
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("3.9.1.0")]
-[assembly: AssemblyFileVersion("3.9.1.0")]
+[assembly: AssemblyVersion("3.9.2.0")]
+[assembly: AssemblyFileVersion("3.9.2.0")]
Modified: trunk/src/core/SimiasClient/Properties/AssemblyInfo.cs
===================================================================
--- trunk/src/core/SimiasClient/Properties/AssemblyInfo.cs 2013-08-26 12:44:38 UTC (rev 7652)
+++ trunk/src/core/SimiasClient/Properties/AssemblyInfo.cs 2013-09-13 04:48:09 UTC (rev 7653)
@@ -9,8 +9,8 @@
[assembly: AssemblyDescription("Core client component for iFolder")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Novell Inc")]
-[assembly: AssemblyProduct("Novell iFolder")]
-[assembly: AssemblyCopyright("Copyright © 2009")]
+[assembly: AssemblyProduct("Novell iFolder")]
+[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("iFolder")]
[assembly: AssemblyCulture("")]
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("3.9.1.0")]
-[assembly: AssemblyFileVersion("3.9.1.0")]
+[assembly: AssemblyVersion("3.9.2.0")]
+[assembly: AssemblyFileVersion("3.9.2.0")]
Modified: trunk/src/core/SyncService/Properties/AssemblyInfo.cs
===================================================================
--- trunk/src/core/SyncService/Properties/AssemblyInfo.cs 2013-08-26 12:44:38 UTC (rev 7652)
+++ trunk/src/core/SyncService/Properties/AssemblyInfo.cs 2013-09-13 04:48:09 UTC (rev 7653)
@@ -9,8 +9,8 @@
[assembly: AssemblyDescription("Core Synchronization component")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Novell Inc.")]
-[assembly: AssemblyProduct("Novell iFolder")]
-[assembly: AssemblyCopyright("Copyright © 2009")]
+[assembly: AssemblyProduct("Novell iFolder")]
+[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("iFolder")]
[assembly: AssemblyCulture("")]
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("3.9.1.0")]
-[assembly: AssemblyFileVersion("3.9.1.0")]
+[assembly: AssemblyVersion("3.9.2.0")]
+[assembly: AssemblyFileVersion("3.9.2.0")]
Modified: trunk/src/core/WebService/Properties/AssemblyInfo.cs
===================================================================
--- trunk/src/core/WebService/Properties/AssemblyInfo.cs 2013-08-26 12:44:38 UTC (rev 7652)
+++ trunk/src/core/WebService/Properties/AssemblyInfo.cs 2013-09-13 04:48:09 UTC (rev 7653)
@@ -9,8 +9,8 @@
[assembly: AssemblyDescription("Core Web Service component")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Novell Inc")]
-[assembly: AssemblyProduct("Novell iFolder")]
-[assembly: AssemblyCopyright("Copyright © 2009")]
+[assembly: AssemblyProduct("Novell iFolder")]
+[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("iFolder")]
[assembly: AssemblyCulture("")]
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("3.9.1.0")]
-[assembly: AssemblyFileVersion("3.9.1.0")]
+[assembly: AssemblyVersion("3.9.2.0")]
+[assembly: AssemblyFileVersion("3.9.2.0")]
Modified: trunk/src/server/Simias.ClientUpdate/version.config
===================================================================
--- trunk/src/server/Simias.ClientUpdate/version.config 2013-08-26 12:44:38 UTC (rev 7652)
+++ trunk/src/server/Simias.ClientUpdate/version.config 2013-09-13 04:48:09 UTC (rev 7653)
@@ -4,15 +4,15 @@
with the one specified here by 'filename'. -->
<versioninfo>
<distribution match="windows32">
- <version>3.9.1.0</version>
+ <version>3.9.2.0</version>
<filename>ifolder3-windows.exe</filename>
</distribution>
<distribution match="windows64">
- <version>3.9.1.0</version>
+ <version>3.9.2.0</version>
<filename>ifolder3-windows-x64.exe</filename>
</distribution>
<distribution match="DEFAULT">
- <version>3.9.1.0</version>
+ <version>3.9.2.0</version>
<filename>ifolder3-windows.exe</filename>
</distribution>
</versioninfo>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kal...@us...> - 2013-10-30 13:15:31
|
Revision: 7675
http://sourceforge.net/p/simias/code/7675
Author: kalidasbala
Date: 2013-10-30 13:15:26 +0000 (Wed, 30 Oct 2013)
Log Message:
-----------
Fix for random null exception 847638
Modified Paths:
--------------
trunk/src/webaccess/Browse.aspx.cs
trunk/src/webservices/iFolder.cs
Modified: trunk/src/webaccess/Browse.aspx.cs
===================================================================
--- trunk/src/webaccess/Browse.aspx.cs 2013-10-17 15:17:52 UTC (rev 7674)
+++ trunk/src/webaccess/Browse.aspx.cs 2013-10-30 13:15:26 UTC (rev 7675)
@@ -395,7 +395,13 @@
{
// ifolder
string ifolderLocation = web.GetiFolderLocation (ifolderID);
-
+ if(ifolderLocation == null)
+ {
+ //if we are not able to get the ifolder location for a particular ifolder we show the iFolder page instead of an error
+ // we fail to get the location, due to catalog update delay
+ Response.Redirect("iFolders.aspx");
+ }
+
UriBuilder remoteurl = new UriBuilder(ifolderLocation);
remoteurl.Path = (new Uri(web.Url)).PathAndQuery;
web.Url = remoteurl.Uri.ToString();
Modified: trunk/src/webservices/iFolder.cs
===================================================================
--- trunk/src/webservices/iFolder.cs 2013-10-17 15:17:52 UTC (rev 7674)
+++ trunk/src/webservices/iFolder.cs 2013-10-30 13:15:26 UTC (rev 7675)
@@ -373,16 +373,16 @@
/// <summary>
/// API use to create Encrypted iFolder with the given ifolder ID and return newly create ifolder..
/// </summary>
- public static iFolder CreateEncryptediFolderWithID(string name, string userID, string description, string iFolderID, string eKey, string eBlob, string eAlgorithm, string rKey)
- {
- iFolder ifolder = CreateiFolder(name, userID, description, iFolderID );
- if( ifolder == null)
- return null;
- Store store = Store.GetStore();
- Collection col = store.GetCollectionByID(ifolder.ID);
- col = col.SetEncryptionProperties(eKey, eBlob, eAlgorithm, rKey);
- return new iFolder(col, null);
- }
+ public static iFolder CreateEncryptediFolderWithID(string name, string userID, string description, string iFolderID, string eKey, string eBlob, string eAlgorithm, string rKey)
+ {
+ iFolder ifolder = CreateiFolder(name, userID, description, iFolderID );
+ if( ifolder == null)
+ return null;
+ Store store = Store.GetStore();
+ Collection col = store.GetCollectionByID(ifolder.ID);
+ col = col.SetEncryptionProperties(eKey, eBlob, eAlgorithm, rKey);
+ return new iFolder(col, null);
+ }
@@ -473,29 +473,43 @@
/// </summary>
/// <param name="name">The iFolder ID</param>
/// <returns>Private url of iFolder's HomeServer</returns>
- public static string GetiFolderLocation (string ifolderID)
+ public static string GetiFolderLocation (string ifolderID)
{
Store store = Store.GetStore ();
- Domain domain = store.GetDomain(store.DefaultDomain);
+ Domain domain = store.GetDomain(store.DefaultDomain);
Collection col = null;
string hostID =null;
+ int i = 0;
+
+ do{
CatalogEntry ce = Catalog.GetEntryByCollectionID (ifolderID);
- if(ce == null)
- {
- log.Info("Entry for ifolderId:{0} is not found in catelog entry",ifolderID);
- col = store.GetCollectionByID(ifolderID);
- if(col ==null)
- {
- log.Info("Entry for ifolderID:{0} is not found in both Catelog as well as in local store",ifolderID);
- throw new iFolderDoesNotExistException(ifolderID);
- }
+ if(ce == null)
+ {
+ log.Info("Entry for ifolderId:{0} is not found in catalog entry - doing a retry",ifolderID);
+
+ col = store.GetCollectionByID(ifolderID);
+ if(col == null)
+ {
+ log.Info("Entry for ifolderID:{0} is not found in both Catelog as well as in local store",ifolderID);
+ throw new iFolderDoesNotExistException(ifolderID);
+ }
+ else
+ {
+ hostID = col.HostID;
+ }
+ }
else
{
- hostID = col.HostID;
+ hostID = ce.HostID;
}
- }
- else
- hostID = ce.HostID;
+
+ if(hostID == null) Thread.Sleep(2000);
+ //exit if we are not able to get the info in 3 attempts
+ if(i++ == 3) break;
+ }while(hostID == null);
+
+ if(hostID == null) return null;
+
HostNode remoteHost = new HostNode (domain.GetMemberByID(hostID));
return remoteHost.PublicUrl;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|