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

QFileInfo::canonicalPath() does not works right on WIndows symlinks to UNC paths

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 5.12.4
    • 5.9.2
    • Core: I/O
    • None
    • Windows 10 (also Windows 7)

      MS Visual Studio 2015
    • 3f17029aa12eafd3f8ddd5e0b246a6bf22eabfe3

    Description

      1) Create Windows symlink to UNC path, eg:

      mklink /D D:\dat\tst \\10.3.0.2\drivej\testfiles

      (D:\dat -existing folder, tst - symlink name, \\10.3.0.2\drivej\testfiles - UNC path on server).

      2)
      QFileInfo("D:/dat/tst").canonicalPath() will return D:/dat/UNC/10.3.0.2/drivej which is incorrect, it should be //10.3.0.2/drivej

      absolutePath() works OK (symlinks are not resolved, as expected)

      Attachments

        Issue Links

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

          Activity

            People

              vhilshei Volker Hilsheimer
              pupkin2000 Vasily Pupkin
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes