Closed
Bug 18075
Opened 26 years ago
Closed 26 years ago
Leaving incoming server blank causes several crashes
Categories
(SeaMonkey :: MailNews: Account Configuration, defect, P3)
SeaMonkey
MailNews: Account Configuration
Tracking
(Not tracked)
VERIFIED
WORKSFORME
People
(Reporter: tonyr, Assigned: scottputterman)
References
Details
(Keywords: crash)
Create a new account and leave the incoming server field blank (empty). This
causes several crashes - the best thing to do is try it and see. Some of the
crashes were:
In nsMsgFolder.cpp, line #162:
if (NS_SUCCEEDED(rv) && (const char*)userName)
Should be:
if (NS_SUCCEEDED(rv) && (const char*)hostName)
There are other references to the incoming server hostName that cause various
crashes and asserts.
Open the Account Setup dialog and click on the account with no incoming server
and you'll hit the other crashes.
It's possible the fix is to default the incoming server to something but it would
probably be good to fix up the code regarding a null hostName first.
![]() |
||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M12
![]() |
||
Comment 1•26 years ago
|
||
this should be easy to fix.
![]() |
||
Comment 4•26 years ago
|
||
seth checked the above fix in yesterday.
I need to make another run at it and see wherelse we crash.
![]() |
||
Updated•26 years ago
|
Assignee: alecf → putterman
Status: ASSIGNED → NEW
![]() |
||
Comment 6•26 years ago
|
||
Scott, could you look at this?
![]() |
Assignee | |
Updated•26 years ago
|
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 7•26 years ago
|
||
What else is left with this bug? I see that we crash when doing GetNewMessages
on a server with no host. cc'ing mscott about this.
I know why.
In this case
nsMsgProtocol::OpenNetworkSocket will return a failure error. However because
this is happening in nsPop3Protocol::nsPop3Protocol the error code is not
propagated outwards. The solution here would be to make Initialize get called
by whoever allocates the nsPop3Protocol so that the error code can be used. I
haven't checked to see if this happens on news and imap accounts as well.
![]() |
Assignee | |
Comment 9•26 years ago
|
||
I think the critical part of this bug has been fixed by alec in the past. I
have a fix for pop GetMsgs when this happens but don't have a fix for Imap yet.
![]() |
||
Comment 10•26 years ago
|
||
I'll move to M13 at midnight tomorrow if I still don't get to it.
![]() |
Assignee | |
Comment 11•26 years ago
|
||
I fixed it so that local accounts with no incoming servers no longer crash when
doing GetMsg. Moving but to M13 for Imap.
![]() |
||
Comment 12•26 years ago
|
||
doh, we must have been working on the same fix at the same time, I just sent off
a patch to mscott for review :)
![]() |
Assignee | |
Updated•26 years ago
|
Target Milestone: M12 → M13
![]() |
Assignee | |
Comment 13•26 years ago
|
||
really moving remainder of bug to M13.
![]() |
||
Comment 14•26 years ago
|
||
Build 2000011008M13: NT4, Linux 6.0, Mac 8.5.1
Account Wizard now requires the name of the Incoming Server to continue through
the dialogs. If it is left blank and the Next button is selected then it states
"please enter a valid hostname".
![]() |
Assignee | |
Updated•26 years ago
|
Target Milestone: M13 → M15
![]() |
Assignee | |
Comment 15•26 years ago
|
||
This isn't as urgent now that the account manager won't allow this. changing to
M15.
![]() |
||
Comment 17•26 years ago
|
||
Mass moving to M16 to get these off the M15 radar. Please let me know if this
is really an M15 stopper.
Target Milestone: M15 → M16
![]() |
Assignee | |
Comment 18•26 years ago
|
||
moving to M20. I don't think this is a major issue anymore.
Target Milestone: M16 → M20
![]() |
||
Comment 19•26 years ago
|
||
Build 2000-04-14-10M16: NT4
Build 2000-04-14-09M16: Linux 6.0
1. OK on Windows and Linux.
In the Account Wizard's Server dialog I tried selecting the Next button without
entering anything and it warns that you must enter a server name. Then I hit the
space bar and was able to go to the Next dialog. After the account was created I
tried retrieving messages for POP and IMAP and no problems occured. It did warn
that it was not able to connect to the server.
2. Build 2000-04-14-11M16: Mac 8.5.1
It doesn't crash but after the account is created go to Get Messages and the
Status Bar states "Document Done" with the horizontal scrollbar moving
continuously. I can switch to another account and read messages so it's
still useable.
Expected Results: On the Mac I would have expected the error message to appear
stating that it was unable to connect to the server (same as Win and Linux).
Should we close this and open a new bug specific to the Mac problem?
I'll also log a bug on the Account Wizard to do more checking so that it checks
for spaces.
![]() |
||
Comment 20•26 years ago
|
||
Actually, if you can't make it crash by making the incoming server a space (" ")
then this bug is probably worksforme, and we do probably need the other two
bugs.
![]() |
||
Comment 21•26 years ago
|
||
Marking Worksforme.
![]() |
||
Comment 22•26 years ago
|
||
Marking Worksforme again.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
![]() |
||
Comment 23•26 years ago
|
||
Verified Worksforme.
If anyone else can duplicate this then please reopen.
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: Browser → Seamonkey
Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•