file-roller cannot decompress non-archive .gz

Bug #248683 reported by Hew
6
Affects Status Importance Assigned to Milestone
file-roller (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: file-roller

File-roller cannot open .gz files other than .tar.gz . The file can be viewed, but attempting to extract the file returns an error.

Steps to reproduce:
1) Obtain a non-tar .gz file (eg, file.diff.gz , file.txt.gz , file.gz) (http://archive.ubuntu.com/ubuntu/pool/main/f/file-roller/file-roller_2.23.3-0ubuntu2.diff.gz)
2) Open with file-roller (eg, double click in nautilus)
3) Attempt to extract the file displayed (eg, double click or select extract on it)

What should happen:
4) The file is successfully extracted.

What actually happens:
4) A dialog appears with "An error occurred while extracting files."

This can also simply be tested using the "Extract Here" option by right-clicking the file in nautilus. I also tested by making my own .gz files of varying content and name.

The command 'gzip' decompresses a file successfully.

file-roller/intrepid uptodate 2.23.3-0ubuntu2

Revision history for this message
Richard Seguin (sectech) wrote :

Thank you for reporting this issue and trying to make Ubuntu better... Could you please post either

A) A screen snap of the error
B) A cut-and-paste of the error itself...

This will help us to track down and solve your problem

Thanks

Richard Seguin

Revision history for this message
Richard Seguin (sectech) wrote :

* Marking incomplete pending enough information to complete triage

Changed in file-roller:
status: New → Incomplete
Revision history for this message
Hew (hew) wrote :

I previously noted that a dialog appears with "An error occurred while extracting files.". I have now attached a screenshot of the error as well, after choosing the "Extract Here" option of the file you see on the desktop. If you have an Intrepid system, are you able to reproduce the issue as described? Thanks for the triage :-)

Changed in file-roller:
status: Incomplete → New
Revision history for this message
Richard Seguin (sectech) wrote :

Please leave the status as incomplete as it shows it is being worked on by a triager... From here I will either set the status to invalid or triaged...

Changed in file-roller:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Richard Seguin (sectech) wrote :

Are you able to un-archive the file using gzip from a terminal?

in a terminal type gzip -d <filename>

Revision history for this message
Hew (hew) wrote :

yes

Revision history for this message
JM Williams (jmdwilliams) wrote :

I wrote the following (and attached) shell script to see if I could reproduce
the problem in Ubuntu 8.04 (file-roller version 2.22.3-0ubuntu1):

    #!/bin/sh
    FILE=$(tempfile)
    echo Hello world >$FILE
    gzip --to-stdout $FILE >$FILE.gz
    tar --create --gzip --directory=$(dirname $FILE) $(basename $FILE) \
        >$FILE.tar.gz
    file-roller $FILE.gz &
    file-roller $FILE.tar.gz &

I can’t reproduce the bug in Ubuntu 8.04. However, if I’ve understood the
report correctly (and have not messed up!), then this script should reproduce
the bug on affected systems: file-roller should succeed in opening
$FILE.tar.gz, but fail to open $FILE.gz. If I’ve misunderstood the report,
then please explain how, or feel free to come up with a different test!

Revision history for this message
Hew (hew) wrote :

It's important to note that this occurs on Ubuntu 8.10 Intrepid (with file-roller 2.23.3-0ubuntu2), not Ubuntu 8.04LTS Hardy.

file-roller can open the file just fine. The problem occurs when extracting. Your shell script opens file-roller for both files successfully, but does not attempt extraction.

If I extract (double click) the file in the window containing the .tar.gz file, it correctly extracts the "Hello world" file.
If I extract (double click) the file in the window containing the .gz file, it produces the error.

Revision history for this message
JM Williams (jmdwilliams) wrote :

Well, how about this, then? (I’ve taken the opportunity to add in some
quotation marks to make the script just slightly more robust!)

    #!/bin/sh
    FILE="$(tempfile)"
    echo Hello world >"$FILE"
    gzip --to-stdout "$FILE" >"$FILE.gz"
    tar --create --gzip --directory="$(dirname "$FILE")" "$(basename "$FILE")" \
        >"$FILE.tar.gz"
    file-roller --extract-here "$FILE.gz" &
    file-roller --extract-here "$FILE.tar.gz" &

Revision history for this message
Hew (hew) wrote :

That script doesn't work, but manually adding the --extract-here part reproduces the issue.

I've already thoroughly documented this problem, which makes it clear the issue is independent of whether or not you're doing this with a shell script. This should be easily reproducible by anyone with Intrepid. It would be most useful if someone else could confirm this issue on Intrepid to assist with the triage of this issue. Thanks.

Changed in file-roller:
status: Incomplete → New
Revision history for this message
Richard Seguin (sectech) wrote :

Please leave the status as incomplete as a triager is still dealing with the issue. The bug will either be confirmed or invalidated as a result based on what we investigate.

Thanks,

Richard Seguin

Changed in file-roller:
status: New → Incomplete
Revision history for this message
Richard Seguin (sectech) wrote :

Hew, I'll install Intrepid in a VM and get back to you on this issue

Revision history for this message
Hew (hew) wrote :

Confirmed fixed as of file-roller 2.23.5-0ubuntu1

Changed in file-roller:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.