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

REG [5.1.1-5.3.1] QFileDialog returns invalid path for SSL webDAV directories (not mounted on drive letters)

    XMLWordPrintable

Details

    • 6f66205bacec923d989fa129796d5bd7e3786e4d (qtbase/5.4, 18.11.2014, 5.4.1)

    Description

      Steps to reproduce:

      • Microsoft Sharepoint Server
      • Mount directory in Explorer using the context menu "Add network location" on "Computer"(Win7) or "This PC" (Win8) (Note: Do not use "Map network drive")
      • add network address like https://server/directory
      • The directory is not mounted on a drive letter, but as a top level directory to the "Computer"-entry in explorer

      Launch QFileDialog::getOpenFileNames and locate file from SSL webDAV directory (\\host@SSL\DavWWWRoot\directory\file.suffix) and check fileinfo. It returns correct info in Qt 5.1.1 but not anymore on later versions.

      Qt 5.1.1
      Path as QString: //host@SSL/DavWWWRoot/directory/VA20B/file.suffix
      file path: //host@SSL/DavWWWRoot/directory/VA20B/file.suffix
      absolute file path: //host@SSL/DavWWWRoot/directory/VA20B/file.suffix
      canonical file path: //host@SSL/DavWWWRoot/directory/VA20B/file.suffix
      QFileInfo exists: yes
      
      Qt 5.3.1
      Path as QString: /DavWWWRoot/directory/VA20B/file.suffix
      file path: /DavWWWRoot/directory/VA20B/file.suffix
      absolute file path: C:/DavWWWRoot/directory/VA20B/file.suffix
      canonical file path:
      QFileInfo exists: no
      

      Regression is possible caused because of the change(s):

      There's change to use QUrl::toLocalFile() instead of string which makes ssl web directory invalid to fileinfo.

      Attachments

        1. qtbug42346_diag.diff
          5 kB
        2. qtbug42346.zip
          2 kB
        3. QTBUG-42346.zip
          0.9 kB
        For Gerrit Dashboard: QTBUG-42346
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes