summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
authorRyan Chu <ryan.chu@qt.io>2017-12-22 14:53:13 +0100
committerRyan Chu <ryan.chu@qt.io>2018-02-19 08:31:26 +0000
commit4629a6b23883086eace25f87b33cd8f64952a392 (patch)
treea47060cdb2f58fcf3359f4ae8fa818b49ca1d674 /src/sql
parenta1211c69d5aa9e4d60faed63edc737d41002d4fb (diff)
ftp backend: Dynamically resolving resource path with URL prefix
The code used to retrieve FTP resource with the path of QUrl as an absolute URL starting from the root directory. It is not always working with a relative URL because the root directory and working directory may be different. Depending on the implementation of FTP server, the reference directory of a relative URL could be either the root directory or the working directory. To resolve it, a new state “ResolvingPath” is added to resolve resource paths before retrieving. For both GET and PUT operations supported by QNetworkAccessFtpBackendFactory, the resource will be retrieved via its URL path. Depending on the prefix of the URL path, the path of working directory is prepended to the resource path as an absolute path starting with the working directory. If a URL path starts with “//” or “/%2F” user-input prefix, the resource will be retrieved by an absolute path starting with the root directory. If a path starts with /~/ or the working directory prefix, its resource will be retrieved from the working directory. Task-number: QTBUG-25034 Change-Id: I26198af1c0077f51565afd3f96050235c661f063 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/sql')
0 files changed, 0 insertions, 0 deletions