Bug 362733 - Kate does not preserve original group owner when saving a file
Summary: Kate does not preserve original group owner when saving a file
Status: REPORTED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: SFTP (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-06 06:37 UTC by Stolz
Modified: 2023-08-17 17:22 UTC (History)
3 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 Stolz 2016-05-06 06:37:32 UTC
Whenever a save a file whose group is not the default for the user Kate changes the group of the file to the default one

$ groups javi
users nginx

$ touch sample.txt

$ sudo chown javi:nginx sample.txt

$ ls -l sample.txt 
-rw-r--r-- 1 javi nginx 0 may  6 14:31 sample.txt

$ kate sample.txt # Make some changes to the file and then save it

$ ls -l sample.txt 
-rw-r--r-- 1 javi users 2 may  6 14:32 sample.txt


Reproducible: Always

Steps to Reproduce:
1. Create a file whose group is not the default for the current user
2. Open the file with Kate
3. Make some changes to the file and save it

Actual Results:  
The group of the file is changed

Expected Results:  
The file should preserve the original group ownership

Kate Version 15.12.3
using 
KDE Frameworks 5.21.0
Qt 5.5.1 (built against 5.5.1)


Compiled from the official Gentoo repository
Comment 1 Buovjaga 2016-07-11 12:24:58 UTC
Same as Bug 362201?
Comment 2 Dominik Haumann 2017-02-26 16:44:31 UTC
Yes, known issue and tracked as bug #333577.

*** This bug has been marked as a duplicate of bug 333577 ***
Comment 3 Kent West 2023-08-14 16:24:21 UTC
This bug appears to have arisen from the dead, as it affect Kate version 22.12.3 on Debian 12.

I'm on a local Debian 12 Dell desktop PC.

westk@westkent:~$ cat /etc/debian_version 
12.1
westk@westkent:~$ uname -a
Linux westkent 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-1 (2023-07-14) x86_64 GNU/Linux
westk@westkent:~$ cat /etc/apt/sources.list
#deb http://ftp.us.debian.org/debian/ unstable main contrib non-free
#deb-src http://ftp.us.debian.org/debian/ unstable main contrib non-free

deb http://ftp.us.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb-src http://ftp.us.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-backports main contrib non-free-firmware

I fire up kate, and Open a file to sftp://goshen.acu.edu/home/web/htdocs/westk/index.html, which before editing the file has these perms:

westk[@]goshen]:/home/web/htdocs/westk:> ls -lah index.html
-rwxr-x--- 1 westk www-data 9.9K Aug 14 11:13 index.html

I edit the file in Kate (just changing one word), and save the changes, and then look at the file perms again:

westk[@]goshen]:/home/web/htdocs/westk:> ls -lah index.html
-rwxr-x--- 1 westk westk 9.9K Aug 14 11:23 index.html
Comment 4 Buovjaga 2023-08-14 16:29:52 UTC
Ok, let's undo the duplicate status