Bug 187792 - cookie Ask setting ignored
Summary: cookie Ask setting ignored
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: kcookiejar (show other bugs)
Version: 4.2.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-21 14:16 UTC by Salvo "LtWorf" Tomaselli
Modified: 2010-08-18 10:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Salvo "LtWorf" Tomaselli 2009-03-21 14:16:54 UTC
Version:           4.2.1 (KDE 4.2.1) (using 4.2.1 (KDE 4.2.1), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.29-rc8-sidux-686

Same as bug #163046.

Everything was working fine but one day kde decided to delete all the settings (lucky that i use imap for mails).
So when i tried to use the same policy for cookies (ask) which was working before, i had a bad surprise. It doesn't work anymore, accepting everything.
Comment 1 Salvo "LtWorf" Tomaselli 2009-03-21 14:28:58 UTC
I've copied the kcookiejarrc file from another computer where everything was working. Here's a diff...

1,3c1,2
< [Cookie Dialog]
< PreferredPolicy=1
< ShowCookieDetails=true
---
> [$Version]
> update_info=kcookiescfg.upd:kde2.2/b1,kcookiescfg.upd:kde3.1/cvs
7c6
< CookieDomainAdvice=.dmi.unict.it:Reject,.hiveworkshop.com:Accept,zedo.com:Reject,hiveworkshop.com:Accept,.google.it:Reject,.heyos.com:Reject,.tradedoubler.com:Reject,.ebay.com:Reject,.ebay.it:Reject,.jangonetwork.com:Reject,.g.doubleclick.net:Reject,.google.com:Reject,.soft32.com:Reject,.qt-apps.org:Accept,.builderau.com.au:Reject,freshmeat.net:Accept,.altervista.org:Accept,.intilinux.com:Reject,pollycoke.net:Reject,.rai.it:Reject
---
> CookieDomainAdvice=unict.it:Accept,kde.org:Accept
12d10
<
Comment 2 A. Spehr 2009-03-21 19:03:47 UTC
Confirmed on trunk.
Comment 3 David Faure 2009-03-25 11:54:48 UTC
More details please. Is this about the default policy? Or about domain-specific policy? How do I trigger the bug -exactly-?
My tests appear to work, in trunk.
Comment 4 Salvo "LtWorf" Tomaselli 2009-03-25 21:36:22 UTC
It is about it not asking if accept or reject cookies when it should ask. It just accepts.
Comment 5 David Faure 2009-03-26 13:42:02 UTC
Yes, but why should it ask? Because of the default policy set in `kcmshell4 cookies`, or because there's a specific policy for THAT domain that says "Ask"?

Just making sure I'm testing the right thing...
Comment 6 Salvo "LtWorf" Tomaselli 2009-03-28 11:35:22 UTC
It should ask because in the configuration panel i say that it should ask. And it doesn't and accepts everything.
Comment 7 David Faure 2009-03-30 16:35:48 UTC
I assume you're talking about the radiobutton (global policy).

It works here. Please check if kded4 is running?
Comment 8 Salvo "LtWorf" Tomaselli 2009-03-30 22:30:13 UTC
Running...
Comment 9 Dawit Alemayehu 2009-12-18 23:14:32 UTC
SVN commit 1063612 by adawit:

- Fixed parsing of cookie expiration dates. This resolves the problem of 
  non-session cookies being treated as session ones. 
- Fixed problems with the recent Y2K38 fix.

CCBUG: 145244 
CCBUG: 176731
CCBUG: 187792
CCBUG: 191318



 M  +36 -40    kcookiejar.cpp  
 M  +5 -1      kcookiejar.h  
 M  +9 -4      tests/cookie.test  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1063612
Comment 10 Dawit Alemayehu 2010-08-18 10:10:29 UTC
See the commit message in comment #9.