Bug 184973 - konqueror loses cookie information
Summary: konqueror loses cookie information
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: kcookiejar (show other bugs)
Version: 4.2.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 186345 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-19 21:49 UTC by David Johnson
Modified: 2009-09-05 23:49 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Johnson 2009-02-19 21:49:25 UTC
Version:            (using KDE 4.2.0)
Compiler:          g++ 4.2.1
OS:                Linux
Installed from:    Unlisted Binary Package

Konqueror will occasionally lose cookie information. This seems to happen at least once per day. For example, I had to accept three cookies to log this bug, even though I am configured to accept all cookies from kde.org, and the prior existence of three cookies from bugs.kde.org.

When looking at the cookie information, in the cookie managment page, some cookies will be blank, in that there is no information in them. When cookies are set, they have an expiration date in the future (ei. 12/31/37 04:00 pm), but when konqueror asks for the same cookie, examining it will show it to be empty. So it is losing the cookie information.
Comment 1 David Faure 2009-02-19 21:53:36 UTC
I'm seeing this too on bugs.kde.org, but the question is, is this a konqueror bug or a bugs.kde.org problem... are you seeing this on other websites too?
(Or can you also test another browser with bugs.kde.org?)

I'm not aware that anything changed in the cookie handling, while we upgraded to bugzilla 3.2, so I'm suspecting bugzilla....
Comment 2 David Johnson 2009-02-19 23:17:01 UTC
This isn't 100% reproducible. But I just logged out, and back in, and this is what I observe:

Using cookie management dialog in konqueror config, I see an empty dot.kde.org cookie, and an empty forum.kde.org cookie. The previously set bugs.kde.org cookies have information in them. Looking in the .kde4/share/apps/kcookiejar/cookies file, all cookies are there.

Subsequently visiting these sites, I am still logged on to them. So the cookies appear to be working at this point in time. However the information displayed in the dialog is still empty for dot.kde.org and forum.kde.org. 

I don't recall any problems with other domains.

I have done the same in firefox, and am not seeing this behavior.
Comment 3 Tuomas Nurmi 2009-03-11 22:07:51 UTC
I've got the same problem, KDE 4.2.1 openSuSE packages, Qt 4.5
https://bugs.kde.org/show_bug.cgi?id=186345 similar to that; every(?) cookie loses it's data when closing Konqueror, leaving only blank cookies, it seems.
Comment 4 David Faure 2009-03-11 22:36:58 UTC
*** Bug 186345 has been marked as a duplicate of this bug. ***
Comment 5 Tuomas Nurmi 2009-03-12 00:03:47 UTC
Correction: I was wrong. Actually it seems that when session ends, konqueror deletes all cookies except session cookies...
Comment 6 Konstantin 2009-03-15 09:04:44 UTC
After KDEmod rebuild its packages, bug did not appears
Comment 7 A. Spehr 2009-03-21 19:50:16 UTC
What version of Qt are you using?
See bug #183720
Comment 8 David Johnson 2009-03-21 20:06:13 UTC
I'm using 4.4.3. I'll see if 4.5.0 package is available for my system.
Comment 9 David Faure 2009-03-25 19:03:57 UTC
Tuomas: do you actually see the cookies disappearing from `kcmshell4 cookies`, Management tab? (after exiting konqueror and pressing "Reload List" there?)

Any website where I can trigger this? I can't find any cookie-related bugs with kdelibs-trunk and Qt-4.5, anymore.  (and plenty of such bugs with kdelibs-4.2.x and Qt-4.4.x indeed, due to the Qt fromAce/toAce bug)
Comment 10 Tuomas Nurmi 2009-03-25 22:36:23 UTC
Indeed. I had multiple Konqueror windows open. Cookie management tab showed about a dozen different hosts, many cookies each. Opened last.fm, logged in. Closed last.fm window, I was quite sure last.fm cookies went from 11 to 10. Closed all other windows. Most of the hosts in the list disappeared, only 4 stayed.

But, I'll try updating my KDE packages again. Past has taught me that all the weird bugs I somewhy encounter and no-one else does usually disappear by updating KDE packages :D
Comment 11 David Faure 2009-03-26 02:00:51 UTC
Tuomas: did you check "Treat all cookies as session cookies"? Then this would be the expected behavior...
Comment 12 David Faure 2009-03-26 02:04:59 UTC
My comment #1 was erroneous: the new bugzilla setup indeed doesn't allow the login cookie to be used for http urls, the same behavior happens in firefox, no konq bug there (just a rather inconvenient bugzilla setup).
Comment 13 Tuomas Nurmi 2009-03-26 14:29:54 UTC
The box is unchecked.
From kcookiejarrc:

[Cookie Policy]
AcceptSessionCookies=true
CookieDomainAdvice=
CookieGlobalAdvice=Accept
Cookies=true
IgnoreExpirationDate=false
RejectCrossDomainCookies=true
Comment 14 xhantt 2009-03-31 08:30:11 UTC
The same happens to me compiled from sources in a debian unstable, while I'm logged in I've no problems using sites that store authentication information in cookies, but once I logout or restart this computer I've to reenter the authentication information (like in nytimes.com). 

This started happening in recent builds, it can be when I've updated to Qt 4.5 or to KDE 4.2.1.

gcc: version 4.3.3 (Debian 4.3.3-3)
konqueror: 4.2.68 (KDE 4.2.68 (KDE 4.3 >= 20090327))
qt: 4.5.0-2

In order to reproduce it and to avoid problems I've logged out from X, then removed from a console $KDEHOME/share/apps/{konqueror,kcookiejar} $KDEHOME/share/config/{konquerorrc,kcookiejarrc}, and logged in again in X.

The configuration settings for cookies are:
[x] Enable cookies

[x] Only accept cookies from originating server
[x] Automatically accept session cookies
[ ] Treat all cookies as session cookies

[x] Ask for confirmation
[ ] Accept all cookies
[ ] Reject all cookies


All persistent cookies have expiration date set to "07/02/06 04:28" in the configuration settings, and are stored in $KDEHOME/share/apps/kcookiejar/cookies the Exp.date column with the value (4294967295 = -1).

To reproduce this I've removed all cookies then navigate to a site that uses set persisten cookies (like google.com), all persistent cookies appeared with the same expired date.

Hope this helps.
Comment 15 Tuomas Nurmi 2009-05-19 03:10:17 UTC
Works for me again. It just started working, possibly on update to KDE 4.2.3, not sure though.
Comment 16 Dawit Alemayehu 2009-09-05 23:49:20 UTC
Fixed the original bug report. Only cookie information display was affected as a result of commit r452326. It should work fine with 4.3.2 and up. All other unrelated reports need to be opened as a new ticket if those problems still persist...