Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.2
-
None
-
Windows 10 64-bit
-
-
b236a5a1abccaef2895f6f01577318464d6334b1 (qt/qtwebengine/dev) 72050abc798e7865f9e0e0657336227a89918413 (qt/qtwebengine/6.2)
Description
While using a sample application of QT (WebEngine Widgets Simple Browser Example) and trying to save data at the disk root (C:/) the qWarning "Creating download path failed, download cancelled: C:/" was raised. Investigating the qt source code it was identified that the code snippet "suggestedFile.absoluteDir().mkpath(suggestedFile.absolutePath())", used in the condition responsible for raising the message, always returns false if the string path is the root of some disk. It was also found an unresolved issue related with mkpath about this behavior. As other applications using the function call setDownloadFileName from QWebEngineDownloadItem object are affected by this.
Could you help us to fix this problem?
Attachments
Issue Links
- resulted from
-
QTBUG-85997 QDir::mkpath() does not return true for existing drive
- Closed
For Gerrit Dashboard: QTBUG-96855 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
374338,3 | Workaround for downloading file into the root directory on Windows | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
376406,2 | Workaround for downloading file into the root directory on Windows | 6.2 | qt/qtwebengine | Status: MERGED | +2 | 0 |