Bug 487237 - Creating compressed archives in read-only directory
Summary: Creating compressed archives in read-only directory
Status: CONFIRMED
Alias: None
Product: ark
Classification: Applications
Component: plugins (show other bugs)
Version: 24.02.2
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-19 14:36 UTC by Alvin Tang
Modified: 2024-06-08 16:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Compressing a file located in a directory with write permissions (1.59 MB, image/png)
2024-05-19 14:36 UTC, Alvin Tang
Details
Compressing a file located in a read-only directory (1.60 MB, image/png)
2024-05-19 14:37 UTC, Alvin Tang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alvin Tang 2024-05-19 14:36:33 UTC
Created attachment 169618 [details]
Compressing a file located in a directory with write permissions

SUMMARY
By right-clicking files in Dolphin, there is an option "Compress" to create TAR/7z/ZIP/etc. archives.
If the files are set with r-- (4) or r-x (5) permissions, the "Compress" option is greyed out. Otherwise, the option is available even if the directory in which the files are located is set as read-only. In other words, the "Compress" option can be chosen even when the user has no permission to write to the directory.
Dolphin claims that the compression is finished although the archive is not created.

STEPS TO REPRODUCE
1. Find a read-only directory (or chmod 500 to remove write permissions).
2. Open the directory using Dolphin.
3. Right-click on a file or subdirectory.
4. Choose an option under "Compress".

OBSERVED RESULT
Dolphin produces a notification stating "Compressed ... files (Finished)" although the archive is not created.

EXPECTED RESULT
The "Compress" option should be greyed out, or Dolphin should notify the user that permission is denied.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Comment 1 Alvin Tang 2024-05-19 14:37:31 UTC
Created attachment 169619 [details]
Compressing a file located in a read-only directory
Comment 2 Felix Ernst 2024-05-24 22:04:25 UTC
Moving this bug report to Ark because the Compress action (and when it is enable or available) is implemented there AFAIK.