Bug 94089 - Uncompressed TAR archives detected by content as PDF
Summary: Uncompressed TAR archives detected by content as PDF
Status: RESOLVED DUPLICATE of bug 93549
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Shared Mime Info group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-11 11:35 UTC by Elvis Angelaccio
Modified: 2016-02-23 15:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Elvis Angelaccio 2016-02-11 11:35:30 UTC
Hi, this is an issue very similar to #93549.
Uncompressed tar archives are detected by content as application/pdf, when they only contain a pdf file (or when their first member is a pdf file).

Example test archive: http://arxiv.org/e-print/1312.3844v2

The bug can be reproduced every time:

$ tar -cf test foo.pdf
$ xdg-mime query filetype test
application/pdf

This seems to be specific to pdf files. If you replace foo.pdf with e.g. foo.tex, the resulting archive is correctly detected as application/x-tar.
Comment 1 Bastien Nocera 2016-02-23 15:03:59 UTC
Looks fixed by 10fc17ec61c5b5c6c0e6ea2c8d7a2123271d07e3

1312.3844v2:
	name: application/octet-stream
	data: application/x-tar
	file: application/x-tar

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


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.