Closed
Bug 102392
Opened 24 years ago
Closed 24 years ago
Simple MAPI: SMAPI fails to send a doc after multiple sends
Categories
(MailNews Core :: Simple MAPI, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: trix, Assigned: kkhandrika)
References
Details
(Whiteboard: [ETA 10.10] [PDT+])
Attachments
(2 files)
14.70 KB,
patch
|
mscott
:
superreview+
|
Details | Diff | Splinter Review |
15.58 KB,
patch
|
dougt
:
review+
mscott
:
superreview+
|
Details | Diff | Splinter Review |
If you close Mozilla after a successful send and then attempt to send another
document, SMAPI fails to send the document.
DIRECTIONS:
1. Launch MSWord and successfully send a doc.(assume Mozilla Mail is default).
2. Now close Mozilla.
3. While MSWord is still open, attempt to send another doc.
ACTUAL:
Mozilla launches but email client fails to launch.
EXPECTED:
Mozilla's Compose window should be displayed allowing the send of that doc.
Updated•24 years ago
|
Priority: -- → P3
Comment 1•24 years ago
|
||
Is this a requirement for this drop of Partial Simple MAPI (Bug 102570)? If it
is, it needs to be marked nsbranch+.
Comment 2•24 years ago
|
||
Should we mark this one as nsbranch-, so that we can track it for the next release?
Comment 3•24 years ago
|
||
Nominating for the branch. This could be something worth investigating I think.
A dup of this bug was also filed by Antonio in 103015 so I think it's easy to be
in a scenario where you try to send multiple documents from the same app in the
same session.
Keywords: nsbranch
Comment 4•24 years ago
|
||
*** Bug 103015 has been marked as a duplicate of this bug. ***
Comment 5•24 years ago
|
||
This is a MS Word specific problem. Also this happens not when you try to send
multiple documents from the same app in the same session, but when u send
a/multiple document(s) and then close Mozilla and try to send again without
closing the app (MS Word). If you close MS Word and start again it works fine or
if u send multiple docs without closing Mozilla it works fine.
However, still looking to resolve why it happens in MS Word.
Updated•24 years ago
|
Priority: P3 → P2
Updated•24 years ago
|
Comment 8•24 years ago
|
||
Comment 9•24 years ago
|
||
Hi Scott and Doug,
can u please r and sr the patch above. It has changes in the way the MS COM
objects for MAPI support interface are maintained in the mapi32.dll.
thanks,
- rajiv.
Comment 10•24 years ago
|
||
Hi Scott, wouldn't ur fix for 102821 will in a way provide solution for this
problem too, since u start mozilla in non UI mode / MAPI mode the user would not
exit Mozilla.
This bug is about the problem when the user does send from MAPI app (MS Word)
and then closes Mozilla and then without closing MS Word does send again. Yes
this problem will still happen after 102821 if the user exits by right clicking
the Mozilla icon from the Windows taskbar.
Comment 11•24 years ago
|
||
good point rajiv, my fix for 102821 may reduce the severity of this fix since
netscape won't be exiting until the last mapi session logs off. Unless the user
manually quits mozilla. Should we test the fix in 102821 out in tomorrow's
builds and see if it hides the problem enough? Maybe we won't need this patch
too for the branch? Or do you think the user exiting the app may be a common
enough occurrence that we should still take this patch to make sure the session
is valid?
Assignee | ||
Comment 12•24 years ago
|
||
The fix for 102821 may not work with Power Point and Word Pad but work with
Word and Excel. Power Point is calling Logoff once the SendMail is done. Word
Pad is calling SendMail directly, which will open calls to temporary
Logon/Logoff.
Assignee | ||
Comment 13•24 years ago
|
||
Multiple send is working fine with Word, Excel, Power Point and Word Pad.
Comment 14•24 years ago
|
||
Comment on attachment 52674 [details] [diff] [review]
patch with the fix for this problem
sr=mscott
Attachment #52674 -
Flags: superreview+
Comment 15•24 years ago
|
||
In nsMAPIConfiguration::IsSessionValid, instead of calling Get() to check the
exists of an item in the hash table, call Exists(). In fact, this hole function
could be reduced to:
{
nsAutoLock lock(m_Lock);
nsPRUintKey sessionKey(aSessionID);
return m_SessionMap->Exists(&sessionKey)
}
In nsMapiImp::IsValidSession
+ if (pConfig != nsnull && pConfig->IsSessionValid(aSession))
do this instead
+ if (pConfig && pConfig->IsSessionValid(aSession))
I do not see the need for nsMapiImp::IsValid()? Do we really nee it?
Do you really want to return TRUE CoCreateInstance(CLSID_nsMapiImp...) fails?
Also, I am not quite sure I understand the refcounting going on here.
CreateInstance returns an addref'ed aRetValue. If successful, we pass that
value to TlsSetValue which does not addref. Then we call release on aRetValue.
And we return this value. seams to me, that we have two unowned references:
one returned by InitMozillaReference and one in the tls slot. What am I missing?
Also, what is the ownership module of tId? Is it ever release or do we just
leak it during shutdown?
Lastly, and much more importantly that any of my comments. How have we tested
this to ensure that there are no regressions?
Comment 16•24 years ago
|
||
pls check this into the branch - PDT+, pending review and another sr from mscott.
Assignee | ||
Comment 17•24 years ago
|
||
Comment 18•24 years ago
|
||
Comment on attachment 52856 [details] [diff] [review]
Implemented review comments from dougt
no need to initialize retValue to PR_FALSE, but that is a nit.
Attachment #52856 -
Flags: review+
Comment 19•24 years ago
|
||
Comment on attachment 52856 [details] [diff] [review]
Implemented review comments from dougt
sr=mscott
Attachment #52856 -
Flags: superreview+
Comment 20•24 years ago
|
||
I think PDT already approved this for check in yesterday. So you should be able
to check this in right now instead of waiting for PDT approval. it's already a plus.
Updated•24 years ago
|
Whiteboard: [ETA 10.10] → [ETA 10.10] [PDT+]
Assignee | ||
Comment 21•24 years ago
|
||
I checked in this.
Comment 22•24 years ago
|
||
Should this be marked fixed so it can get on verification radar or are you going
to wait for checkin to the trunk (which may take longer since Simple MAPI is not
on trunk yet)?
Comment 23•24 years ago
|
||
Checked into 0.9.4 branch.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
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
•