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

QTemporary file on network share change from 5.13.2

    XMLWordPrintable

    Details

    • Platform/s:
      Windows
    • Commits:
      ec9e85656339dbc9e6918a1369c981cece7bc97d (qt/qtbase/dev) 9d0be7b1a920cd9d7ae949bc3dc14774a439b3d0 (qt/qtbase/6.0) ad12c3c40b07079d875f48027eef0786acef7de0 (qt/qtbase/6.1)
    • Story Points:
      21

      Description

      std::string CreateUniqueFile(const std::string& nametemplate) { 
          QTemporaryFile tmpfile(QString::fromStdString(nametemplate)); 
          if (tmpfile.open()) { tmpfile.setAutoRemove(false); 
              return tmpfile.fileName().toStdString();
          return "";
      

      This function returns something different in 5.13.2 than in 5.14.1 when creating a QTemporaryFile on a windows network share. I have a share path "//share/dir/. 5.13.2 returned here a path "//share/dir/<file>", while 5.14.1 returned a path "UNC/share/dir/<file>"

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              heimrich Karsten Heimrich
              Reporter:
              cellcote Rik Schreurs
              PM Owner:
              Maurice Kalinowski Maurice Kalinowski
              RnD Owner:
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews