Bug 389584

Summary: File downloaded from Firefox using drag & drop gets wrong date modified timestamp; "Save as..." version is correct
Product: [Frameworks and Libraries] frameworks-kio Reporter: bosch_sebastian
Component: generalAssignee: David Faure <faure>
Status: RESOLVED DUPLICATE    
Severity: normal CC: elvis.angelaccio, kdelibs-bugs, nate, unprenom_unnom, wbauer1
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description bosch_sebastian 2018-01-29 04:15:04 UTC
KDE Plasma 5.8.7
KDE Frameworks 5.32
When copy an image from firefox (52.6) from drag&drop it gets a wrong timestamp:

If the image is saved with "Save as.." it gets the correct timestamp
If the same image is saved with drag&drop it gets the following timestamp:

>stat a.jpg

Access: 2018-01-29 00:32:52.261618637 -0300 (correct timestamp)
Modify: 2106-02-07 03:28:15.000000000 -0300
Changed: 2018-01-29 00:32:52.261618637 -0300 (correct timestamp)

Modify seems to be 0x0-FFFF-FFFF in hexadecimal due to GTM-3

Can't blame the clipboard losing some data because if i open a local image in firefox and copy with drag&drop it gets the correct timestamp
Comment 1 chrisprolls 2018-06-20 15:09:39 UTC
Hi,

Same here, on KDE Neon.
Files saved via any browser (chrome, chromium, firefox) are saved with wrong timestamp :

$ LANG=C stat /tmp/file
  File: '/tmp/file'
  Size: 15145           Blocks: 32         IO Block: 4096   regular file
Device: 2bh/43d Inode: 1244        Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1000/chrisprolls)   Gid: ( 1000/chrisprolls)
Access: 2018-06-20 16:49:03.000000000 +0200
Modify: 2106-02-07 07:28:15.000000000 +0100
Change: 2018-06-20 16:49:03.982427055 +0200
 Birth: -

When saved via "Save As", or saved with wget, the timestamp is OK.
Any idea ?

Chrisprolls.
Comment 2 Wolfgang Bauer 2020-07-01 09:47:53 UTC
Looks very much like bug#374420, I'd say.
Is it still a problem with KDE Frameworks 5 versions newer than 5.60.0?
Comment 3 Wolfgang Bauer 2021-01-15 09:47:12 UTC
No response, so let's assume it is a duplicate.

I did try to drag an image and a download link for a text file from Firefox to the Desktop and Dolphin with the latest versions, the Modify time was correct in both cases.

*** This bug has been marked as a duplicate of bug 374420 ***