Closed Bug 216940 Opened 21 years ago Closed 21 years ago

mailnews channels violate nsIChannel api (contentType)

Categories

(MailNews Core :: Networking, defect, P1)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.5beta

People

(Reporter: Biesinger, Assigned: Biesinger)

References

Details

(Keywords: fixed1.4.2)

Attachments

(1 file)

nsIChannel.idl: 122 * The value of the contentType attribute is a lowercase string. A value 123 * assigned to this attribute will be parsed and normalized as follows: 124 * 1- any parameters (delimited with a ';') will be stripped. 125 * 2- if a charset parameter is given, then its value will replace the 126 * the contentCharset attribute of the channel. 127 * 3- the stripped contentType will be lowercased. 128 * Any implementation of nsIChannel must follow these rules. These mailnews channels violate that api: http://lxr.mozilla.org/seamonkey/source/mailnews/base/util/nsMsgProtocol.cpp#563 http://lxr.mozilla.org/seamonkey/source/mailnews/imap/src/nsImapProtocol.cpp#8036 http://lxr.mozilla.org/seamonkey/source/mailnews/news/src/nsNNTPProtocol.cpp#5465 (though this inherits from nsMsgProtocol) fixing this would probably fix bug 216939, marking dependency
oh, darin mentioned: nsNetUtil.h has a method called NS_ParseContentType that does the right thing
Status: NEW → ASSIGNED
OS: Windows 2000 → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.5beta
Attachment #130221 - Flags: superreview?(darin)
Attachment #130221 - Flags: review?(bienvenu)
Comment on attachment 130221 [details] [diff] [review] patch great, thx.
Attachment #130221 - Flags: review?(bienvenu) → review+
Comment on attachment 130221 [details] [diff] [review] patch sr=darin
Attachment #130221 - Flags: superreview?(darin) → superreview+
Comment on attachment 130221 [details] [diff] [review] patch I would like to see this land, if possible, for 1.5beta. This very small correctness fix makes mail attachments work properly on attachments sent from AOL Communicator (see the depent bug 216939).
Attachment #130221 - Flags: approval1.5b?
Comment on attachment 130221 [details] [diff] [review] patch get it in quick
Attachment #130221 - Flags: approval1.5b? → approval1.5b+
Comment on attachment 130221 [details] [diff] [review] patch I just landed this for biesi since he was idle on irc. Thanks for the quick fix!
Comment on attachment 130221 [details] [diff] [review] patch this bug also affects the 1.4 branch, so I'd like to get the patch checked in there too. also see comment 5 for the reasoning.
Attachment #130221 - Flags: approval1.4.x?
Please resolve this if it's fixed on the trunk. 1.4.x requests will be evaluated once the bug is resolved and verified on the trunk.
OK, marking fixed
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Verified fixed - tested on Linux trunk 2003082505 Windows trunk 2003082404
Status: RESOLVED → VERIFIED
QA Contact: gchan → caillon
Comment on attachment 130221 [details] [diff] [review] patch This is not going to make 1.4.1. Please re-request aproval after 1.4.1 ships if you'd like to get this in for 1.4.2.
Attachment #130221 - Flags: approval1.4.x? → approval1.4.x-
Comment on attachment 130221 [details] [diff] [review] patch a=mkaply for 1.4.2
Attachment #130221 - Flags: approval1.4.2? → approval1.4.2+
fixed on 1.4 branch: Checking in base/util/nsMsgProtocol.cpp; /cvsroot/mozilla/mailnews/base/util/nsMsgProtocol.cpp,v <-- nsMsgProtocol.cpp new revision: 1.112.2.2; previous revision: 1.112.2.1 done Checking in imap/src/nsImapProtocol.cpp; /cvsroot/mozilla/mailnews/imap/src/nsImapProtocol.cpp,v <-- nsImapProtocol.cpp new revision: 1.492.2.2; previous revision: 1.492.2.1 done
Keywords: fixed1.4.2
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: