After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 769083 - file-roller can't open certain zip files (e.g. from owncloud) that others can open
file-roller can't open certain zip files (e.g. from owncloud) that others can...
Status: RESOLVED OBSOLETE
Product: file-roller
Classification: Applications
Component: general
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: file-roller-maint
file-roller-maint
Depends on:
Blocks:
 
 
Reported: 2016-07-22 13:59 UTC by cedric
Modified: 2020-11-11 19:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
example zip file that file-roller can't open (449 bytes, application/zip)
2016-07-22 13:59 UTC, cedric
Details
file-roller open zip(successful ) (118.19 KB, image/png)
2016-08-14 02:46 UTC, terrance__chen
Details
file-roller fails (30.67 KB, image/png)
2016-08-14 12:31 UTC, cedric
Details

Description cedric 2016-07-22 13:59:19 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.
Comment 1 terrance__chen 2016-08-14 02:44:42 UTC
(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?
Comment 2 terrance__chen 2016-08-14 02:46:14 UTC
Created attachment 333259 [details]
file-roller open zip(successful )
Comment 3 Paolo Bacchilega 2016-08-14 04:54:38 UTC
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)
Comment 4 cedric 2016-08-14 12:31:26 UTC
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.
Comment 5 cedric 2016-08-14 12:36:57 UTC
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
Comment 6 Paolo Bacchilega 2016-08-15 06:31:11 UTC
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 :)
Comment 7 André Klapper 2020-11-11 19:13:27 UTC
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).