From 7ca537fed1794797bfb846a25bc0e77bc9606d1b Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 25 Nov 2012 02:55:49 +0000 Subject: [PATCH] Bug was in Varnish config - removing debug code --- Site5/Master-v5.master.cs | 17 -------------- Site5/Pages/v5/Init/Default.aspx.cs | 4 ---- Site5/Security/Login.aspx.cs | 35 ----------------------------- 3 files changed, 56 deletions(-) diff --git a/Site5/Master-v5.master.cs b/Site5/Master-v5.master.cs index 0189dbc2..3135b38d 100644 --- a/Site5/Master-v5.master.cs +++ b/Site5/Master-v5.master.cs @@ -18,13 +18,6 @@ namespace Activizr { protected void Page_Load(object sender, EventArgs e) { - // DEbug - - using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true)) - { - temp.WriteLine(DateTime.Now.ToShortTimeString() + "Master page Page_Load"); - } - // Event subscriptions this.LanguageSelector.LanguageChanged += new EventHandler(LanguageSelector_LanguageChanged); @@ -41,11 +34,6 @@ namespace Activizr { if (!Request.Url.ToString().StartsWith("http://dev.activizr.com/") && !Request.Url.ToString().StartsWith("http://live.activizr.com") && !Request.Url.ToString().StartsWith("http://localhost:")) { - using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true)) - { - temp.WriteLine(DateTime.Now.ToShortTimeString() + "Master_Page enforcing SSL, redirecting"); - } - Response.Redirect(Request.Url.ToString().Replace("http:", "https:")); } } @@ -97,11 +85,6 @@ namespace Activizr this.ImageCultureIndicator.Style[HtmlTextWriterStyle.MarginRight] = "3px"; this.ImageCultureIndicator.Style[HtmlTextWriterStyle.Cursor] = "pointer"; - using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true)) - { - temp.WriteLine(DateTime.Now.ToShortTimeString() + "Master Page exiting Page_Load - Viewing person is " + _viewingPerson.Name ); - } - } private Person _viewingPerson; diff --git a/Site5/Pages/v5/Init/Default.aspx.cs b/Site5/Pages/v5/Init/Default.aspx.cs index 192e1cf5..f453489d 100644 --- a/Site5/Pages/v5/Init/Default.aspx.cs +++ b/Site5/Pages/v5/Init/Default.aspx.cs @@ -695,10 +695,6 @@ public partial class Pages_v5_Init_Default : System.Web.UI.Page if (expectedPersonOne != null) { - StreamWriter temp = new StreamWriter("/tmp/actdebug1.txt"); - temp.WriteLine("Authentication was successful in ButtonLogin_Click"); - temp.Close(); - FormsAuthentication.RedirectFromLoginPage("1,1", true); Response.Redirect("/", true); } diff --git a/Site5/Security/Login.aspx.cs b/Site5/Security/Login.aspx.cs index b738d567..980e20f5 100644 --- a/Site5/Security/Login.aspx.cs +++ b/Site5/Security/Login.aspx.cs @@ -24,13 +24,6 @@ namespace Activizr.Pages.Security return; } - using (StreamWriter temp = new StreamWriter("/tmp/actdebug2.txt", true)) - { - temp.WriteLine(DateTime.Now.ToShortTimeString() + "In Page_Load of Login.aspx.cs - username is " + this.TextLogin.Text + ", pwd is " + - this.TextPassword.Text); - } - - // Unlock Telerik this.Application["Telerik.Web.UI.Key"] = "Activizr"; @@ -44,21 +37,9 @@ namespace Activizr.Pages.Security { if (!Request.Url.ToString().StartsWith("http://dev.activizr.com/") && !Request.Url.ToString().StartsWith("http://localhost:") && Request.Url.ToString().StartsWith("http://activizr-") && Request.Url.ToString().StartsWith("http://live.activizr.com")) { - using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true)) - { - temp.WriteLine(DateTime.Now.ToShortTimeString() + "Login Page_Load - redirecting to SSL"); - } - Response.Redirect(Request.Url.ToString().Replace("http:", "https:")); } } - - using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true)) - { - temp.WriteLine(DateTime.Now.ToShortTimeString() + "Exiting page_load"); - } - - } protected void ButtonLogin_Click(object sender, EventArgs e) @@ -66,13 +47,6 @@ namespace Activizr.Pages.Security string loginToken = this.TextLogin.Text; string password = this.TextPassword.Text; - using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true)) - { - temp.WriteLine(DateTime.Now.ToShortTimeString() + "In button_login_click - login is " + this.TextLogin.Text); - } - - - if (!string.IsNullOrEmpty(loginToken.Trim()) && !string.IsNullOrEmpty(password.Trim())) { try @@ -86,18 +60,9 @@ namespace Activizr.Pages.Security // TODO: Determine logged-on organization; possibly ask for clarification FormsAuthentication.RedirectFromLoginPage(authenticatedPerson.PersonId.ToString() + ",1", true); - - using (StreamWriter temp = new StreamWriter("/tmp/actdebug2a.txt", true)) - { - temp.WriteLine(DateTime.Now.ToShortTimeString() + "Button_login_click - RedirectFromLoginPage succeeded"); - } } catch (Exception exception) { - StreamWriter temp = new StreamWriter("/tmp/actdebug2.txt"); - temp.WriteLine(exception.ToString()); - temp.Close(); - System.Diagnostics.Debug.WriteLine(exception.ToString()); this.LabelLoginFailed.Text = exception.ToString(); this.LabelLoginFailed.Visible = true;