Version: (using Devel) Compiler: GCC 4.4 OS: Linux Installed from: Compiled sources I faced this problem trying out KDevelop4 on KDE 4.3.95. When I upload any file from my drive to remote machine, it has changed file permissions to 600 after upload. Niko Sams provided small test application to test if this is KIO problem: http://websvn.kde.org/*checkout*/trunk/extragear/sdk/kdevelop-plugins/upload/tests/permissions.cpp When I ran it: My command was: tests/permssions ~/[path]/index.php sftp://[server]/[path]/index.php On my computer: ls -l ~/[path]/index.php -rw-r--r-- 1 lustmored lustmored 899 Jan 28 21:35 /[path]/index.php Remote: -rw------- 1 [user] [user] 899 Jan 30 19:16 index.php I see permission change. It happens every time I create new file on remote this way. I found that copying files using drag'n'drop in Dolphin works without problem (at least when I tested it). How to reproduce: - download this test application - upload anything to remote server Expected behavior: - File created on remote with same permissions Actual result: - File created on remote with 600 I will be happy to provide any more informations, but don't know what could be useful, so please just ask.
In KDE 4.3.98 the problem still exists with exactly same symptoms. Could someone please comment on this is it my configuration mismatch (I use Gentoo ebuild all the way) or when it will get fixed? Thanks in advance
In KDE 4.4.0 from SVN tag the problem still exists in exactly same way. I have additionally tried using command-line sftp to check if my comp and server are all OK, and it uploaded index.php with perms 644, so everything works OK from simple sftp. But unfortunately not KIO.
Just to let you know - released 4.4 sill has the issue.
*** Bug 225158 has been marked as a duplicate of this bug. ***
4.4.1 - still same problem
4.4.2 problem still occurs. Is anybody interested in this one? I really can provide any information you could ever need, as am really really interested in that one.
In KDE 4.4.92 the problem still exists. I will test with RC3 when it will compile.
In 4.4.95 no change...
does this only happen with sftp? and the problem is probably that the KIO client creates a temp file for the upload, once that is done moves it to the destination. The temp file will have the default permissions as set by umask on the server. A fix would be to copy the permissions of the destination to the temp file before overwriting the destination.
This should be fixed in KDE 4.8.0 as a result of the speed up patch committed before KDE 4.8 beta. See https://git.reviewboard.kde.org/r/103109.