Closed Bug 699660 Opened 13 years ago Closed 13 years ago

application/x-jar and application/java-archive attachments should be automatically converted to jar: URLs

Categories

(Bugzilla :: Attachments & Requests, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 385338

People

(Reporter: roc, Unassigned)

Details

Firefox can display zip/jar files directly, using the jar: URL scheme, e.g.: jar:https://bug699351.bugzilla.mozilla.org/attachment.cgi?id=571611!/test-displayport/

It would be very useful if zip/jar attachments were presented with a clickable jar: link so that Firefox users can browse those attachments easily.
Also, bugzilla's URL highlighting should understand the jar: scheme.
We can't do it for application/x-zip and application/zip because of MFSA 2007-37.
Summary: application/x-zip, application/zip and application/java-archive attachments should be automatically converted to jar: URLs → application/x-jar and application/java-archive attachments should be automatically converted to jar: URLs
Bugzilla can just serve files with those types as application/java-archive.
Is it required as a built-in Bugzilla feature?
Posters can easily set the attachment mime-type to application/java-archive if they want to view the contents on Bugzilla.
The main goal of my request is to provide an easy URL to browser the JAR file. I know how to synthesize such a URL, but most people don't (and I have to do it by hand).

Also, people don't know about Firefox's ability to view JAR files, so they usually use application/zip or application/x-zip as the MIME type, not application/java-archive, so fixing that up when serving the file would be useful too. Currently I have to edit their attachment type manually.
(In reply to Robert O'Callahan (:roc) (Mozilla Corporation) from comment #5)
> The main goal of my request is to provide an easy URL to browser the JAR
> file. I know how to synthesize such a URL, but most people don't (and I have
> to do it by hand).
I'm fine with that.

> Also, people don't know about Firefox's ability to view JAR files, so they
> usually use application/zip or application/x-zip as the MIME type, not
> application/java-archive, so fixing that up when serving the file would be
> useful too. Currently I have to edit their attachment type manually.
I don't agree with that. I can no longer offer the zip file for download if Bugzilla overwrite the mime-type forcefully.
What about adding a checkbox such as "View the zip file in the browser"?
Duping to bug 385338 which has a long history about this topic. No need for a separate bug.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.