Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6
-
Windows
-
f7b44f879cdded7b2c6b604df873f7194e56a63a , 101449a4cfa9c0d216332c6dc8ba826e8109e09d (qtbase/5.8, 12.12.2016, 5.8.1)
Description
QDir::cdUp() does not return false when going up from root of UNC network path. On local hard drive it does return false. In Qt 4.8 it also returns false when cdUp():ing on network path root.
Steps to reproduce:
- Run attached sample with valid network path as argument
- EXPECTED: The while-loop exits when cdUp():ing first time from the network path root
- ACTUAL: cdUp() never returns false, causing infinite loop
Attachments
Issue Links
- resulted from
-
QTBUG-23893 QDir("/").cd("..") is different from QDir("/tmp").cd("../..")
-
- Closed
-
- resulted in
-
QTBUG-72120 QDir::cleanPath behaviour differs in Qt5 vs Qt4 with regard to UNC paths.
-
- Closed
-
For Gerrit Dashboard: QTBUG-53712 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
161592,2 | Rewrite test tst_QDir::cdBelowRoot() to be data-driven. | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |
161593,1 | WIP: Fix cdUp() on Windows network shares. | 5.6 | qt/qtbase | Status: ABANDONED | -2 | 0 |
161766,12 | QDir::cleanPath(): Do not cd above root paths (UNC, WinRT) | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |
161767,10 | QDir::cd(): Handle UNC server paths correctly | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |