🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
56 messages
56 total messages Page 2 of 2 Started by Russ Allbery Sat, 18 Oct 2003 04:37
Page 2 of 2 • 56 total messages
Re: New NNTP draft -- Sections 1-3
#66948
Author: 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
Re: New NNTP draft -- Sections 1-3
#66950
Author: Russ Allbery
Date: Fri, 24 Oct 2003 09:34
93 lines
5419 bytes
Juergen Helbing <archiver@i3w.com> writes:

> 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

Well, that had little to do with your previous message about the
definition of NNTP and the meaning of MUST in a standard.  This is a
different question, about introducing a new OVER command rather than
standardizing XOVER.

We already had that discussion in the past, and I don't have anything new
to say about it.

If, in the future, people wrote specifications for their extensions before
deploying them, it will smooth the adoption path.  That's why we're adding
an extension mechanism to NNTP, to encourage people to do this properly
and make it far easier to do so.

> If you want that the new draft will ever become effective then we need
> at least a "version number support" for NNTP.

Sorry, I think you're wrong.  I think there is substantial evidence
showing that extension negotiation via a mechanism like LIST EXTENSIONS is
far more robust and useful than a simple version number, and other IETF
protocols that have had the option have gone that route in the past.

NNTP is not special enough to warrant beating its own path against a
well-established and working mechanism.  HTTP is a special case since it's
stateless and didn't use persistent connections and round trips to the
server are far more precious than they are with NNTP.  And even with that,
HTTP makes extensive use of negotiation in various other places.

> And - by the way: Either an NNTPv2 server is offering just the BASIC
> functions or it is offering ALL the extensions.

Sorry to be blunt, but this is nonsense.  I expect that many servers will
not bother to implement LISTGROUP, for example.  And you can write a
perfectly useful NNTP reader server without bothering with HDR.

Look at all the servers that already don't implement many of the optional
LIST commands.  Why do you think that everyone is going to implement LIST
DISTRIBUTIONS all of a sudden when they're not now?

This will become even clearer as more extensions are added.  Not every
server is going to need SASL authentication, or TLS, or the streaming feed
extensions, or full-text search.

> Isn't is possible that EVERY writer of a client has then to implement
> this "full server check" into his program ?

No.  That's what LIST EXTENSIONS is for.  There is a limited and known set
of things that people are currently already dealing with in existing
servers that they'll have to continue dealing with, and then going forward
people ought to use LIST EXTENSIONS.  And we, as a community, can
encourage them to do so.

> The good question might be how long client writers will have to read
> RFC977 - and all the X-appendums

What X-appendums?  I think you miss the point that one of the reasons why
we're writing a new RFC is that much of this behavior is not documented
*anywhere*.

I expect that people will find RFC 2980 useful for a while yet.

> - to write a client which works for Usenet.

What specifically would they be reading RFC 977 looking for?  XOVER isn't
specified in RFC 977.

I don't believe that the new RFC will be fully sufficient for writing an
NNTP client for a while to come.  I have some vague plans to write or help
write such a guide based around an annotated version of the standard.  I
don't think any RFC can fulfill that role, since there's too much lore
that is not the province of a standard, since much of it deals with how to
handle servers that do not follow the standard, either intentionally or
accidentally.

You're never going to read in a standard why you shouldn't send deferrals
to some versions of Diablo.  Nor should you; that's not what a standard is
for.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: New NNTP draft -- Sections 1-3
#66951
Author: Ken Murchison
Date: Fri, 24 Oct 2003 11:45
43 lines
2700 bytes

Juergen Helbing wrote:
> 
> 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

Your example isn't quite correct.  It much simpler than this.  It 
*should* look something like this:

* Issue LIST EXTENSIONS
* If it fails (501), then proceed as in your first example (XOVER/XHDR 
trial and error)
* If it succeeds (202), then try either OVER, HDR or HEAD, depending on 
the results.

If the server doesn't list OVER or HDR in the 202 response, it most 
likely doesn't support XOVER or XHDR either, so there is no reason to 
try them.  I say this because it is trivial for a server which currently 
supports XOVER/XHDR to implement OVER/HDR.  Any server implementer which 
decides to support LIST EXTENSIONS, but not transform their XOVER/XHDR 
implemention into OVER/HDR is either lazy or stupid.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
Re: New NNTP draft -- Sections 1-3
#66954
Author: Russ Allbery
Date: Fri, 24 Oct 2003 18:37
20 lines
2280 bytes
Ken Murchison <ken@oceana.com> writes:

> If the server doesn't list OVER or HDR in the 202 response, it most
> likely doesn't support XOVER or XHDR either, so there is no reason to
> try them.  I say this because it is trivial for a server which currently
> supports XOVER/XHDR to implement OVER/HDR.  Any server implementer which
> decides to support LIST EXTENSIONS, but not transform their XOVER/XHDR
> implemention into OVER/HDR is either lazy or stupid.

While I would generally agree with that, there is one change in OVER
vs. XOVER, namely that the handling of non-printable characters has
finally been standardized and precisely explained and may differ from
current practice.  That's still a fairly trivial change, but it's more
than just adding an alias for the same command.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: New NNTP draft -- Sections 1-3
#66955
Author: Greg Andrews
Date: Fri, 24 Oct 2003 18:54
42 lines
2614 bytes
archiver@i3w.com (Juergen Helbing) writes:
>
>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:"....
>
  [...]
>
>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 ?
>
  [proposes the supported extensions are listedas part of
   the VERSION response]
>

So from now on the job would be:

* Issue a VERSION 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

How is this different from your complaint about LIST EXTENSION?


  -Greg
-- 
:::::::::::::  Greg Andrews  :::::  gerg@panix.com  :::::::::::::
     I have a map of the United States that's actual size.
				-- Steven Wright
Page 2 of 2 • 56 total messages
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads