Bug 115815 - Konqueror does not set cookies when their domain is IDN encoded
Summary: Konqueror does not set cookies when their domain is IDN encoded
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-06 21:11 UTC by Daniel Hahler
Modified: 2008-05-22 08:21 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 Daniel Hahler 2005-11-06 21:11:38 UTC
Version:            (using KDE KDE 3.4.92)
Installed from:    Ubuntu Packages

When a cookie gets sent with the domain IDN-encoded, Konqueror ignores the cookie.

I've setup a test page, that sets a cookie with the umlaut domain and the IDN-encoded name:

http://test.läu.de/test_konqueror_cookie.php
http://test.xn--lu-via.de/test_konqueror_cookie.php

The second address automatically gets converted to the umlaut version. The cookie for xn--lu-via.de gets not accepted in this case either.

I'm not sure how this is handled in any RFC, but it will always bug when (for example in PHP), $_SERVER['HTTP_HOST'] gets used to define the value for cookie_domain, because for Apache and probably any other webserver it's always the IDN version.
Comment 1 Thiago Macieira 2005-11-06 23:40:33 UTC
Confirmed. r477777
Comment 2 Daniel Hahler 2005-12-19 22:27:07 UTC
I've just thought that it may be related to "Only accept cookies from originating server" checked in "Configure Konqueror / Cookies", but it is not.
Comment 3 Michael Leupold 2008-05-18 12:34:23 UTC
This actually seems to work on 3.5.9 and trunk r809039.

As the original testcase was down I created one on a subdomain of mine:
http://mötörhäd.confuego.org/115815.html
http://xn--mtrhd-jra6jb.confuego.org/115815.html

Unfortunately I don't own a domain with special characters, so I'm not sure if this is only applicable to domains or subdomains as well. I'd appreciate any comments on this issue.
Comment 4 Daniel Hahler 2008-05-22 02:34:57 UTC
I've activated the virtual host for the tests again and can confirm that it's fixed for Konqueror 4.0.3 and 3.5.9 (Ubuntu Hardy), also for IDN encoding in the domain itself.

Thanks a lot!
Comment 5 Daniel Hahler 2008-05-22 02:35:41 UTC
Well, please close as FIXED instead.
Comment 6 Thiago Macieira 2008-05-22 08:21:36 UTC
reopening to close properly
Comment 7 Thiago Macieira 2008-05-22 08:21:47 UTC
*** Bug has been marked as fixed ***.