GetLast(Accessed|Modified)Time and *OfLinks are switched each other on Windows
Categories
(Core :: XPCOM, defect)
Tracking
()
People
(Reporter: emk, Assigned: emk)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
Steps to reproduce:
- Create a file on Windows Console:
type nul > C:\ProgramData\foo
- Create a symlink on Windows Console:
mklink C:\ProgramData\bar C:\ProgramData\foo
- Type following commands into Browser Console:
foo = FileUtils.File("C:\\ProgramData\\foo");
bar = FileUtils.File("C:\\ProgramData\\bar");
[bar.creationTime, bar.lastAccessedTime, bar.lastModifiedTime, bar.creationTimeOfLink, bar.lastAccessedTimeOfLink, bar.lastModifiedTimeOfLink]
Actual result (example):
Array(6) [ 1720162713196, 1720162758937, 1720162758937, 1720162758937, 1720162713196, 1720162713196 ]
Last accessed time and last modified time are swapped (creation time is ok). The link targets (the former three) can't be newer than the links themselves (the latter three).
Expected result (example):
Array(6) [ 1720162713196, 1720162713196, 1720162713196, 1720162758937, 1720162758937, 1720162758937 ]
If aFollowLinks
parameter is true
, GetDateImpl
should get timestamps of link targets by following the links. If aFollowLinks
is false
, GetDateImpl
should get timestamps of link themselves. But the current GetDateImpl
is doing the opposite.
Assignee | ||
Comment 1•3 months ago
|
||
I found another defect of the patch in bug 1786608. Commented on D155926.
Comment 2•3 months ago
|
||
:beth, since you are the author of the regressor, bug 1786608, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Assignee | ||
Comment 3•3 months ago
|
||
Updated•3 months ago
|
Comment 5•3 months ago
•
|
||
Backed out for causing xpcshell failures on test_localfile.
Failure logs:
- xpcshell test_localfile.js https://treeherder.mozilla.org/logviewer?job_id=465322123&repo=autoland
- bc browser_thumbnails_bg_captureIfMissing.js https://treeherder.mozilla.org/logviewer?job_id=465322066&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/c20ff88ba49173d08135b500bb0dd9b4e4993258
Assignee | ||
Comment 6•3 months ago
|
||
Comment 8•3 months ago
|
||
bugherder |
Updated•3 months ago
|
Updated•3 months ago
|
Comment 9•3 months ago
|
||
Is there a user-facing impact from this bug that would make us want to consider uplifting the fix?
Updated•3 months ago
|
Description
•