image/pjpeg missing

Bug #503849 reported by Ralf Hildebrandt
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mime-support (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: mime-support

IE uploads jpg files as "image/pjpeg" instead of "image/jpeg".

This causes problem e.g. in mailman, which detaches attachments and - since Python's mimetypes module doesn't find the mimetype - labels these jpgs as "binary data", naming them "attachment.bin" instead of "attachment.jpg"

Adding:

image/pjpeg jpeg jpg jpe

as a bastardized copy of the

image/jpeg jpeg jpg jpe

line fixes this.

ProblemType: Bug
Architecture: i386
Date: Wed Jan 6 16:32:03 2010
Dependencies:

DistroRelease: Ubuntu 9.10
Package: mime-support 3.46-1ubuntu1
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic-pae
SourcePackage: mime-support
Uname: Linux 2.6.31-14-generic-pae i686

Revision history for this message
Barry Warsaw (barry) wrote :

IE. Why am I not surprised? ;)

Revision history for this message
Adam McGreggor (adam-amyl) wrote :

is it IE6?

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote : Re: [Bug 503849] Re: image/pjpeg missing

* Adam McGreggor <email address hidden>:
> is it IE6?

Probably

--
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  <email address hidden> | http://www.charite.de

Revision history for this message
Scott Ritchie (scottritchie) wrote :

Can't this be done with an alias instead of copying the whole mime type definition?

Revision history for this message
Scott Ritchie (scottritchie) wrote :

I spoke too soon, that's exactly how it is done in Lucid's shared mime info:

  <mime-type type="image/jpeg">
    <_comment>JPEG image</_comment>
    <magic priority="50">
      <match type="string" value="\377\330\377" offset="0"/>
      <match type="big16" value="0xffd8" offset="0"/>
    </magic>
    <glob pattern="*.jpeg"/>
    <glob pattern="*.jpg"/>
    <glob pattern="*.jpe"/>
    <alias type="image/pjpeg"/>
  </mime-type>

Changed in mime-support (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.