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

QWebEngineDownloadItem::setDownloadFileName failed in disk root

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.3.0 Alpha
    • 5.15.2
    • WebEngine
    • None
    • Windows 10 64-bit
    • Windows
    • b236a5a1abccaef2895f6f01577318464d6334b1 (qt/qtwebengine/dev) 72050abc798e7865f9e0e0657336227a89918413 (qt/qtwebengine/6.2)

      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?

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

            pvarga Peter Varga
            swesley_lsbd swesley_lsbd
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes