Bug 468653 - [23.04.0] When sorting files by "Created" date, files that are still updating are sorted incorrectly.
Summary: [23.04.0] When sorting files by "Created" date, files that are still updating...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: details mode (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-18 14:15 UTC by Oded Arbel
Modified: 2023-04-18 14:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
A screencast showing the problem (421.75 KB, video/mp4)
2023-04-18 14:18 UTC, Oded Arbel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oded Arbel 2023-04-18 14:15:07 UTC
SUMMARY
When using the details view and sorting by the "Created" field (this is how I like my "Downloads" directory), when a file is being updated continuously (e.g. it is being downloaded), the "Created" field is showing as empty (while its "Modified" field is correctly continuously gets updated as "Just now"), and that file is then sorted last - i.e. as if it was created a very long time ago - regardless of when it was actually created in regards to other files in the same folder.

When refreshing the view, either automatically (when Dolphin detects that another file was created) or manually, the file entry briefly shows the correct "Created" date and gets sorted correctly and then immediately reverts to the incorrect behavior.

I will attach a screencast showing the issue.

STEPS TO REPRODUCE
1. Open a Dolphin window to a folder where you can download files to, and has some files in it.
2. Set details view, show the "Created" field and sort by it, descending.
3. Start downloading a new large file.

OBSERVED RESULT
When the new file is created it is briefly shown at the top of the file list with a "Created" date of "Just now" and then the date is cleared and it is moved to the bottom of the file list.

EXPECTED RESULT
The "Created" field should start with "Just now" and then as time goes by it should be updated accordingly, and the file will be sorted to the top of the list and stay there until another file is created.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.8
Comment 1 Oded Arbel 2023-04-18 14:18:24 UTC
Created attachment 158188 [details]
A screencast showing the problem

In the screencast we can see several files where one is being updated (we can see its size growing). Then the "Modified" field is added and we can see that that field is updated correctly. Then we can see some forced refreshes and how the updating file jumps around.