Bug 94089

Summary: Uncompressed TAR archives detected by content as PDF
Product: shared-mime-info Reporter: Elvis Angelaccio <elvis.angelaccio>
Component: freedesktop.org.xmlAssignee: Shared Mime Info group <shared_mime_info>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.