🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64745

Re: Standardization of LIST OVERVIEW.FMT

#64745
From: Curt Welch
Date: Fri, 04 Apr 2003 03:19
141 lines
8900 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:

> We don't want to limit NNTP to just RFC 1036 articles, either, since it
> can handle other things.  So so far in the new standard, we're just
> bailing and saying "here are some things that are fundamental about
> articles from an NNTP standpoint; the rest is up to whatever article
> format you want to comply with."

Right, what you need to do however is specify enough to answer all the
protocol related questions and then stop there.

On the issue of a space after the colon, I did find one real-world example.
Here's the headers of an article with the problem on the Subject: which
seems to have made it through many servers so mine is not the only one in
the world accepting these articles...

Path: news.newsreader.com!news2.newsreader.com!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-monga!easynet.net!newsfeed.esat.net!feeder.news.heanet.ie!not-for-mail
Newsgroups: rec.boats.paddle
From: Frosty <frosty@nochance.com>
Subject:Are the new playboats getting to gimmicky?
Message-Id: <slrnb7uqiv.ni6.frosty@Prodigy.redbrick.dcu.ie>
User-Agent: slrn/0.9.7.4 (SunOS)
Organization: Dublin City University (DCU)
Cache-Post-Path: ns2-ext.dcu.ie!frosty@prodigy.redbrick.dcu.ie
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
Date: 24 Mar 2003 20:28:15 GMT
Lines: 6
NNTP-Posting-Date: 24 Mar 2003 20:28:15 GMT
NNTP-Posting-Host: 136.206.1.1
X-Trace: 1048537695 reader.news.heanet.ie 179 [::ffff:136.206.1.1]:46070
Xref: news.newsreader.com rec.boats.paddle:87891

It might be interesting to have people check their servers to see how many
servers rejected this article and for the ones that didn't, to see what the
server returns for Xover.

> > and for parse errors, I think it should be _very_ precise about how to
> > react to a basic parse error (this missing space issue, any line length
> > issues if there are any limits, any max header size after folding
> > issues, NULLs, lone CRs and LFs) in regards to the header parsing
> > algorithm.
>
> I'm not quite sure what you want here; if the message doesn't parse, it's
> not valid input.

I want all the servers to do it the same way so we don't have the current
problem of half the servers in the world rejecting an article and the other
half supporting it on Usenet.  Usenet is so large these days that any edge
condition you can think up seems to be tested almost daily by some article
being posted somewhere in the world.  This is a big part of the "usenet
doesn't work" confusion that people have and the "missing article" problem
which people fight so much in the binary groups.

The above article with the missing space does "parse" on my server and some
others, but it doesn't parse on all servers I suspect.

The point of a standard is to prevent just this type of confusion.

> > For the missing space issue, I think the RFC should be very precise
> > about how it should be delt with.
>
> This is getting into quality of implementation issues, which I don't
> think really belong in a wire protocol document.

It would be nice if the content of the article could be separated from the
NNTP protocol so the issue of how an NNTP server responds to content could
be dealt with at a different level.  But, we have this well estabished
problem of the protocol supporting the XOVER and XHDR like commands which
require that the protocol code understand how to find a "subject" in the
bytestream of an article.

> That's not the sort of
> thing that standards address; if you look at a whole bunch of IETF
> standards, you won't find things like precise specification of error
> handling of syntactically invalid input in many of them.  The standard
> specifies what is valid input and what to do with valid input; if you
> send invalid input, that's outside the scope of the standard other than
> specifying error codes that you can use.

Not really.  Does the NNTP protocol not specify how a server should respond
to a invalid NNTP command?  Are you trying to argue that it shouldn't?
Does it not define what is and is not a valid NNTP command?

Does not the TCP RFCs make it clear what the correct response is to a
packet which is not correctly formated? (i'd have to check to know the
answer to this but my guess is that it is well defined).

There are semantic issues outside the scope of the protocol which a
server will use to make a decision about rejecting an
article. But, these low level header format issues are imporant to the
servers ability to correctly interpret header data which is in fact part of
the protocol beacuse of the way it's designed (i.e. because we have a HDR
command).  If you were to remove XOVER and HDR and XPAT and the like from
the protocol, then all these issues would vanish.  The format of the
article being transported would have nothing to do with the NNTP protocol.
For HEAD, you need to define how to identify the header vs the body, but
not how to parse inside the header.  If HEAD was the only header-like
command, then we wouldn't have this issue.  But because NNTP does have OVER
and HDR command, you must specify how to parse a header.  And, you must
specify what is and is not a valid header, and I think (though this is the
weakest issue here), you need to make it clear how the server should
respond to invalid headers just like you make it clear how the server
responds to invalid NNTP commands. (or, define the header format so there
is no such thing as an invalid header in terms of NNTP which is bascially
what I did in my code).

> I don't want to put into a standard that you have to reject a message for
> such a reason.  You may not want to do so, and it doesn't matter from a
> protocol standpoint if you reject it or not.

Ah, but it does because if you accept it, it's implied that you can then do
an OVER command on the article.

I'm not sure this is really all that important, but what I'm getting at
here is that a lot of this level of semantic detail has been left undefined
in Usenet standards in the past and it leads to the real-world compatibilty
problems like the article above which some guy posted but yet it didn't
make it to half the world and he probably never knew that and wonderd why
nobody replied to it.  It's the sloppieness of these standards that causes
this, and it seems from what you have have been saying that you guys have
removed a lot of the "slop" from NNTP already in your work.  It would be
nice if this level of "slop" could be removed as well.

The issue at hand here is also an NNTP issue and not a USEFOR issue because
it only applies to NNTP servers and how they parse headers and it should
apply to all NNTP servers no matter what type of article is being
transported (Usenet or local trouble tickets).

> We're adding a section to deal with some of this stuff; I think the best
> thing to do would be to finish that and then see what you think of the
> result.

For sure.  And I still need to read the stuff you have already done.  I'm
currous to see how (or if) you have addressed the data consistency issues
across commands.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20030403221943.709$xr@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <ylhe9j13ly.fsf@windlord.stanford.edu> <20030401000349.361$y1@newsreader.com> <ylk7eeyex4.fsf@windlord.stanford.edu> <20030401162641.836$2c@newsreader.com> <yl4r5h4d2g.fsf@windlord.stanford.edu> <20030402212438.619$bH@newsreader.com> <ylbrzo1f78.fsf@windlord.stanford.edu> <20030402220449.560$Fb@newsreader.com> <ylbrzo8ee7.fsf@windlord.stanford.edu> <20030402225212.984$Db@newsreader.com> <ylhe9g6wzv.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <20030403221943.709$xr@newsreader.com>
Subject: Re: Standardization of LIST OVERVIEW.FMT
Date: Fri, 04 Apr 2003 03:19:43 +0000
From: curt@kcwc.com (Curt Welch)
References: <ylhe9j13ly.fsf@windlord.stanford.edu> <20030401000349.361$y1@newsreader.com> <ylk7eeyex4.fsf@windlord.stanford.edu> <20030401162641.836$2c@newsreader.com> <yl4r5h4d2g.fsf@windlord.stanford.edu> <20030402212438.619$bH@newsreader.com> <ylbrzo1f78.fsf@windlord.stanford.edu> <20030402220449.560$Fb@newsreader.com> <ylbrzo8ee7.fsf@windlord.stanford.edu> <20030402225212.984$Db@newsreader.com> <ylhe9g6wzv.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com D0Fp_pKZfLN9O/gV1EPViClp/8Dnyp.BUZXZ8K=3.+_QKL
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 140