GNOME Bugzilla – Bug 769083
file-roller can't open certain zip files (e.g. from owncloud) that others can open
Last modified: 2020-11-11 19:13:27 UTC
Created attachment 332002 [details] example zip file that file-roller can't open file-roller can't open zip files generated by owncloud. But they can be opened with unzip. I attached a zip file as an example. When opening with file-roller I get the prompt: "An error ocurred while loading the archive." There is not error message in the terminal. To be sure testing it reveals that there is a flaw in the archive: $ unzip -T download.zip note: didn't find end-of-central-dir signature at end of central dir. But that doesn't stop unzip from being able to unzip the archive without any issues: $ unzip download.zip Archive: download.zip extracting: file1 extracting: file2 $ cat file1 test $ cat file2 test2 Question would be if file-roller is failing because of the missing end-of-central-dir signature or if there is a different issue. In both cases this should be fixed. I think file-roller should be able to open the archive if unzip is able to.
(In reply to cedric from comment #0) > Created attachment 332002 [details] > example zip file that file-roller can't open > > file-roller can't open zip files generated by owncloud. But they can be > opened with unzip. > I attached a zip file as an example. When opening with file-roller I get the > prompt: "An error ocurred while loading the archive." There is not error > message in the terminal. > To be sure testing it reveals that there is a flaw in the archive: > $ unzip -T download.zip > note: didn't find end-of-central-dir signature at end of central dir. > But that doesn't stop unzip from being able to unzip the archive without any > issues: > $ unzip download.zip > Archive: download.zip > extracting: file1 > extracting: file2 > $ cat file1 > test > $ cat file2 > test2 > Question would be if file-roller is failing because of the missing > end-of-central-dir signature or if there is a different issue. > In both cases this should be fixed. I think file-roller should be able to > open the archive if unzip is able to. HI, I am not a developer of file-roller,I am just testing it. but I can't represent your problem,it is fine in my computer,I am using ubuntu,type $file-roller ,then drag your zip file into file-roller window,then open them , it is ok. can you show me the details of the steps you open your zip files ,please?
Created attachment 333259 [details] file-roller open zip(successful )
The error happens only if 7zip is installed, because file-roller gives priority to 7zip over unzip and 7zip gives an error opening this file. (Headers Error)
Created attachment 333283 [details] file-roller fails (In reply to terrance__chen from comment #1) > HI, I am not a developer of file-roller,I am just testing it. > but I can't represent your problem,it is fine in my computer,I am using > ubuntu,type $file-roller ,then drag your zip file into file-roller > window,then open them , it is ok. > > can you show me the details of the steps you open your zip files ,please? Sure. I attached a screenshot. I executed 'file-roller /path/to/download.zip' just like you.
I think Paolo is right. The error occurs when 7zip is installed. However 7z CAN unzip the file it just prints out that the archive contains error. (That seemingly can be ignored). Maybe file roller should just give a warning that the archive is corrupt und thus contents may be corrupt, too. This is the output of both unzip and 7zip: $ unzip download.zip Archive: download.zip extracting: file1 extracting: file2 $ cat file1 test $ rm file1 file2 $ 7z x download.zip 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz (206A7),ASM,AES-NI) Scanning the drive for archives: 1 file, 449 bytes (1 KiB) Extracting archive: download.zip ERRORS: Headers Error -- Path = download.zip Type = zip ERRORS: Headers Error Physical Size = 449 64-bit = + Archives with Errors: 1 Open Errors: 1 $ cat file1 test
7zip returns a fatal error (exit code 2), so it's not easy to ignore. I suggest to ask owncloud developers to produce correct zip files :)
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time. If you still use file-roller and if you still see this bug / want this feature in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/file-roller/-/issues/ Thank you for creating this report and we are sorry it could not be implemented (volunteer workforce and time is limited).