Closed
Bug 24705
Opened 25 years ago
Closed 25 years ago
[BLOCKER][Regression] Mailto links broken
Categories
(MailNews Core :: Composition, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M13
People
(Reporter: nbaca, Assigned: bugzilla)
Details
Build 2000012109M13: NT4
Build 2000012108M13: Linux 6.0
Build 2000012108M13: Mac 8.5.1
Overview: In the 3-pane view, select an address link in a message. Try to send
the message and notice it is never delivered.
Steps to reproduce:
1. In the 3-pane select a message
2. In the message pane select one of the address links (lchiang@netscape.com). A
new Composer window should appear with the "To:" field prefilled.
3. Send the message
Actual Results: When the new Composer window appears notice that the address
states "lchiang%40netscape.com" instead of "lchiang@netscape.com". After
sending the message it is returned because it tried to send the message to
"lchiang@40netscape.com".
Expected Results: After selecting the address link it should prefill the address
field with the correct email address, "lchiang@netscape.com".
Additional Information:
- I checked the Windows build from 1/20 and this problem did not occur.
Reporter | ||
Updated•25 years ago
|
Summary: [BLOCKER][Regression]Message returned when using address link in message pane → [BLOCKER][Regression] Mailto links broken
Assignee | ||
Comment 2•25 years ago
|
||
sound to be a regression of my fix for bug 24301. I have checked every way to create a message except this one!
Assignee | ||
Comment 4•25 years ago
|
||
As we don't need and must not escape value pass to OpenComposeWindowWithValue anymore (see bug 24301),
OpenComposeWindowWithURI must not escape them before calling OpenComposeWindowWithValue. Sorry I missed
this case!!!!! No Ice cream for me today.
Anyway, here is the fix:
Index: nsMsgComposeService.cpp
===================================================================
RCS file: /cvsroot/mozilla/mailnews/compose/src/nsMsgComposeService.cpp,v
retrieving revision 1.21
diff -r1.21 nsMsgComposeService.cpp
184,191c184,190
< // and all our arguments must be escaped!
< nsAutoString uniToPart = nsEscape(aToPart, url_Path);
< nsAutoString uniCcPart = nsEscape(aCcPart, url_Path);
< nsAutoString unicBccPart = nsEscape(aBccPart, url_Path);
< nsAutoString uniNewsgroup = nsEscape(aNewsgroup, url_Path);
< nsAutoString uniSubjectPart = nsEscape(aSubjectPart, url_Path);
< nsAutoString uniBodyPart = nsEscape(aBodyPart, url_Path);
< nsAutoString uniAttachmentPart = nsEscape(aAttachmentPart, url_Path);
---
> nsAutoString uniToPart = aToPart;
> nsAutoString uniCcPart = aCcPart;
> nsAutoString unicBccPart = aBccPart;
> nsAutoString uniNewsgroup = aNewsgroup;
> nsAutoString uniSubjectPart = aSubjectPart;
> nsAutoString uniBodyPart = aBodyPart;
> nsAutoString uniAttachmentPart = aAttachmentPart;
Comment 5•25 years ago
|
||
looks good to me. r=sspitzer
Assignee | ||
Updated•25 years ago
|
Whiteboard: Fix in hand, waiting for approval
Assignee | ||
Comment 7•25 years ago
|
||
Fixed and checked in in both the tip (M14) and in the branch (M13)
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Whiteboard: Fix in hand, waiting for approval
Comment 8•25 years ago
|
||
I'm worried about this fix. It's very possible that the mailto url will contain
values in it that MUST be escaped in order pass them around. particularly
addresses that contain 8 bit data.
I'm worried that we got rid of the escaping 'cause it did need to be there.
Assignee | ||
Comment 9•25 years ago
|
||
Don't worry, parameters (in occurance addresses) are going directly into a nsMsgCompFields before be passed to the
Window. That why we don't need and must not escape them anymore. The new way is better than before where we
use to pass everything to the window as text where special characters could cause problem.
To fully undestand, OpenComposeWindowWithURI will call OpenComposeWindowWithValues which now call
OpenComposeWindowWithCompFields.
The only potential problem would be that value retreive from GetMessageContents() are already escaped and if that
the case (which I doubt), we need to unescape then before going further.
Comment 10•25 years ago
|
||
OK using 2000-01-24-01 commercial m13 build on linux 6.0
OK using 2000-01-24-00 commercial m13 build on NT 4.0
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•