Closed Bug 174409 Opened 22 years ago Closed 16 years ago

NNTP HEAD command fails

Categories

(MailNews Core :: Networking: NNTP, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ken, Unassigned)

Details

User-Agent:       Mozilla/4.79 [en] (Windows NT 5.0; U)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830

I'm in the process of writing a NNTP daemon for the Cyrus IMAP project and I am 
testing with various clients as I proceed.  I found that Mozilla (as far back 
as Netscape 4.7) fails to display article info when the _optional_ XOVER 
command is not implemented.  Mozilla correctly tries to use the HEAD command 
when XOVER is not implemented, but it errors out internally and never displays 
the article summary.

I am quite certain that my server implementation of HEAD is correct, as it 
works with other clients.  FYI, as soon as I implemented XOVER, Mozilla worked 
perfectly.

A debug trace of Mozilla and a protocol dump are attached.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.




Mozilla debug trace:

8192[80898f8]: (8b16a98) Next state: SEND_FIRST_NNTP_COMMAND
8192[80898f8]: (8b16a98) Sending: GROUP misc.test
8192[80898f8]: (8b16a98) Next state: NNTP_RESPONSE
8192[80898f8]: (8b16a98) Receiving: 211 1 190 190 misc.test
8192[80898f8]: (8b16a98) Next state: SEND_FIRST_NNTP_COMMAND_RESPONSE
8192[80898f8]: (8b16a98) Next state: SETUP_NEWS_STREAM
8192[80898f8]: (8b16a98) Next state: NNTP_XOVER_BEGIN
8192[80898f8]: (8b16a98) SetCurrentGroup to misc.test
8192[80898f8]: (8b16a98) Next state: NNTP_FIGURE_NEXT_CHUNK
8192[80898f8]: (8b16a98) Chunk will be (190-190)
8192[80898f8]: (8b16a98) Next state: NNTP_XOVER_SEND
8192[80898f8]: (8b16a98) Sending: XOVER 190-190
8192[80898f8]: (8b16a98) Sending: XOVER 190-190
8192[80898f8]: (8b16a98) Next state: NNTP_RESPONSE
8192[80898f8]: (8b16a98) Receiving: 500 Unrecognized command
8192[80898f8]: (8b16a98) Next state: NNTP_XOVER_RESPONSE
8192[80898f8]: (8b16a98) Next state: NNTP_READ_GROUP
8192[80898f8]: (8b16a98) Sending: HEAD 190
8192[80898f8]: (8b16a98) Next state: NNTP_RESPONSE
8192[80898f8]: (8b16a98) Receiving: 221 190 
<Pine.LNX.4.44.0210140932200.12438-1
00000@notebook.oceana.com> Article retrieved
8192[80898f8]: (8b16a98) Next state: NNTP_READ_GROUP_RESPONSE
8192[80898f8]: (8b16a98) Next state: NNTP_ERROR
8192[80898f8]: (8b16a98) ClosingConnection
8192[80898f8]: (8b16a98) Sending: QUIT



Protocol dump:

0.9531 (0.8263)  C>S
---------------------------------------------------------------
GROUP misc.test
---------------------------------------------------------------

0.9540 (0.0008)  S>C
---------------------------------------------------------------
211 1 190 190 misc.test
---------------------------------------------------------------

1.2507 (0.2967)  C>S
---------------------------------------------------------------
XOVER 190-190
---------------------------------------------------------------

1.2508 (0.0001)  S>C
---------------------------------------------------------------
500 Unrecognized command
---------------------------------------------------------------

1.3538 (0.1029)  C>S
---------------------------------------------------------------
HEAD 190
---------------------------------------------------------------

1.3541 (0.0003)  S>C
---------------------------------------------------------------
221 190 <Pine.LNX.4.44.0210140932200.12438-100000@notebook.oceana.com> Article 
retrieved
Path: eagle.oceana.com!notebook.oceana.com!ken
Newsgroups: misc.test
Date: Mon, 14 Oct 2002 09:32:31 -0400
From: Ken Murchison <ken@notebook.oceana.com>
Subject: test test
Message-ID: <Pine.LNX.4.44.0210140932200.12438-100000@notebook.oceana.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
To: post+misc.test@eagle.oceana.com
.
---------------------------------------------------------------

1.3609 (0.0068)  C>S
---------------------------------------------------------------
QUIT
---------------------------------------------------------------

1.3615 (0.0005)  S>C
---------------------------------------------------------------
205 Bye
---------------------------------------------------------------

5    1.3615 (0.0000)  S>C  TCP FIN
5    1.4476 (0.0860)  C>S  TCP FIN
Status: UNCONFIRMED → NEW
Ever confirmed: true
Product: MailNews → Core
sorry for the spam.  making bugzilla reflect reality as I'm not working on these bugs.  filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
So it IS a Thunderbird bug! Geez... I'm on the same issue as Ken Murchison, I wasted all day trying to figure out what was wrong with my NNTP server (which I started writing *last night* :P)
My patch for bug 16913 will fix this problem, as I discovered that news.mozilla.org dislikes the XHDR command, and needed to implement it anyways.
Was about time. Thunderbird is currently unusable because it can't understand one of the main NNTP commands; unless the server implements the optional XOVER feature. Most do, but that's not the point.
Now that patch to bug 16913 was checked in, and since comment 3 said the patch would fix this bug too, should this be closed?
No one's offered any failures of this bug since bug 16913 was checked in, so I'm marking RESOLVED FIXED...
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.