https://bugs.kde.org/show_bug.cgi?id=523202

            Bug ID: 523202
           Summary: Unable to duplicate read-only file
    Classification: Applications
           Product: dolphin
      Version First 26.04.3
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION
Dolphin is unable to duplicate a read-only file and instead shows the user an
inaccurate error message.

STEPS TO REPRODUCE
1. Create a file
2. Remove write permission from the file, i.e. set it to 444 (or 400)
3. Duplicate the file (using the Ctrl+D shortcut)

OBSERVED RESULT
Dolphin shows an error message:

Cannot duplicate here: You do not have permission to create items in this
folder.

But this is incorrect, since the directory permission didn't change between
creation and duplication of the file. cp also continues to work, as does copy +
pasting the file. It seems for duplicate Dolphin checks the file's permission,
not its parent.

EXPECTED RESULT
A copy of the original file should be created.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44
KDE Plasma Version: 6.7.2
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1

ADDITIONAL INFORMATION
Directory listing:
❯ ll -a
total 56
drwxr-xr-x.  2 tarulia tarulia  4096 Jul 18 10:46 .
drwxr-xr-x. 14 tarulia tarulia 49152 Jul 18 10:46 ..
-r--r--r--.  1 tarulia tarulia     0 Jul 18 10:46 original

❯ cp original copy

❯ ll -a
total 56
drwxr-xr-x.  2 tarulia tarulia  4096 Jul 18 10:51 .
drwxr-xr-x. 14 tarulia tarulia 49152 Jul 18 10:46 ..
-r--r--r--.  1 tarulia tarulia     0 Jul 18 10:51 copy
-r--r--r--.  1 tarulia tarulia     0 Jul 18 10:46 original

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to