🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66948

Re: New NNTP draft -- Sections 1-3

#66948
From: Juergen Helbing
Date: Fri, 24 Oct 2003 06:16
189 lines
7705 bytes
Russ Allbery <rra@stanford.edu> wrote:

>> The fact that the "substantially new work" is 'optional' does not make
>> it better. From now one we client programmers have to take care about
>> FOUR different type of NNTP-servers:
>
>> 1) Compliant to RFC 9977 including 'options'
>> 2) Compliant to RFC 9977 without 'options'
>> 3) Not compliant to RFC 9977 but has all the new options
>> 4) Anything else - check yourself  :->
>
>I don't believe that this is any more complicated than the current
>situation.  In fact, I think it's much simpler.


Perhaps an example might illustrate what I'm talking about:
Imagine the 'trivial' job to retrieve a list of all msgids from an
'NNTP-Server' in the future:

Today a client programmer can try this:

* Issue an XOVER command 
  - if it succeeds, then the msgid can be filtered form the result.
* Issue a bunch of HEAD commands - and read the MsgId from
   the headers.

(An advanced programmer might even try to use XHDR before).

>From now on the job would be:

* Issue a LIST EXTENSION command
* If HDR is available then try it
* If not then try XHDR - perhaps it is an old server
* If OVER is available then try it
* If not then try XOVER - perhaps it is an old server
* As last rescue try to fetch the headers one by one

I dont currently want to play this game for an 'uncommon'
header as "Content-Type:"....

Of course it would be necessary to store the "very special
type config" for a host in the client - for every single host
a client will contact....


If you want that the new draft will ever become effective
then we need at least a "version number support" for
NNTP. This way we - the client programmers - (lol - and
this comes from me who is writing both sides :-) can
easily rely on something - and could perhaps even
refuse to contact "ancient hosts"....

Would it be so difficult to have any proper identification
of "NNTP-V2" ?  Is there no way to have a 'version' 
command or reply which is rejected by all the old servers
but properly responded by new ones ?

C: version
S: 200 2.0 no extensions (or just some)

C: version
S: 200 2.1 ALL extensions available

C: version
S: 500 command not recognized (old host)


If it would be really difficult to have a proper command
for that purpose wouldn't it be possible to have the
version already in the 'welcome' message ?

200 anything from a very old news-server

200 ver=2.1 <any other text as welcome>......


(I personally would prefer the method with an own command
because my next MyNews releases will offer the option
the have no welcome message at all. This will stop
the malicious port-scanners from exploring open ports)

And - by the way: Either an NNTPv2 server is offering
just the BASIC functions or it is offering ALL the extensions.
Everything between might be nice to exist - might be easier
for the server-programmers: But from the point of a client
programmer - especially one who is NOT extending an existing
client with the 57th patch - we need a clear seperation.


This is not the first project where I'm asking honestly for a clear
version information - and in all cases where the version
info was not integrated a big mess happened later when
V3 was on its way.   (This does not apply to MIME 1.0  :-> )

You are on the way to specify NNTPv2 without such a version info.
Will NNTPv3 also rely on the "LIST EXTENSIONS"  ?
Is it then the client programmers job to find out which commands
from V3 are there, which extensions from V2, which basics ?

Especially if we expect that some V1.0 servers will remain
active for the next decades then we should offer the programmers
a proper way to identify V2 and V3....

Imagine that the "V3" is already 'in planning' including new commands
for handling binaries properly, for better handling with overviews of
350.000 lines, for better dealing of group-lists > 500.000, for better 
seperation of text and binaries, ......
(my '50 problems of NNTP' list is not yet solved  ;-)


I'm trying to be as patient as possible.
And I dont want to create further delays for the new draft.
So there is no need to discuss 'v3' right now.
(And we need V2 to be on its way before we start V3 :-)

But isn't a proper identification essential if it comes
to the next version of NNTP ?


>>> That's not generally how IETF standards are written, at least in my
>>> limited experience.
>
>> http 1.1   ?
>
>HTTP has a version negotation protocol, changes that were not backward
>compatible, and extensive revisions.  None of these are true for NNTP.

Agreed. We can continue to 'add compatible commands' and rely
on the "500 - command not recognized" reply.


>If there
>are specific places where you're worried about backward compatibility,
>please raise them.

I'm not worried about backward compatibility.
I'm worried about forward usage.
For my very personal taste you are too much focussed on this:

Currently just a few test-implementation will issue or understand
and 'OVER' command. The software must be rewritten or modified.
In all cases 'flags' are necessary to switch over to "new mode".
A good question might be 'how many flags' are we going to expect
that a client-programmer is implementing ?
How many variations and combinations of "extensions" are possible ?
How many client programmers will implement 12 different switches
"just to use some new commands... perhaps"  ?


>> Are you the one who will write the sample code to find out 'which level
>> of compliance' is reached on a special host ?
>
>There is no need.
>
>> Will there be a GNKSA for 'NNTP' servers ?
>
>Feel free, if you want to do such evaluations.  I think that might be
>useful.  I don't have time, personally.


Isn't is possible that EVERY writer of a client has then to implement
this "full server check" into his program ?
You say you don't have the time.
But you expect that every client programmer will implement this
'full server check' - with all problems and mistakes he will make ?
Implementing 'fallbacks' in all cases of problems ?


>[...] This
>revision to the NNTP protocol is very conservative, is primarly
>documentation of existing practice and paving the way for extensions to be
>formally specified in the future, and provides a far better guide to
>implementors than RFC 977.

There is absolutely no doubt that the new draft superseeds RFC977 by far.

The good question might be how long client writers will have to
read RFC977 - and all the X-appendums - to write a client which
works for Usenet.

Perhaps I'm underestimating the speed of the server-writers.
There are not many of them.
Perhaps the "old hosts" will disappear within one year.
I hope so.

CU
-- 
Juergen
Technical Details
Message-ID: <14168.oa3200@archiver.winews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!tango.newsreader.com!not-for-mail
References: <87fzhryxdc.fsf@windlord.stanford.edu> <5045e.ma3200@archiver.winews.net> <87u15z8px6.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <14168.oa3200@archiver.winews.net>
Subject: Re: New NNTP draft -- Sections 1-3
Date: Fri, 24 Oct 2003 06:16:14 +0000
From: archiver@i3w.com (Juergen Helbing)
References: <87fzhryxdc.fsf@windlord.stanford.edu> <5045e.ma3200@archiver.winews.net> <87u15z8px6.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!tango.newsreader.com!not-for-mail
Newsgroups: news.software.nntp
Lines: 189
X-Newsreader: MyNews
X-Trace: tango.newsreader.com 4,
 N=Vp8+07Rthb9HqKwRyVQXVnLZOYLe27VHiZyxliFB/PpcG