Closed
Bug 77053
Opened 24 years ago
Closed 24 years ago
Send failing when attaching above web page
Categories
(MailNews Core :: Composition, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: sheelar, Assigned: bugzilla)
References
()
Details
(Whiteboard: [nsbeta1+])
Attachments
(3 files)
1.69 KB,
patch
|
Details | Diff | Splinter Review | |
4.62 KB,
patch
|
Details | Diff | Splinter Review | |
2.87 KB,
patch
|
Details | Diff | Splinter Review |
Buildid: 2001041908
Open a compose window
From the menu item select file|attach web page
try to send
Results in an wierd error and upon okaying the error displays Failed to Send
message.
Reporter | ||
Comment 1•24 years ago
|
||
change qa contact
Suresh can you attach the stack trace. thanks. Suresh crashed while attaching
this page.
QA Contact: esther → sheelar
Here is that weird msg. "There was a problem including the file %.200s in the
message. Would you like to continue
sending the message without this file?"
On Canceling this dialog "sending of mag failed" pops up. On Ok'ing it crashes.
Stack trace: (from mozilla windows build from yesterday)
nsQueryInterface::operator()(const nsID & {...}, void * * 0x0012f684) line 32 +
20 bytes
nsCOMPtr<nsIMsgSend>::assign_from_helper(const nsCOMPtr_helper & {...}, const
nsID & {...}) line 970 + 18 bytes
nsCOMPtr<nsIMsgSend>::nsCOMPtr<nsIMsgSend>(const nsQueryInterface & {...}) line
564
nsCOMPtr<nsIMsgSend>::Assert_NoQueryNeeded() line 499
nsCOMPtr<nsIMsgSend>::operator=(nsIMsgSend * 0x00000000) line 584
nsMsgAttachmentHandler::SetMimeDeliveryState(nsIMsgSend * 0x00000000) line 1130
nsMsgAttachmentHandler::UrlExit(unsigned int 2152398850, const unsigned short *
0x00000000) line 1080
FetcherURLDoneCallback(unsigned int 2152398850, const char * 0x07fb53e0, const
char * 0x00000000, int 0, const unsigned short * 0x00000000, void * 0x07fac2e4)
line 440 + 16 bytes
nsURLFetcher::OnStopRequest(nsURLFetcher * const 0x07fadcb4, nsIRequest *
0x07fad8b0, nsISupports * 0x00000000, unsigned int 2152398850) line 328 + 40
bytes
nsURLFetcher::OnStateChange(nsURLFetcher * const 0x07fadcc0, nsIWebProgress *
0x07fadc04, nsIRequest * 0x07fad8b0, int 65552, unsigned int 2152398850) line
411
nsDocLoaderImpl::FireOnStateChange(nsIWebProgress * 0x07fadc04, nsIRequest *
0x07fad8b0, int 65552, unsigned int 2152398850) line 1325
nsDocLoaderImpl::doStopURLLoad(nsIRequest * 0x07fad8b0, unsigned int 2152398850)
line 721
nsDocLoaderImpl::OnStopRequest(nsDocLoaderImpl * const 0x07fadbf4, nsIRequest *
0x07fad8b0, nsISupports * 0x00000000, unsigned int 2152398850) line 585
nsLoadGroup::RemoveRequest(nsLoadGroup * const 0x07fadb80, nsIRequest *
0x07fad8b0, nsISupports * 0x00000000, unsigned int 2152398850) line 491 + 44
bytes
nsHTTPChannel::ResponseCompleted(nsIStreamListener * 0x00000000, unsigned int
2152398850) line 2386
nsHTTPServerListener::OnStopRequest(nsHTTPServerListener * const 0x07fb7820,
nsIRequest * 0x07fb7420, nsISupports * 0x07fad8b0, unsigned int 2152398850) line
709
nsOnStopRequestEvent::HandleEvent() line 159
nsARequestObserverEvent::HandlePLEvent(PLEvent * 0x07fb79e4) line 64
PL_HandleEvent(PLEvent * 0x07fb79e4) line 588 + 10 bytes
PL_ProcessPendingEvents(PLEventQueue * 0x00e6acd0) line 518 + 9 bytes
_md_EventReceiverProc(HWND__ * 0x03a80c22, unsigned int 49420, unsigned int 0,
long 15117520) line 1069 + 9 bytes
USER32! 77e71820()
00e6acd0()
Ducarroz, I think the culprit is SetMimeDeliveryState(nsnull) in
Attachmenthandler code (which btw was recently added to that file) :)
Using today's release as well as debug build I see the send failing but I dont
see the crash and I think you will notice the same thing if you use the
following sites - www.tci.com, yahoo.org. All these pages use redirection to
another site and I think that is what is causing the msg compose some
consternation when it is assembling the attachments.
Assignee | ||
Comment 6•24 years ago
|
||
Suresh, can you tell me which one of the SetMimeDeliveryState(nsnull)you think
is the culprit?
Ducarroz, For this bug it fails in line 1079 (in nsMsgAttachmentHandler). There
are few other places where SetMimeDeliveryState(nsnull) is called.
The one thing I don't understand is why we are encountering this situation, i.e
why we are throwing up that weird dialog. If re-direction is the reason (as
Varada mentioned) then I'm sure there will be tons of web pages with re-direction.
Comment 8•24 years ago
|
||
marking nsbeta1+. BTW, I crashed when cancelling the send and then closing the
window.
Assignee | ||
Comment 9•24 years ago
|
||
Cancel??? Do you have the progress dialog turn on?
Reporter | ||
Comment 11•24 years ago
|
||
No, Progress dialog was not turned on in my pref.js
Assignee | ||
Comment 12•24 years ago
|
||
We have two problem here:
1) URL fetcher somehow now failed with redirection, maybe a necko regression!
2) We crash when the user cancel the send operation. This because, when
urlfetcher failed, it call back the attachmenthandler which call the send
listener which tell compose to remove the reference on msgSend. Then the
attachmenthandler remove its own reference on msgsend which cause msgsend to be
delete which cause the attachmenthandler to goes away. And sure, when the
attachment handler continue it's business, we crash! The fix is not let the
listener breaking the msgsend reference, think we don't need to do anymore since
the listener use a weakreference to the compose. it's a left over off the old
code to break a circular reference between compose, sendlistener and msgsend.
Assignee | ||
Comment 13•24 years ago
|
||
Assignee | ||
Comment 14•24 years ago
|
||
Assignee | ||
Comment 15•24 years ago
|
||
We weren't correctly supporting redirection. I had to add some code to detect a
redirection event and in this case avoid to abort the download when necko stop
the original request.
Whiteboard: [nsbeta1+] → [nsbeta1+] Fix in hand
Comment 16•24 years ago
|
||
reviewed and tested the patch.
r=varada
Comment 17•24 years ago
|
||
two things - why is that method [nsocript]? It looks perfectly scriptable to me,
unless I'm missing something.
And, should you reset mRedirection to PR_FALSE after handling the redirection?
In case the user really does cancel later on.
Assignee | ||
Comment 18•24 years ago
|
||
I don't add any new method to the interface but rather remove it at I don't need
it and has it's very dangeroug to play with this attribute!
mRedirection is reseted when we receive a onStart message.
Comment 19•24 years ago
|
||
sorry, I was talking about [nocript] nsIMsgSend getMessageSend();
which I realize you didn't change, but seemed related, and I was just asking.
Better idl for this would be readonly attribute nsIMsgSend messageSend
sr=bienvenu
Assignee | ||
Comment 20•24 years ago
|
||
Fixed and checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Whiteboard: [nsbeta1+] Fix in hand → [nsbeta1+]
Reporter | ||
Comment 21•24 years ago
|
||
buildid: 2001-05-07-06
Unfortunately, this bug still exists on the above build. Sorry reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 22•24 years ago
|
||
accepting (again :-( )
Status: REOPENED → ASSIGNED
Whiteboard: [nsbeta1+] → [nsbeta1+] working on it...
Assignee | ||
Comment 23•24 years ago
|
||
ok, the redirection handling has been rewrote by rpots on Appr 27. This cause my
redirection code detection stop working! I'll rewrite it on my side...
Assignee | ||
Comment 24•24 years ago
|
||
Assignee | ||
Updated•24 years ago
|
Whiteboard: [nsbeta1+] working on it... → [nsbeta1+] have fix
Assignee | ||
Comment 25•24 years ago
|
||
r=varada
Comment 26•24 years ago
|
||
sr=mscott
Comment 27•24 years ago
|
||
man, scott's always beating me to it! :-)
Assignee | ||
Comment 28•24 years ago
|
||
Fixed and checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•24 years ago
|
Whiteboard: [nsbeta1+] have fix → [nsbeta1+]
Reporter | ||
Comment 29•24 years ago
|
||
verified able to attach web pages that have redirection.
win98-2001051406
linux-2001051305
mac-2001051408
Status: RESOLVED → VERIFIED
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
•