File-Manager icon indicating copy to clipboard operation
File-Manager copied to clipboard

Decompressing ZIP file results in error and 0 bit file

Open nehemiagurl opened this issue 1 year ago • 9 comments

Checklist

  • [X] I can reproduce the bug with the latest version given here.
  • [X] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • [X] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • [X] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • [X] This issue contains only one bug.
  • [X] I have read and understood the contribution guidelines.

Affected app version

1.0.1

Affected Android/Custom ROM version

Android 12

Affected device model

Galaxy A12

How did you install the app?

Google Play Store

Steps to reproduce the bug

  1. Go to the ZIP file location (any).
  2. Click on the ZIP file to open, then on the "decompress" button in the top right corner.
  3. Select a folder to decompress to (any).

Expected behavior

Folder decompresses normally, resulting in file(s) in a "decompress" folder within the destination folder.

Actual behavior

An error message pops up: Screenshot_20240421-085717_File Manager While a "decompress" folder is created, the file in it is 0-bit: Screenshot_20240421-090205_File Manager

Screenshots/Screen recordings

(see above)

Additional information

If needed, I can send the ZIP file over for reproduction.

nehemiagurl avatar Apr 21 '24 06:04 nehemiagurl

it actually seems like Fossify File Manager is reading the ZIP file incorrectly in the prepatory stage: compare these two screenshots from Fossify and from Samsung File Manager. Screenshot_20240421-091544_File Manager Screenshot_20240421-091601_My Files

nehemiagurl avatar Apr 21 '24 06:04 nehemiagurl

Can you send a sample file? I just tested various ZIP files, and unpacking works correctly.

Aga-C avatar Apr 21 '24 06:04 Aga-C

I can reproduce only with two specific ZIP files neither of which are meant for general distribution. Do you have access to the [email protected] email address? I can send them there.

nehemiagurl avatar Apr 21 '24 06:04 nehemiagurl

Please send it there, we will check it.

Aga-C avatar Apr 21 '24 06:04 Aga-C

sent with password FossifyOrg.

nehemiagurl avatar Apr 21 '24 07:04 nehemiagurl

Thanks for sending! I've confirmed, and in fact that ZIP doesn't work in File Manager. 

From a quick search, it looks like we've inherited that bug from zip4j library: https://github.com/srikanth-lingala/zip4j/issues/135.

Aga-C avatar Apr 21 '24 12:04 Aga-C

Interestingly, unzipping .zip downloads from Amazon Music worked for me when I first got the app, but unzipping my own .zip folders or those created by colleagues does not work at all. One of the reasons why I got the Fossify app for my Fairphone was that I was hoping it would handle ZIP. Is there any recommendation on what other apps to install while ZIP isn't working in the File Manager?

MonikaBarget avatar May 21 '24 15:05 MonikaBarget

idk if it's just that I haven't received any files created that way or that upstream solved the issue, but it hasn't been recurring for a while now.

nehemiagurl avatar Sep 24 '24 08:09 nehemiagurl

I was testing https://pairdrop.net and tried to send multiple files between devices. Had the same problem as highlighted here, the preview only shows a single file and an error is reported when extraction is attempted. Attaching the file I sent myself along with screenshots of the fossify file manager and built in one.

PairDrop_files_20241213_1141.zip

Screenshot_20241213_114428 Screenshot_20241213_114440

gradha avatar Dec 13 '24 10:12 gradha