Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Loosing of posts on forum due to cookie expiration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Forums Feedback
View previous topic :: View next topic  
Author Message
tot-to
n00b
n00b


Joined: 09 Apr 2008
Posts: 21

PostPosted: Wed Apr 29, 2015 11:04 am    Post subject: Loosing of posts on forum due to cookie expiration Reply with quote

Hi,

I've wrote a long post on Gentoo forum and proceed with the "Submit" button, but instead of posting it I've got a log-in form. I've entered my credentials again and was redirected back to the "Post a new topic" page, but it was clear.

It is very disappointing, when you need to do a double work with no reason.

It is possible to reproduce this behaviour by logging out in another browser tab/window.

Steps to reproduce:
1) Log in to Gentoo forum
2) Open "Post a new topic" page, write some text.
3) Open Gentoo forum in another tab, proceed with "Log out [username]" link
4) Return to the first tab and proceed with "Submit" button.
5) Enter your username and password

Workaround:
Using your favorite text editor and copy-pasting it to the form. At least you will not loose your text.
Back to top
View user's profile Send private message
miket
Guru
Guru


Joined: 28 Apr 2007
Posts: 483
Location: Gainesville, FL, USA

PostPosted: Thu Apr 30, 2015 6:49 pm    Post subject: Re: Loosing of posts on forum due to cookie expiration Reply with quote

I feel your pain; that's happened to me more than once. Fixing this would mean a change in the forum software. Depending on how it is implemented, the fix could be easy or hard.

The thing is that the session expired while you were composing the message. If the forum keeps a session for all users, logged in or not, the easy fix would be to save the the message text and ID in the new session so that it would pop up again once you reauthenticated. If they don't keep sessions this way, a fix would be harder but still doable. You ought to take this up at bugs.gentoo.org. Be sure to look if this had been reported before; if not, file a bug report for the problem. That's where you'd put in your reproduction steps.

tot-to wrote:
Workaround:
Using your favorite text editor and copy-pasting it to the form. At least you will not loose your text.

One problem with using a text editor is that it's harder to preview your message as your'e writing it. This brings up another workaround, one which I do in practice: click Preview every once in a while as you're composing the message. Doing so keeps the session alive.

The other thing to do, one which I also do in conjunction with the Preview technique is to save the text in the clipboard before clicking Preview or Submit. You can highlight the whole message with the mouse and then paste it with the middle button into a new message if for some reason the session went away.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3105

PostPosted: Thu Apr 30, 2015 7:10 pm    Post subject: Reply with quote

I have noticed that behaviour depends on internet connection.
When I'm using some modem, session tends to get randomly lost. With other connections (modem from different provider, LAN etc) session has survive even a pretty long inactivity. Long enough to write a wall of text while reading more threads in different tabs without refreshing.

As this might make a difference, I'm using autologin.
Back to top
View user's profile Send private message
tot-to
n00b
n00b


Joined: 09 Apr 2008
Posts: 21

PostPosted: Thu Apr 30, 2015 9:11 pm    Post subject: Reply with quote

I wasn't sure if it's ok to write on bugs.gentoo.org about it. It's not about Gentoo itself.
But perhaps, I should try.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54098
Location: 56N 3W

PostPosted: Thu Apr 30, 2015 9:30 pm    Post subject: Reply with quote

tot-to,

Its always OK to post a bug. The devs will assess it.
If you don't post, it may go unnoticed. Do check that no bug already exists. If there is already a bug, add to it only if you have something new to contribute.

"Me too" comments don't help fix the problem.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tot-to
n00b
n00b


Joined: 09 Apr 2008
Posts: 21

PostPosted: Thu Apr 30, 2015 11:48 pm    Post subject: Reply with quote

Thank you for the explanation of bug posting, but I think I'm quite used to it.
https://bugs.gentoo.org/buglist.cgi?email2=tot-to&emailreporter2=1&emailtype2=substring&list_id=2760280&order=changeddate%20DESC,priority,bug_severity

I've always been posting bugs on what is related to my Gentoo installation only.
Now I see, that there is even a distinct component for the forum there.
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Fri May 01, 2015 4:22 am    Post subject: Reply with quote

I will refrain from commenting on the bug report itself for the time being, as I am not actively investigating it at the moment. However, I will note a few factors, under the current configuration, which play into the behavior noted here thusfar:
  • Sessions last for 90 minutes following any activity on the forums, whether running a search, viewing a forum or topic, reading private messages or previewing a post prior to submitting it, or actually posting something.
  • Sessions are restricted to a given swath of IP addresses relative to the most recently used address, so disconnecting from one service then reconnecting with another will almost certainly call for the user to authenticate again and merely reconnecting to the same service still at least runs that risk. This naturally applies to any service where the client IP is not fixed for the duration of the login session on the forums, though in most cases that variation should be within the allowed limits.
  • As far as session expiry goes, autologin should not play into it, though it can make certain effects less noticeable in certain circumstances.

    For example: if your session timed out, and something that you do in another tab or window logs you back in, then you preview the post you were working on before attempting to submit it. So far as composing that post would be concerned, it would be very much akin to your not having been logged out at all.

Is the behavior that you are reporting counter to any of those statements?

Moved from Other Things Gentoo to Gentoo Forums Feedback.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Fri May 01, 2015 11:05 am    Post subject: Reply with quote

While if you do a simple history back, you will comes back to the posting step, and fail, it is possible to do an history back by browsing the history list and pickup the one prior the posting step, and get back to the step where you were editing the post ; and finding back the missing text (but i suppose it might depend on the browser if the text is still here or not)
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Fri May 01, 2015 1:12 pm    Post subject: Reply with quote

Yeah, back works, but what desultory said is much simpler, ime. (It's happened to me a few times, after I've gone back to work.)

You get the error message, but also told you just need to press Submit again.

Technically, since there is a new session at the server end due to your last press of Submit (with a timed-out session.)

And as stated, you have a preview and can still edit the post again.
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Fri May 15, 2015 3:15 am    Post subject: Reply with quote

Having had two weeks to meditate on it, tot-to, could you please confirm that the behavior that you are encountering is in keeping with the behavior I described previously?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Forums Feedback All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum