Mailinglist Archive: opensuse-bugs (4216 mails)

< Previous Next >
[Bug 743741] New: /etc/mime.types x-stuffit entry wrong
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 27 Jan 2012 08:39:15 +0000
  • Message-id: <bug-743741-21960@http.bugzilla.novell.com/>

https://bugzilla.novell.com/show_bug.cgi?id=743741

https://bugzilla.novell.com/show_bug.cgi?id=743741#c0


Summary: /etc/mime.types x-stuffit entry wrong
Classification: openSUSE
Product: openSUSE 11.4
Version: Factory
Platform: All
OS/Version: openSUSE 11.4
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: hv@xxxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---


User-Agent: Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:9.0.1)
Gecko/20100101 Firefox/9.0.1

===> grep x-stuff /etc/mime.types
application/x-stuffit bin sit


The extension "bin" is wrong.

correct:

application/x-stuffit sit sitx

http://en.wikipedia.org/wiki/StuffIt

This makes django unittests fail:

FAIL: test_guesses_content_type_on_file_encoding
(regressiontests.test_client_regress.models.UploadedFileEncodingTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/modwork_egs_d/_django-1_4_x/tests/regressiontests/test_client_regress/models.py",
line 929, in test_guesses_content_type_on_file_encoding
encode_file('IGNORE', 'IGNORE', DummyFile("file.bin"))[2])
AssertionError: 'Content-Type: application/octet-stream' != 'Content-Type:
application/x-stuffit'


Reproducible: Always

Steps to Reproduce:
1. Guess mime type by file extension 'foo.bin'
2. wrong answer

#!/usr/bin/python
import mimetypes
print mimetypes.guess_type('file.bin')



Actual Results:
application/x-stuffit

Expected Results:
application/octet-stream

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups