Bug 106838 - Kio tar:// rely on file extension to determine file type
Summary: Kio tar:// rely on file extension to determine file type
Status: RESOLVED INTENTIONAL
Alias: None
Product: kio
Classification: Unmaintained
Component: tar (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-05 13:11 UTC by Loic Pefferkorn
Modified: 2018-07-22 18:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Loic Pefferkorn 2005-06-05 13:11:19 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Unlisted Binary Package
OS:                Linux

Hello,

tar:// rely on extension to determine the file's content.

If a file (containing text )inside  foo.tar is named file.txt, konqueror tar://foo.tar recognize it as a text file, but if the file is named file (without extension), the file is recognized as unknown type.

how to reproduce :

-echo "blababla" > file.txt
-echo "blablabla" > file
-tar cvf foo.tar *
-browse foo.tar with tar://
->file is unknown file, file.txt is a text file

It also works with others type, like graphics, html, ... files.
Comment 1 Thiago Macieira 2005-06-08 05:09:43 UTC
That's because kio doesn't guess the file type by its contents unless it can read the file. And it won't extract each and every file from the tarball just to determine the file type, as that can be a lengthy operation.

I believe this is WONTFIX.
Comment 2 Julian Steinmann 2018-07-22 18:15:47 UTC
I agree with Thiago, this would most likely require a non-trivial amount of resources spent whenever you open a .tar file and might then cause more bugs so it's not really worth the effort.