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 166603 - file-roller depends on the filename extensions for some formats and doesn't open gziped files, while nautilus detect filetype correctly
file-roller depends on the filename extensions for some formats and doesn't o...
Status: RESOLVED DUPLICATE of bug 126130
Product: file-roller
Classification: Applications
Component: general
2.9.x
Other All
: Normal major
: ---
Assigned To: Paolo Bacchilega
file-roller-maint
Depends on:
Blocks:
 
 
Reported: 2005-02-07 21:10 UTC by Mantas Kriaučiūnas
Modified: 2006-03-18 11:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Mantas Kriaučiūnas 2005-02-07 21:10:10 UTC
Please describe the problem:
Currently, file-roller depends on the filename extensions for some archive
formats, for example gzip or bzip2 and doesn't open a file if extension is
missing or different :(
This is very reminiscent of the broken Windows paradigm. file-roller should
determine the file type based on content rather than name.

But file-roller can open some other archive types, for example zip archives
without extensions or with other extension, for exampe .rar without problems.

Other software, for example nautilus or file command, always detect archive type
correctly, even if extension is missing or unknown, for example .dar or .jigdo

Steps to reproduce:
1. Compress some file, for example
http://cvs.gnome.org/viewcvs/*checkout*/file-roller/ChangeLog to ChangeLog.gz
2. Remove .gz extension or replace .gz extension to some other, for exampe
rename to ChangeLog or ChangeLog.jigdo
3. Try to open renamed file (from nautilus or from File-Roller's
Archive->Open... menu ) 


Actual results:
File-Roller doesn't open renamed archive file and displays an error message:

Could not open "ChangeLog.jigdo"

Archive type not supported.

Expected results:
File-Roller should open renamed archive file, because other GNOME software, for
example Nautilus or file command detect file type correctly:

ubuntu@ubuntu:~/Desktop$ file ChangeLog.jigdo
ChangeLog.jigdo: gzip compressed data, was "ChangeLog", from Unix

Does this happen every time?
Yes

Other information:
Same problem is with bzip2 and possible other types (I tested only 3 types -
gzip, bzip2 and zip), while file command detect file type correctly:

ubuntu@ubuntu:~/Desktop$ file ChangeLog2.dar
ChangeLog2.dar: bzip2 compressed data, block size = 900k
Comment 1 Dennis Krul (dweazle) 2005-08-18 11:07:12 UTC
I can reproduce this. It should recognize the file as being an archive based on
the mime type rather than the file extension.

Comment 2 Teppo Turtiainen 2006-03-18 11:49:45 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 126130 ***