Bug 88499 - Malformed URL error typing www.131500.info into location bar
Summary: Malformed URL error typing www.131500.info into location bar
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-31 06:38 UTC by Luke
Modified: 2004-09-19 06:53 UTC (History)
1 user (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 Luke 2004-08-31 06:38:15 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Gentoo Packages
Compiler:          gcc-3.4.1 
OS:                Linux

When I type www.131500.info into konqueror's location bar and press enter, I get an error dialog box saying:
    Malformed URL
    www.131500.info

It works fine if I type http://www.131500.info instead
Comment 1 Braden MacDonald 2004-08-31 18:44:34 UTC
I can confirm this. Happens on any URL without non-numeric characters between the www. and the TLD suffix.
Comment 2 Chris Howells 2004-08-31 23:49:22 UTC
This is a bug in KURL; Konqueror uses KURL's isValid() function to check for the validity of the URL.

Luke, can you please list any other URL's that you also get this problem with?

Thanks
Comment 3 Luke 2004-09-01 03:40:07 UTC
I went looking for the official spec for hostname syntax.

Here's a snippet of a grammar from http://www.faqs.org/rfcs/rfc952.html

      <hname> ::= <name>*["."<name>]
      <name>  ::= <let>[*[<let-or-digit-or-hyphen>]<let-or-digit>]

This was relaxed slightly by http://www.dns.net/dnsrd/rfc/rfc1123.txt sec 2.1 which states:

      The syntax of a legal Internet host name was specified in RFC-952
      [DNS:4].  One aspect of host name syntax is hereby changed: the
      restriction on the first character is relaxed to allow either a
      letter or a digit.  Host software MUST support this more liberal
      syntax.

Now here are some examples of false "malformed URL errors" in konqueror-3.3.0:
      www.131500.info
      131500.info
      www.1-1.com

Here are some malformed URLs which konqueror-3.3.0 thinks are okay:
      www.-blah.com
      www.blah-.com

Here are some well formed URLs which konqueror-3.3.0 treats correctly:
      www.hot100.com
      www.100hot.com
      www.1-b.com
Comment 4 Dawit Alemayehu 2004-09-19 06:53:09 UTC
Fixed for 3.3.1 release. Thanks for the report...