Bug 170970 - DNS-lookup not done with name that starts like an IP address
Summary: DNS-lookup not done with name that starts like an IP address
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: qt (show other bugs)
Version: 4.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-13 09:47 UTC by Johan Thelmen
Modified: 2008-10-02 19:12 UTC (History)
4 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 Johan Thelmen 2008-09-13 09:47:14 UTC
Version:            (using KDE 4.1.1)
OS:                Linux
Installed from:    Ubuntu Packages

My current address is 179.108.227.87.static.f.siw.siwnet.net that I'm unable to use in KDE4.1.1. This work fine in KDE3 and all other applications. Tried it in kmail and konqueror and it will not even send out an DNSrequest. Easy to test with my webserver running at this address.
Comment 1 Michael Leupold 2008-09-13 10:17:01 UTC
I can confirm this on KDE 4.1.1.

* If I type the bare address, konqueror doesn't seem to be doing anything.
* If I type http://179.108.227.87.static.f.siw.siwnet.net konqueror changes it to http://http//179.108.227.87.static.f.siw.siwnet.net and gives me an "Unknown Host" error.
Comment 2 George Kiagiadakis 2008-09-13 11:24:54 UTC
Interesing... right clicking that first link ( http://179.108.227.87.static.f.siw.siwnet.net ) in konqueror does not offer options to open in another tab or copy link. It just doesn't see it is a link, although it marks it as such because in html it is wrapped in <a> tags. Must be a kdelibs bug.
Comment 3 Dominik Tritscher 2008-09-13 12:02:07 UTC
I did some tests with QUrl, basically I jsut played a bit with the following line:
qDebug(QUrl("http://179.108.227.87.static.f.siw.siwnet.net").toString().toAscii());

The results:
- with the above url, QUrl returns nothing (empty debug output)
- stripping the url to the numbers only worked fine (http://179.108.227.87)

So i assume the problem is with QT and should be reported upstream.
Comment 4 Michael Leupold 2008-09-13 12:29:52 UTC
After some analysis this seems to be a Qt bug, not a KDE one. QUrl can't handle
URLs whose hostname starts with an ip, eg. http://1.2.3.4.testsite.com.
Comment 5 Johan Thelmen 2008-09-13 13:26:37 UTC
Reported on http://trolltech.com/bugreport-form

-- 
Johan Thelmén
Comment 6 Thiago Macieira 2008-10-02 19:12:40 UTC
Fixed for Qt 4.5.