Issue 7859 - login cookie expiration far too soon
Summary: login cookie expiration far too soon
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Infrastructure
Classification: Infrastructure
Component: Website general issues (show other issues)
Version: current
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Unknown
QA Contact: issues@www
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2002-09-24 10:09 UTC by mmeeks
Modified: 2003-12-06 14:52 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mmeeks 2002-09-24 10:09:40 UTC
Every morning I process my bug reports, and have to re-login, via the stored
password in my browser. This typically wastes half a minute, cutting and pasting
bug texts etc. logging in, going to the bug again pasting back etc.

Very tedious, and a common problem by all accounts;

Why is this expiration in-place ? no other bugzilla site I'm aware of bothers
with this, it wastes valuable developer resources, and adds no security over the
'logout' button. Also; why would anyone in their right mind want to file
malicious bulk bug reports ;-) and how trivial would it be to prune them, were
this ever to happen ?

Looks like an over-design decision; can it be reversed ?

Thanks.
Comment 1 diane 2002-09-24 12:47:22 UTC
This issue is very similar to Issue 7069, although it does not request
a permanent cookie, and suggests need for a slightly longer cookie
expiration.  Issue 2148 shows work regarding future plans of the
login, but not the cookies.
Comment 2 brant 2002-11-04 18:40:58 UTC
Login in all Bugzilla variant applies to the session.  However, the
option of a permanent cookie would be useful, but that should probably
be filed in the Bugzilla product at mozilla.org.
Comment 3 mmeeks 2002-11-04 19:32:31 UTC
Sigh; I think you're confused; there is some evil timeout happening,
that is extremely short.

Contrast this with my years of use of Gnome bugzilla; where one has to
re-authenticate (typically) only on upgrading the browser / changing
machine - which is immensely superior.

I think you're missing something; please don't make me go read the
bugzilla source.
Comment 4 lsuarezpotts 2002-11-14 08:19:57 UTC
hi, Michael
I too have noted inconsistent timeout. It's supposed to be for 8
hours. If you use more than one browser while working, however, that
may affect things (or if your browser crashes, is quit, etc). However,
I think there is an issue here.
Reassigning to support for investigation.
thanks
louis
Comment 5 Unknown 2002-11-18 20:04:01 UTC
Action Plan:
1) File internal issue (PCN) to have ops check the timeout values of
the cookie
2) update this IZ when I've received an update from ops.

PCN 13048 filed, step 1 complete

timeframe: I will update this issue by 11/20/02
Comment 6 Unknown 2002-12-03 18:28:54 UTC
Question for reporter:
1. when you start your morning work, are you logging in to OOo first
then updating your IZs, or using an open browser from the previous
day's work?

2. How long does the session appear to last?

Thanks
Comment 7 mmeeks 2002-12-04 10:03:16 UTC
I use the same browser - logged into the same OpenOffice.org that I
was using an hour or so ago; and/or I re-start the browser ( who
knows, I have a lot of browser windows open typically ), and it
demands re-authentication.

This contrasts with the (somewhat-unmaintained, but contrasting
suprisingly usable) gnome bugzilla that stores a semi-permamant
authentication cookie in my browser - making my life extremely easy.

Why _Why_ do we need a session cookie, instead of a more permanant one
? and why do we need to timeout expire anything ?

As for timing it precisely - I only know it irritated me intensely
when I was filing 3-4 bugs a day; which I am now not doing, since each
time I had to authenticate.
Comment 8 Unknown 2003-01-07 17:11:35 UTC
Using Mozilla on Linux and IE on win2K I could not reproduce this
timeout in IZ. The only time I got a timeout was after I left my
browser up overnight and tried to enter a test bug in the morning. The
8 hour timeout was expected though. Once I logged on in the morning I
had no problems. An engineer using the OOo site as well as a staging
site experienced similar results.

Resolving this issue as worksforme.
Comment 9 mmeeks 2003-01-08 10:29:46 UTC
"The 8 hour timeout was expected though" - worksforme == the problem,
why do we have an 8 hour timeout at all ? This length of time seems
ideally suited for not giving any 'security', and also frustrating the
user.

Why have a timeout at all ? - or one that is of the order of months.
Why is it reasonable to want people to continually log-in ? 8 hours is
far too soon.
Comment 10 Unknown 2003-01-08 21:36:57 UTC
8 hours is the default cookie timeout session in the SourceCast
software and configured in the settings used by Sun. Your other
questions would best be answered by the Sun team leads and I'd suggest
following up with them. I'm not trying to belittle your frustrations
with the software, but there's no reproducable error here from our
end. We'd suggest logging on to the system in the morning, then using
IZ afterwards. It may not be what you wanted to hear, but it's the way
around this.
Comment 11 Martin Hollmichel 2003-01-09 13:49:38 UTC
reopened to investigate reasons for timeout
Comment 12 Martin Hollmichel 2003-01-09 13:50:35 UTC
reassigned to mh, followup internal discussion
Comment 13 stx123 2003-01-21 19:20:30 UTC
Kenneth, could you explain to us, what extending the timeout to, 
let's say 240 hours, means?
We are looking for a compromise between convenience and 
performace/security. Which resources are bound to a session?
Thanks, Stefan
Comment 14 lsuarezpotts 2003-01-21 19:22:50 UTC
adding david
Comment 15 stx123 2003-01-21 19:24:01 UTC
reassigning to support
Comment 16 foskey 2003-01-21 21:38:04 UTC
I have this problem with HUGE problems.  Here is a typical bug session
for me.  login, click my issues, enter new bug id, notice login on
left has reappeared,  update, get error, login,  click login twice
(yep,  first time does not work).  click, back until I can update
issue, fails again, login, click back, finally updates.

NOte that I use galeon browser with tight security regarding cookies,
 mozilla which has lighter security settings is not quite as bad.

There was a note on one list regarding the fact there was a bugzilla
upgrade that helped this situation though.  Sounded like a
knowledgeable response.
Comment 17 Unknown 2003-01-24 03:13:02 UTC
First off, the session cookie is a cookie for the sourcecast
application, IssueZilla being just one component within SC.  It does 
not matter what tool you use within the SC web interface.

Second, the cookie lasts for 8 hours of _inactivity_.  It starts
accumulating time towards the timeout when the last action took place
in the session.  If this seems not to be the case, pleas

The reason that a timeout of 8 hours is necessary is two-fold.  One
reason has to do with security.  It is a risk to leave an open session
that has greater permissions than default/guest for many days given
the user has access to all the sourcecast tools with these
permissions.  The second reason has to do with resources.  Every
session takes up resources (memory, etc) in the jvm, even when idle. 
Given there are over 80,000 users, it is highly impractical to allow
idle sessions to last 240 hours in duration.

Additionally, it is plainly obvious for a user to validate whether or
not they are logged in by glancing at the left navbar and taking
notice of whether the "login" option is available.  If it is listed,
you are not logged in.  Given browsers ability to cache login
information (user/passwd), it is only two clicks (one on the "login"
link, another on the "login button") to re-instanciate a session.  Is
that really so onerous?  If so, entering a bug must be a herculean
task. ;)
Comment 18 lsuarezpotts 2003-01-24 05:14:58 UTC
hi
thanks, brian, for your commentary.  I had a long discussion on this
issue with one of the CN engineers, and we tested various browsers
simultaneously, to see how the cookies, so to speak, crumbled. 

I think that one element that could cause issues (perceived) is that
many pages are staticized, including the homepage.  This means that
one cannot, in fact, always rely on the left navbar to indicate
whether one is logged in or not. 

but your points are correct and I agree with them. We initially
settled on 8 hours b/c it was a compromise--the initial desire was for
a week or so.  Given the number of people using OOo daily, I think we
have to be wise in our usage.  The CN engineer did speculate further
that the JVM might boot people who had been inactive longest if there
was heavy demand.  Would you know if this is the case? 

thanks,
Louis 
Comment 19 foskey 2003-01-24 06:28:15 UTC
This is not a cookie expiry problem,  I can be just logged in and it
will die on me.  I fully expect for this update to fail.  I logged in
at 17:22 is is now 17:23.  My average working OOo day is only 3-4
hours yet I get this issue repeatedly.
Comment 20 foskey 2003-01-24 06:30:54 UTC
I have now clicked on a mailnote link (issues@OOo) and I have a
totally separate tab from the original one.  This will typically fail
to work.

Since I am testing this feature I bet it does now (local time 17:26)
Comment 21 Unknown 2003-01-24 06:35:03 UTC
Ken - if your issue is not a cookie expiry problem, please open
another issue as that is what we are discussing here.
Comment 22 Unknown 2003-01-25 05:42:47 UTC
Update:  Awaiting a response from Stefan on my reply to his query
regarding timeout extension and its concomitant effects.  I have
replied to Louis' question in the internal issue as it is a more
conducive arena to deal with that type of question.  I will post the
results of that conversation when there is a conclusive answer.

Action Plan: Wait for a response.

Timeframe: Update timeframe provided upon response.
Comment 23 mmeeks 2003-01-25 15:53:14 UTC
Hi Brian,

You say:

>  The second reason has to do with resources.  Every
> session takes up resources (memory, etc) in the jvm, even when idle.

   What resources are you tracking ? and why ? and why are they stored
 in memory, instead of more persistantly ? and why can a trivial
ticket / auth cookie not be stored on the client - where the resource
is no problem.
 
> Given there are over 80,000 users, it is highly impractical to allow
> idle sessions to last 240 hours in duration.

    How is that Gnome has myriad bugzilla accounts, and yet never has
this problem ? it seems to me there is no necessity for this to be
stored server-side by any means. I can't quite imagine what state
you're trying to store; what is it ?

> If it is listed, you are not logged in. Given browsers ability to 
> cache login information (user/passwd), it is only two clicks (one
> on the "login" link, another on the "login button") to
> re-instanciate a session.  Is that really so onerous?

   Yes - this is a _royal_ pain in the backside. Also, there is the
acute frustration of total impotence, inasmuch that it seems
unfixable. Furthermore, although you can't reproduce this - there is
somewhere a bug with this authentication, such that people have to
authenticate more frequently than your 8 hour period.

   It may seem to be a small thing to you to spend 10 seconds per bug
report you filed doing totally pointless, wasteful administration, but
you're wasting ~10 * <nbugs-filed> seconds in total, which with this
'80,000' users the numbers start to look really bad.

>  If so, entering a bug must be a herculean task. ;)

   Bugzilla is designed to be fast and easy to use; IssueZilla OTOH
seems not to be.

   As for the 'security' argument, that's just an incredibly feeble
excuse for an architectural problem IMHO.

   I hope that's not too hard - but this really annoys me, repeatedly
and persistantly. And seemingly - not just me.
Comment 24 Unknown 2003-01-28 05:50:55 UTC
We have answered Stefan's question regarding the impact of increasing
the timeout duration and have not heard a response from him.  If a
longer timeout than 8 hours is desired by the Sun team, they will need
to make that request explicitly themselves.  And Mike, if you would
like a longer timeout duration, you need to make your case to the Sun
contacts, not collab directly.

The problem of session timeout prior to 8 hours of inactivity is not
reproducable, so there is little we can do correct it.

timeframe: Respond after Stefan or Martin has weighed in.
Comment 25 stx123 2003-02-26 16:04:09 UTC
we will stick with the 8 hours timeout and i close this bug.
But there seem to be other problems with the cookie I will report in 
a new one.
Comment 26 michael.bemmer 2003-03-13 09:38:37 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for
details. First step in IssueZilla is unfortunately to set them to verified.
Comment 27 michael.bemmer 2003-03-13 10:14:20 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details.