Closed Bug 263204 Opened 20 years ago Closed 20 years ago

MailNews should parse error message the right way until 200/201 from newsserver is sent

Categories

(MailNews Core :: Networking: NNTP, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mcsmurf, Assigned: ch.ey)

Details

(Keywords: fixed-aviary1.0)

Attachments

(1 file)

When you connect to a newsserver, which does for some reasons not accept any new
connections (meaning: doesn't send the initial 200/201 response after connecting
to the server), Mozilla should
a) not cut off the first four character in the error message because it assumes
that a status code is sent in first place
and/or
b) display a generic error message that the server didn't accept the connection
for some unknown reason.
Summary: MailNews should ignore errors until 200/201 from newsserver is sent → MailNews should parse error message the right way until 200/201 from newsserver is sent
Not cutting off the first chars would be easy.
Question is, if we really should display an own error message since we don't
really know the reason for the problem. Or is the response without code defined
anywhere?

If you know such a server, what's sent as greeting, nothing (CRLF) or a special
text?
OS: Windows 2000 → All
Hardware: PC → All
(In reply to comment #1)
> Not cutting off the first chars would be easy.
> Question is, if we really should display an own error message since we don't
> really know the reason for the problem. Or is the response without code defined
> anywhere?

No, isn't defined AFAIK.

> If you know such a server, what's sent as greeting, nothing (CRLF) or a special
> text?

Well, you can force such a behaviour with Hamster if you limit the count of
concurrent connections. There has also been a discussion if this a bug in
Hamster or Mozilla (where all details of this bug are noted), if you want to
read it, see
http://groups.google.de/groups?hl=en&lr=&threadm=ck8f99.m4.1%40kolos.joernweber.de&prev=/groups%3Fhl%3Den%26lr%3D%26group%3Dhamster.de.misc
Here the problem is, the server accepts the TCP connection, sends just
"Connection limit reached - try again later." and closes the connection again.
Attached patch proposed patchSplinter Review
The patch only crops the first chars if the server string starts with a number
and is at least 4 chars long.
This provides the user with the whole server string and also fixes a potential
problem if the server answer is less than 4 bytes.
Assignee: sspitzer → ch.ey
Status: UNCONFIRMED → ASSIGNED
Attachment #161767 - Flags: review?(bienvenu)
Attachment #161767 - Flags: review?(bienvenu) → review+
Attachment #161767 - Flags: superreview?(mscott)
Attachment #161767 - Flags: superreview?(mscott) → superreview+
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Keywords: fixed-aviary1.0
Resolution: --- → FIXED
V. with a current cvs trunk build
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: