Closed
Bug 216940
Opened 22 years ago
Closed 22 years ago
mailnews channels violate nsIChannel api (contentType)
Categories
(MailNews Core :: Networking, defect, P1)
MailNews Core
Networking
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.5beta
People
(Reporter: Biesinger, Assigned: Biesinger)
References
Details
(Keywords: fixed1.4.2)
Attachments
(1 file)
2.26 KB,
patch
|
Bienvenu
:
review+
darin.moz
:
superreview+
asa
:
approval1.4.1-
mkaply
:
approval1.4.2+
mkaply
:
approval1.5b+
|
Details | Diff | Splinter Review |
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
Assignee | ||
Comment 1•22 years ago
|
||
oh, darin mentioned: nsNetUtil.h has a method called NS_ParseContentType that
does the right thing
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
OS: Windows 2000 → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.5beta
Assignee | ||
Comment 2•22 years ago
|
||
Assignee | ||
Updated•22 years ago
|
Attachment #130221 -
Flags: superreview?(darin)
Attachment #130221 -
Flags: review?(bienvenu)
![]() |
||
Comment 3•22 years ago
|
||
Comment on attachment 130221 [details] [diff] [review]
patch
great, thx.
Attachment #130221 -
Flags: review?(bienvenu) → review+
![]() |
||
Comment 4•22 years ago
|
||
Comment on attachment 130221 [details] [diff] [review]
patch
sr=darin
Attachment #130221 -
Flags: superreview?(darin) → superreview+
![]() |
||
Comment 5•22 years ago
|
||
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 6•22 years ago
|
||
Comment on attachment 130221 [details] [diff] [review]
patch
get it in quick
Attachment #130221 -
Flags: approval1.5b? → approval1.5b+
![]() |
||
Comment 7•22 years ago
|
||
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!
Assignee | ||
Comment 8•22 years ago
|
||
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?
Comment 9•22 years ago
|
||
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.
Assignee | ||
Comment 10•22 years ago
|
||
OK, marking fixed
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
![]() |
||
Comment 11•22 years ago
|
||
Verified fixed - tested on
Linux trunk 2003082505
Windows trunk 2003082404
Status: RESOLVED → VERIFIED
QA Contact: gchan → caillon
Comment 12•22 years ago
|
||
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-
Assignee | ||
Updated•22 years ago
|
Attachment #130221 -
Flags: approval1.4.2?
Comment 13•22 years ago
|
||
Comment on attachment 130221 [details] [diff] [review]
patch
a=mkaply for 1.4.2
Attachment #130221 -
Flags: approval1.4.2? → approval1.4.2+
Assignee | ||
Comment 14•22 years ago
|
||
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
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•