-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
4.5.2, 4.6.1
-
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.