tracks icon indicating copy to clipboard operation
tracks copied to clipboard

Getting spuriously signed out when adding an action

Open alistair-marshall opened this issue 10 years ago • 9 comments

After recently upgrading to 2.3.0, I am now occasionally getting signed out when I add an action.

This is frustrating because I also lose all the information I have just typed in to the form and have to add it all again. When I do sign back in, I am told that the 'session will not expire'.

This did not occur when using 2.2.(whatever the last one was) Using Internet Explorer 9 (work computer)

alistair-marshall avatar Sep 22 '15 09:09 alistair-marshall

Suspect duplicated with #1963

alistair-marshall avatar Jan 26 '16 10:01 alistair-marshall

@thatscoteng, #1963 only affects the master branch. Are you actually seeing this with 2.3.0?

dnrce avatar Jan 26 '16 17:01 dnrce

I am seeing something that sounds very similar. Frequently get asked to log back in (every day). But if I refresh the page, it does recognise that I am already logged in.

Usually happens when making an Ajax update (and consequently loses the edit).

Alistair Marshall http://www.thatscottishengineer.co.uk

Sent from my phone. Apologies for poor spelling/grammar. On 26 Jan 2016 17:18, "Dan Rice" [email protected] wrote:

@thatscoteng https://github.com/thatscoteng, #1963 https://github.com/TracksApp/tracks/issues/1963 only affects the master branch. Are you actually seeing this with 2.3.0?

— Reply to this email directly or view it on GitHub https://github.com/TracksApp/tracks/issues/1928#issuecomment-175125823.

alistair-marshall avatar Jan 26 '16 17:01 alistair-marshall

Yeah, I think this should be reopened. I also observed it sometimes, and when posting a new todo I get the question if I really want to create the context (although I'm sure it already exists). I guess the server redirects the POST request (or whatever is done when creating a new todo) to the login/refresh page, but this is treated as an error.

C-Otto avatar Jan 26 '16 17:01 C-Otto

Had another go this morning.

Navigated straight to my 'work' context. No need to log in. Create a new task in the right hand panel. When adding tags, the system was successfully looking up the correct tags in the suggestions.

When submitting the new todo, I get the follwing in the log:

I, [2016-01-27T07:46:50.382829 #2712]  INFO -- : Started POST "/tracks/todos" for 83.231.221.26 at 2016-01-27 07:46:50 +0000
I, [2016-01-27T07:46:50.389168 #2712]  INFO -- : Processing by TodosController#create as JS
I, [2016-01-27T07:46:50.389931 #2712]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"afWyhZAkiyy8cRI4xu25i5Lj9pi2enAL1Nhyw2cGWSo=", "default_project_name"=>"", "default_context_name"=>"Work", "new_todo_starred"=>"false", "todo"=>{"description"=>"Test task", "notes"=>"* Lots of notes that I do **not** want to lose\n* But inevitably will", "due"=>"30/01/2016", "show_from"=>""}, "project_name"=>"", "context_name"=>"Work", "initial_tag_list"=>"", "tag_list"=>"", "predecessor_input"=>"", "predecessor_list"=>"", "_source_view"=>"context", "_group_view_by"=>"context", "_tag_name"=>""}
W, [2016-01-27T07:46:50.393724 #2712]  WARN -- : Can't verify CSRF token authenticity
I, [2016-01-27T07:46:50.436101 #2712]  INFO -- :   Rendered login/_redirect_to_login.js.erb (3.5ms)
I, [2016-01-27T07:46:50.437590 #2712]  INFO -- : Filter chain halted as :login_required rendered or redirected
I, [2016-01-27T07:46:50.438737 #2712]  INFO -- : Completed 200 OK in 48ms (Views: 41.2ms | ActiveRecord: 0.0ms)
I, [2016-01-27T07:46:50.535207 #2712]  INFO -- : Started GET "/tracks/login" for 83.231.221.26 at 2016-01-27 07:46:50 +0000
I, [2016-01-27T07:46:50.540339 #2712]  INFO -- : Processing by LoginController#login as HTML
I, [2016-01-27T07:46:50.562945 #2712]  INFO -- :   Rendered shared/_flash.html.erb (0.4ms)
I, [2016-01-27T07:46:50.569090 #2712]  INFO -- :   Rendered login/login.html.erb within layouts/login (8.1ms)
I, [2016-01-27T07:46:50.575772 #2712]  INFO -- :   Rendered shared/_footer.html.erb (3.2ms)
I, [2016-01-27T07:46:50.577087 #2712]  INFO -- : Completed 200 OK in 36ms (Views: 17.9ms | ActiveRecord: 1.8ms)

At this time if I navigate straight back to the context (without logging in) I get to see the context. This time when I fill in the form and submit it it works fine:

I, [2016-01-27T07:53:54.328280 #2712]  INFO -- : Started GET "/tracks/contexts.autocomplete?[object%20Object]&term=Work" for 83.231.221.26 at 2016-01-27 07:53:54 +0000
I, [2016-01-27T07:53:54.332987 #2712]  INFO -- : Processing by ContextsController#index as AUTOCOMPLETE
I, [2016-01-27T07:53:54.333388 #2712]  INFO -- :   Parameters: {"object Object"=>nil, "term"=>"Work"}
I, [2016-01-27T07:53:54.370055 #2712]  INFO -- :   Rendered text template (0.1ms)
I, [2016-01-27T07:53:54.371598 #2712]  INFO -- : Completed 200 OK in 38ms (Views: 2.7ms | ActiveRecord: 1.9ms)
I, [2016-01-27T07:53:54.509789 #2712]  INFO -- : Started POST "/tracks/todos" for 83.231.221.26 at 2016-01-27 07:53:54 +0000
I, [2016-01-27T07:53:54.515900 #2712]  INFO -- : Processing by TodosController#create as JS
I, [2016-01-27T07:53:54.516514 #2712]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"vS7TOtATDUCQsq9cCvR/LdEoRsp3JkGTf/dtkDhZqEs=", "default_project_name"=>"", "default_context_name"=>"Work", "new_todo_starred"=>"false", "todo"=>{"description"=>"A second test", "notes"=>"with more text in here", "due"=>"", "show_from"=>""}, "project_name"=>"", "context_name"=>"Work", "initial_tag_list"=>"", "tag_list"=>"", "predecessor_input"=>"", "predecessor_list"=>"", "_source_view"=>"context", "_group_view_by"=>"context", "_tag_name"=>""}
I, [2016-01-27T07:53:54.935836 #2712]  INFO -- : Read fragment views/todos/1378-20160127075354589821670/20160127/context/false/c9a33e74913927d9ce9c62c2eadea771/c9a33e74913927d9ce9c62c2eadea771 (19.1ms)
I, [2016-01-27T07:53:54.988682 #2712]  INFO -- : Write fragment views/todos/1378-20160127075354589821670/20160127/context/false/c9a33e74913927d9ce9c62c2eadea771/c9a33e74913927d9ce9c62c2eadea771 (5.0ms)
I, [2016-01-27T07:53:54.989656 #2712]  INFO -- :   Rendered todos/_todo.html.erb (75.7ms)
I, [2016-01-27T07:53:54.992640 #2712]  INFO -- :   Rendered todos/create.js.erb (87.6ms)
I, [2016-01-27T07:53:54.994304 #2712]  INFO -- : Completed 200 OK in 477ms (Views: 91.7ms | ActiveRecord: 243.8ms)

alistair-marshall avatar Jan 27 '16 07:01 alistair-marshall

Could you post when you logged in previously, and when you sent the last request before 07:46:50?

C-Otto avatar Jan 27 '16 20:01 C-Otto

@thatscoteng any news?

C-Otto avatar May 18 '16 18:05 C-Otto

Apologies.

Not sure when actually logged in (as in typed username and password) however, accessing the site and showing the latest set of actions (which displays a welcome back comment) happened seconds before.

On another note, this only seems to happen with internet explorer and when using tracks as a psudo app (can't remember the correct terminology - get a desktop icon and opens in its own window). Since I have stopped doing this and just keep a pinned tap in firefox it hasn't happened.

alistair-marshall avatar May 18 '16 18:05 alistair-marshall

This happens to me when I use the mobile site (v2.3.0). When submitting an action or marking an action as complete, it redirects me to some preset page, which sometimes is the login page (and hence does not add the action or mark completed), but sometimes it's another random previously-viewed page. Once this starts happening, there seems to be no way out other than clearing all cookies and trying to login again.

tobykurien avatar Apr 23 '19 10:04 tobykurien