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

QWebEngineDownloadItem::setDownloadFileName failed in disk root

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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)

    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

          For Gerrit Dashboard: QTBUG-96855
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes