Bug 367838 - Ark changes directory permissions of unzipped folders to 700
Summary: Ark changes directory permissions of unzipped folders to 700
Status: RESOLVED UPSTREAM
Alias: None
Product: ark
Classification: Applications
Component: general (other bugs)
Version First Reported In: 16.08.0
Platform: Other Linux
: NOR grave
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-26 08:28 UTC by Jasem Mutlaq
Modified: 2016-08-28 10:46 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jasem Mutlaq 2016-08-26 08:28:01 UTC
Using latest KDE Neon packages, when I extract a zip file in Dolphin, all the zip file subdirectories have their permission set to 700!! I tried it multiple times and it always sets them to 700. When using unzip command directly, the permissions are fine (775)

Reproducible: Always

Steps to Reproduce:
1. Unzip a file using ark
2. Check permission of subdirectories


Actual Results:  
Permission 700

Expected Results:  
Permission 755
Comment 1 Elvis Angelaccio 2016-08-26 13:58:11 UTC
Does this happen with every zip archive or only with one? I just tried a random zip archive and permission of extracted folders was 755.
Comment 2 Jasem Mutlaq 2016-08-28 09:19:19 UTC
Yes it happens on all zipped files, I just tried it on another computer with latest KDE Neon packages and the same result
Comment 3 Elvis Angelaccio 2016-08-28 09:21:30 UTC
(In reply to Jasem Mutlaq from comment #2)
> Yes it happens on all zipped files, I just tried it on another computer with
> latest KDE Neon packages and the same result

Can you try unzipping with 7z from command line?

7z x foo.zip
Comment 4 Jasem Mutlaq 2016-08-28 09:54:37 UTC
Yes and same result with Ark. So something broken with the compression library somehow?
Comment 5 Elvis Angelaccio 2016-08-28 10:13:17 UTC
(In reply to Jasem Mutlaq from comment #4)
> Yes and same result with Ark. So something broken with the compression
> library somehow?

I see that ubuntu ships a very old version of p7zip (9.20.1). Can you confirm?

This really looks like a bug in p7zip, you can try to report it against the ubuntu package: https://bugs.launchpad.net/ubuntu/

In the meantime, you could use the following workaround: edit the file ~/.config/arkrc and add the following two lines:

[EnabledPlugins]
kerfuffle_cli7z=false

This will make Ark use unzip instead of 7z, but please do note that unzip has its own set of bugs (in particular with encoding of filenames).
Comment 6 Jasem Mutlaq 2016-08-28 10:26:49 UTC
Thanks!! Will file a bug on Launchpad!