Closed Bug 87976 Opened 25 years ago Closed 21 years ago

application/xml should be in default list for attachment types

Categories

(Bugzilla :: Attachments & Requests, enhancement, P3)

2.13
enhancement

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: drepper, Assigned: annevk)

References

Details

Attachments

(2 files, 2 obsolete files)

With XML files getting more and more important I think it is time to add text/xml to the list of file types in the http://bugzilla.mozilla.org/createattachment.cgi?id=XXXXX menu. I know I can use the "Other" field to fill this in but if text/html is there text/xml should be as well.
See also bug #86397 regarding a possibly better solution.
Priority: -- → P3
Target Milestone: --- → Bugzilla 2.16
Adding us xslt folks to CC. text/xml as mime type in the default list would definitly ease our life. People in the xslt community (IE folks) have a hard time with mozilla being so picky about mime types, so giving them a button to press would be great. (And I can live without typing text/xml every time as well) Axel
Axel, who all did you add to the CC list on this bug? One of them is showing up as __UNKNOWN__
it's bugzilla hickup. I'm not sure that I'm to blame, but somehow ' ' got added to CC. Leave it there until I'm sure the issue is fixed, people might want to debug this further. (justdave on #mozilla said he knew what happened, I'm not sure I left a space or extra ',') Axel
I'm one of the people who try to fix bugzilla hiccups... :) In fact, I'm working on something CC related right now, so I'll see if I can find what caused this. Thanks for confirming that you were only trying to add two people to the CC list.
Reversing database corruption caused by bug 95857 and bug 95798. Pay no attention to the man behind the curtain.
-> Bugzilla product, Changing Bugs component, reassigning.
Assignee: tara → myk
Component: Bugzilla → Creating/Changing Bugs
Product: Webtools → Bugzilla
Version: Bugzilla 2.13 → 2.13
We can customise this now. Myk, do we want to add this to the Bugzilla default, the mozilla.org list, both or neither?
We are currently trying to wrap up Bugzilla 2.16. We are now close enough to release time that anything that wasn't already ranked at P1 isn't going to make the cut. Thus this is being retargetted at 2.18. If you strongly disagree with this retargetting, please comment, however, be aware that we only have about 2 weeks left to review and test anything at this point, and we intend to devote this time to the remaining bugs that were designated as release blockers.
Target Milestone: Bugzilla 2.16 → Bugzilla 2.18
If this is customizable now, it seems like a small effort to add text/xml to the default list. If this is not going in the standard bugzilla, I suggest at least adding it to bugzilla.mozilla.org. It would guide a lot of people to the right mimetype for their testcases.
Matty, ask in the newsgroup whether or not this should be part of the default list. Either way I am going to add to b.m.o.'s list (bug 110895) since there are a number of attachments that use that type on that installation (per attachment 57627 [details] of bug 39835).
*** Bug 110895 has been marked as a duplicate of this bug. ***
Enhancements which don't currently have patches on them which are targetted at 2.18 are being retargetted to 2.20 because we're about to freeze for 2.18. Consideration will be taken for moving items back to 2.18 on a case-by-case basis (but is unlikely for enhancements)
Target Milestone: Bugzilla 2.18 → Bugzilla 2.20
Bugzilla 2.20 feature set is now frozen as of 15 Sept 2004. Anything flagged enhancement that hasn't already landed is being pushed out. If this bug is otherwise ready to land, we'll handle it on a case-by-case basis, please set the blocking2.20 flag to '?' if you think it qualifies.
Target Milestone: Bugzilla 2.20 → Bugzilla 2.22
If something would come in the default list, it should be 'application/xml'. 'text/xml' has issues.
Summary: text/xml should be in default list → application/xml should be in default list
What issues?
Well, it should default to US-ASCII instead of UTF-8 when no charset parameter is given (Mozilla has a bug on this). It is going to be deprecated in some future RFC.
Attached patch patch #1 (obsolete) — — Splinter Review
myk, this is a start. Where can I find the option list used on bmo? I need to replace text/xml with application/xml there too. The content-types.html.tmpl file does not even list XML as an option. Perhaps it should?
Assignee: myk → bug
Status: NEW → ASSIGNED
Attachment #174573 - Flags: review?(myk)
Attached patch patch #2 (obsolete) — — Splinter Review
Next time I should really read the bug first.
Attachment #174573 - Attachment is obsolete: true
Attachment #174579 - Flags: review?(myk)
Attachment #174573 - Flags: review?(myk)
Comment on attachment 174579 [details] [diff] [review] patch #2 >Index: mozilla/webtools/bugzilla/Bugzilla/Constants.pm >Index: mozilla/webtools/bugzilla/template/en/default/attachment/content-types.html.tmpl Nit: these changes do entirely different things and should probably be separate patches. The first change looks OK to me but needs second review due to the potential implications. The second change fixes the issue this bug reports just fine. One nit: XML should be grouped with the text types (i.e. underneath "HTML source") instead of at the end.
Attachment #174579 - Flags: review?(myk) → review+
Attached patch patch #3 — — Splinter Review
This patch places XML under HTML.
Attachment #174579 - Attachment is obsolete: true
Attachment #175436 - Flags: review?(myk)
Attachment #175436 - Flags: review?
Attachment #175436 - Flags: review?(myk) → review+
Flags: approval+
Comment on attachment 175436 [details] [diff] [review] patch #3 >Index: Bugzilla/Constants.pm >=================================================================== >RCS file: /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Constants.pm,v >retrieving revision 1.18 >diff -u -p -8 -r1.18 Constants.pm >--- Bugzilla/Constants.pm 18 Feb 2005 22:41:09 -0000 1.18 >+++ Bugzilla/Constants.pm 24 Feb 2005 15:35:38 -0000 >- "xml" => "text/xml" , >+ "xml" => "application/xml" , Yeah, please put this in a separate bug. It would be "Bugzilla should send XML templates as application/xml."
Attachment #175436 - Flags: review? → review-
This can be checked in. It only includes the patch relevant to this bug. It has r+a.
Comment on attachment 175709 [details] [diff] [review] patch #4 - fixes just this bug Yep. Cool. :-)
Attachment #175709 - Flags: review+
/cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/content-types.html.tmpl,v <-- content-types.html.tmpl new revision: 1.5; previous revision: 1.4 done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Component: Creating/Changing Bugs → Attachments & Requests
Resolution: --- → FIXED
Summary: application/xml should be in default list → application/xml should be in default list for attachment types
Target Milestone: Bugzilla 2.22 → Bugzilla 2.20
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: