Bug 339536 - Ark fails to extract properly a zip file containing files with read only permission together with a sticky bit
Summary: Ark fails to extract properly a zip file containing files with read only perm...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: 2.19
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Raphael Kubo da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-30 18:36 UTC by Prasad Murthy
Modified: 2015-05-31 10:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Sample zip file containing files downloaded with Airdroid app from android device (821.83 KB, application/zip)
2014-09-30 18:47 UTC, Prasad Murthy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Prasad Murthy 2014-09-30 18:36:54 UTC
The Android application Airdroid packs multiple files in a zip file when importing from a android device. This downloaded zip file when extracted yields to empty files, the same zip file when extracted with other archive managers( I tested with peazip and the command line utility unzip) produces the files contained in the zip correctly. On initial analysis I found the file permissions of the files in the zip having read only permissions and with sticky bit. 

Reproducible: Always

Steps to Reproduce:
1. Download multiple files from your android device using Airdroid app
2. Extract the downloaded zip file using ark
3. Check the file size of the extracted files with that of the expected ones

Actual Results:  
Ark extracts files that are empty instead of extracting the zip correctly 

Expected Results:  
When the zip file with multiple files download with the android app Airdroid is extracted it should produce the files contained in the zip correctly.

Two of the lines I found interesting in the debug logs are below

"
Kerfuffle::Archive::create: Loading plugin "kerfuffle_libarchive"
ark(6055) Kerfuffle::ReadOnlyArchiveInterface::ReadOnlyArchiveInterface:
"
Comment 1 Prasad Murthy 2014-09-30 18:47:13 UTC
Created attachment 88905 [details]
Sample zip file containing files downloaded with Airdroid app from android device
Comment 2 Prasad Murthy 2014-09-30 18:50:07 UTC
One small correction in the description, after ark extracts the files, the file size remains correct, but the file content is null when checked with a hex editor like okteta
Comment 3 Raphael Kubo da Costa 2014-09-30 19:05:22 UTC
Confirmed. This looks weird, and looks like a problem with libarchive's zip implementation: infozip works fine, while bsdtar and libarchive extract null files.
Comment 4 Ragnar Thomsen 2015-05-31 10:51:51 UTC
Extraction of archives containing files with readonly permissions and sticky bit set works when using the clizip plugin. The problem is caused by Kubuntu following Debian in patching Ark to use the libarchive plugin for zip archives. Please file a bug at Kubuntu.

Resolving as downstream.