{"action":"created","issue":{"url":"https://api.github.com/repos/devbridge/BetterCMS/issues/997","labels_url":"https://api.github.com/repos/devbridge/BetterCMS/issues/997/labels{/name}","comments_url":"https://api.github.com/repos/devbridge/BetterCMS/issues/997/comments","events_url":"https://api.github.com/repos/devbridge/BetterCMS/issues/997/events","html_url":"https://github.com/devbridge/BetterCMS/issues/997","id":29797246,"number":997,"title":"After user redirection, error is found in logs","user":{"login":"Audrunas","id":2492600,"avatar_url":"https://avatars.githubusercontent.com/u/2492600?v=3","gravatar_id":"","url":"https://api.github.com/users/Audrunas","html_url":"https://github.com/Audrunas","followers_url":"https://api.github.com/users/Audrunas/followers","following_url":"https://api.github.com/users/Audrunas/following{/other_user}","gists_url":"https://api.github.com/users/Audrunas/gists{/gist_id}","starred_url":"https://api.github.com/users/Audrunas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Audrunas/subscriptions","organizations_url":"https://api.github.com/users/Audrunas/orgs","repos_url":"https://api.github.com/users/Audrunas/repos","events_url":"https://api.github.com/users/Audrunas/events{/privacy}","received_events_url":"https://api.github.com/users/Audrunas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/devbridge/BetterCMS/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/devbridge/BetterCMS/labels/fixed","name":"fixed","color":"02e10c"}],"state":"closed","locked":false,"assignee":{"login":"daivabrazukaite","id":3446924,"avatar_url":"https://avatars.githubusercontent.com/u/3446924?v=3","gravatar_id":"","url":"https://api.github.com/users/daivabrazukaite","html_url":"https://github.com/daivabrazukaite","followers_url":"https://api.github.com/users/daivabrazukaite/followers","following_url":"https://api.github.com/users/daivabrazukaite/following{/other_user}","gists_url":"https://api.github.com/users/daivabrazukaite/gists{/gist_id}","starred_url":"https://api.github.com/users/daivabrazukaite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daivabrazukaite/subscriptions","organizations_url":"https://api.github.com/users/daivabrazukaite/orgs","repos_url":"https://api.github.com/users/daivabrazukaite/repos","events_url":"https://api.github.com/users/daivabrazukaite/events{/privacy}","received_events_url":"https://api.github.com/users/daivabrazukaite/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/devbridge/BetterCMS/milestones/20","html_url":"https://github.com/devbridge/BetterCMS/milestones/Version%201.6.0","labels_url":"https://api.github.com/repos/devbridge/BetterCMS/milestones/20/labels","id":523440,"number":20,"title":"Version 1.6.0","description":"","creator":{"login":"pauliusmaciulis","id":1701708,"avatar_url":"https://avatars.githubusercontent.com/u/1701708?v=3","gravatar_id":"","url":"https://api.github.com/users/pauliusmaciulis","html_url":"https://github.com/pauliusmaciulis","followers_url":"https://api.github.com/users/pauliusmaciulis/followers","following_url":"https://api.github.com/users/pauliusmaciulis/following{/other_user}","gists_url":"https://api.github.com/users/pauliusmaciulis/gists{/gist_id}","starred_url":"https://api.github.com/users/pauliusmaciulis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauliusmaciulis/subscriptions","organizations_url":"https://api.github.com/users/pauliusmaciulis/orgs","repos_url":"https://api.github.com/users/pauliusmaciulis/repos","events_url":"https://api.github.com/users/pauliusmaciulis/events{/privacy}","received_events_url":"https://api.github.com/users/pauliusmaciulis/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":49,"state":"closed","created_at":"2013-12-30T12:07:06Z","updated_at":"2014-05-02T13:01:21Z","due_on":"2014-04-30T07:00:00Z","closed_at":"2014-05-02T11:41:26Z"},"comments":4,"created_at":"2014-03-20T06:44:48Z","updated_at":"2015-03-13T08:34:13Z","closed_at":"2014-04-11T12:32:29Z","body":"Error is being logged after fix: #967: when user is logged out and tries to get / post data during AJAX call.\r\n\r\nError:\r\n\r\n~~~\r\n2014-03-20 08:44:32.0609 Unhandled exception occurred in Better CMS host application.\r\nServer cannot set status after HTTP headers have been sent. System.Web.HttpException (0x80004005): Server cannot set status after HTTP headers have been sent.\r\n   at System.Web.HttpResponse.set_StatusCode(Int32 value)\r\n   at System.Web.Mvc.HttpStatusCodeResult.ExecuteResult(ControllerContext context)\r\n   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)\r\n   at System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult)\r\n   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)\r\n   at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)\r\n   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)\r\n   at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)\r\n   at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult)\r\n   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)\r\n   at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)\r\n   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()\r\n   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)\r\n~~~"},"comment":{"url":"https://api.github.com/repos/devbridge/BetterCMS/issues/comments/78867588","html_url":"https://github.com/devbridge/BetterCMS/issues/997#issuecomment-78867588","issue_url":"https://api.github.com/repos/devbridge/BetterCMS/issues/997","id":78867588,"user":{"login":"anilsingh581","id":8348769,"avatar_url":"https://avatars.githubusercontent.com/u/8348769?v=3","gravatar_id":"","url":"https://api.github.com/users/anilsingh581","html_url":"https://github.com/anilsingh581","followers_url":"https://api.github.com/users/anilsingh581/followers","following_url":"https://api.github.com/users/anilsingh581/following{/other_user}","gists_url":"https://api.github.com/users/anilsingh581/gists{/gist_id}","starred_url":"https://api.github.com/users/anilsingh581/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anilsingh581/subscriptions","organizations_url":"https://api.github.com/users/anilsingh581/orgs","repos_url":"https://api.github.com/users/anilsingh581/repos","events_url":"https://api.github.com/users/anilsingh581/events{/privacy}","received_events_url":"https://api.github.com/users/anilsingh581/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T08:34:13Z","updated_at":"2015-03-13T08:34:13Z","body":"Try to use below code.\r\n\r\nfilterContext.Result = new RedirectResult(Constants.LoginUrl);\r\n\r\nThank you!! http://www.code-sample.com/"}}