Bug 244484 - creating new file on sftp or smb location sets strange permissions and timestamps
Summary: creating new file on sftp or smb location sets strange permissions and timest...
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: SVN
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords: reproducible
: 245263 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-13 13:26 UTC by Pascal d'Hermilly
Modified: 2020-11-08 01:01 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal d'Hermilly 2010-07-13 13:26:16 UTC
Version:           unspecified (using Devel) 
OS:                Linux

KDE: 4.4.92
When I create a new file(right click -> Create new -> Text file) on a remote host via sftp or smb it creates a file with no read permissions for Group and Other. Also it sets the created time to unix epoch (1970 ...) and modified time to 5/1 2008 (two years ago).
It doesn't matter which host or directory I create the file on. Same timestamp and permissions(except permissions on smb).
Doesn't happen on local disk.


Reproducible: Always

Steps to Reproduce:
Open Dolphin
Connect to a remote host via sftp or smb (sftp probably preferable).
right click in a folder and click Create new -> Text file
right click it and select properties to view the permisions and timestamps

Actual Results:  
Wrong timestamps and permissions

Expected Results:  
correct timestamps and permisions inherited from folder.

OS: Linux (x86_64) release 2.6.32-23-generic
Compiler: cc
Comment 1 FiNeX 2010-08-02 11:15:02 UTC
Bug confirmed using KDE SC 4.4.5 (reproduced with both dolphin and konqueror).

Cannot reproduce with SMB or FTP, only with SFTP.
Comment 2 Pascal d'Hermilly 2010-08-12 14:32:09 UTC
The permissions problem seems to be fixed in the final 4.5.0
The timestamp problem persists
Comment 3 Peter Penz 2010-08-17 11:27:47 UTC
*** Bug 245263 has been marked as a duplicate of this bug. ***
Comment 4 Andreas Schneider 2010-08-17 11:57:26 UTC
The permissions problem has been fixed recently. See bug #245169.

Here is the stat output using kwrite to create test.txt

gladiac@milliways:~> stat test.txt 
  File: `test.txt'
  Size: 6               Blocks: 8          IO Block: 4096   regular file
Device: fd00h/64768d    Inode: 1228862     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/ gladiac)   Gid: (  100/   users)
Access: 2010-08-17 11:43:19.000000000 +0200
Modify: 2010-08-17 11:43:20.000000000 +0200
Change: 2010-08-17 11:43:20.000000000 +0200

This is the result creating test.txt using dolphin.

gladiac@milliways:~> stat test.txt 
  File: `test.txt'
  Size: 2               Blocks: 8          IO Block: 4096   regular file
Device: fd00h/64768d    Inode: 1228856     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/ gladiac)   Gid: (  100/   users)
Access: 2010-08-17 11:53:33.000000000 +0200
Modify: 2008-01-05 00:54:01.000000000 +0100
Change: 2010-08-17 11:53:33.000000000 +0200

The wrong modify time is not a problem of the kio_sftp slave.
Comment 5 Peter Penz 2010-08-17 12:04:43 UTC
Thanks Andreas for the update. OK, in this case I need to assign it to kdelibs.
Comment 6 Jekyll Wu 2011-12-31 01:43:41 UTC
I just checked this using KDE SC 4.8 RC1, and didn't find the wrong modification time stamp. Has this problem been fixed?
Comment 7 Jekyll Wu 2012-07-07 15:14:43 UTC
Feel free to reopen this report if the problem still happens in recent versions (KDE SC 4.8.4 or higher).
Comment 8 Pascal d'Hermilly 2012-07-09 08:15:16 UTC
The created timestamp is still 1970 with KDE SC 4.8.4
The modified dateand permissions are fine.