Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-9957

QUrl parses URL incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.5.2, 4.6.1
    • Network
    • None

      QUrl parses a URL incorrectly . . . at least for the ftp scheme (and I think for the others as well)

      For the URL "ftp://user@pwd@host:port/my/path/to/data/FILE", the QUrl class will parse all the components correctly except the path, which is set as:

      /my/path/to/data instead of my/path/to/data

      The leading '/' is the problem. This does not allow a logged in user access to his home directory. It always tries to access starting at the root path. According to the RCF1738, the url-path does not include the '/' separator before the path. To actual specify the "root" path the code '%2F' is used instead of another '/'. The CUrl does not seem to parse this properly as the % code is still part of the path.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
            mcarter Michael Carter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes