Closed Bug 17493 Opened 25 years ago Closed 25 years ago

[dogfood] file | send page gets obscure error message when trying to send

Categories

(MailNews Core :: Composition, defect, P3)

x86
Windows 95
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: chofmann, Assigned: bugzilla)

References

()

Details

(Whiteboard: [PDT+])

go to test URL
file | send page
mail compose window starts
type in a to: address
hit send
get a funny error dialog
   "[StringID-21447418113]"

want to send web pages to eat yummy dog food.
chris h.
Summary: dogfood file | send page gets obscure error message when trying to send → [dogfood] file | send page gets obscure error message when trying to send
What appends here is that the file name generated by the function
GenerateFileNameFromURI() in mailnews/compose/src/nsMsgCompUtil.cpp is invalid.
In this case it returns (without the double quotes)
"navbar.tmpl?cp=mynet.254&service=net.254&id=item_0&h=1587966223".

I have a fix that strip everything from the first '?' to the end. Now I get only
"navbar.tmpl" and it works much better.

Rich, can you review the following patch (tested on Mac & Windows):

Index: nsMsgCompUtils.cpp
===================================================================
RCS file: /cvsroot/mozilla/mailnews/compose/src/nsMsgCompUtils.cpp,v
retrieving revision 1.41
diff -r1.41 nsMsgCompUtils.cpp
1926c1926,1929
<       if ((cp1 = PL_strchr(cp, '/'))) *cp1 = 0;
---
>       if ((cp1 = PL_strchr(cp, '/'))) *cp1 = 0;
>         // strip '?'
>       if ((cp1 = PL_strchr(cp, '?'))) *cp1 = 0;
>
Looks good to me.

- rhp
Whiteboard: [PDT+]
Putting on [PDT+] radar.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed and checked in
Status: RESOLVED → VERIFIED
Linux Redhat 6.0 (1999-11-08-08 M11)
Win32 on Win_nt 4.0 and Win 95 (1999-11-08-0 M11)
Linux Redhat 6.0 (1999-11-08-08 M11)
I did a send on each of these platforms, the problem has been fixed.
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.