Default handler lookup by extension fails

Bug #760644 reported by Till Kamppeter on 2011-04-14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Chris Coulson

Bug Description

Binary package hint: firefox

When I click on a link to an architecture-dependent package (_amd64.deb, _i386.deb) I get a dialog which suggests to open the file with Software Center, but if I click on an architecture-independent package (_all.deb) it is considered a file type which is never heard about, suggesting to simply save it or to browse for a program in the local file system. Also architecture-independent DEB packages should be installable with Software Center by simply clicking them.

This should be simple to fix and it should not break anything, so it could still be done for Natty.

Changed in firefox (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-11.04
Changed in firefox (Ubuntu):
assignee: nobody → Chris Coulson (chrisccoulson)
importance: High → Medium
status: New → Confirmed
Chris Coulson (chrisccoulson) wrote :

So, what is happening here is that the mimetype of the attachment is application/x-debian-package, which isn't a registered mimetype according to glib. In this case, FIrefox is meant to fallback to looking up via extension type (and it does correctly map the .deb extension to application/x-deb, which is a registered mimetype), but the fallback case is totally broken

summary: - Architecture-independent .DEB packages (_all.deb) not connected to
- software-center
+ Default handler lookup by extension fails
Chris Coulson (chrisccoulson) wrote :

I bet if the mimetype of the deb file according to the server was application/x-deb, then it would work :)

Chris Coulson (chrisccoulson) wrote :

Ok, I just confirmed this by attaching the file to this bug report and setting the mimetype to application/x-deb, and this works :)

Changed in firefox (Ubuntu):
milestone: ubuntu-11.04 → natty-updates
Till Kamppeter (till-kamppeter) wrote :

I have now changed the configuration of the OpenPrinting web server to use application/x-deb as mime type for Debian packages, by modifying /etc/mime.types and restarting Apache. Note that the OpenPrinting web server runs Ubuntu 8.04.4 LTS. I have checked Natty and there /etc/mime.types has still application/x-debian-package. After the change and clearing the Firefox cache on the Natty client the packages are treated correctly.

But anyway, the Firefox problem should get fixed, and also /etc/mime.types in Ubuntu.

Charles Plessy (plessy) wrote :

Conversely, what can be corrected is the absence of programs that declare that they handle application/x-debian-package. I see that for instance "MimeType=application/x-deb;application/x-debian-package;" in /usr/share/applications/gdebi.desktop.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers