🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89846

Re: MAXARTNUM extension

#89846
From: Franck
Date: Wed, 14 Dec 2022 06:41
82 lines
4523 bytes
Bonjour Julien,

>> Xref: dev.spitfire-nntp.fr local.test.maxartnum:MAXARTNUM
> That's why I would tend to prefer 0.

Fine for me.

> If anyone has another point of view about it, please tell us!

> Meanwhile, here is what I have came up with as for that header field.
> I believe it is the most problematic point to discuss in the whole 
> MAXARTNUM specification.  Should we really enforce something about Xref, 
> and what exactly?

> Handling the Xref Header Field
> ------------------------------

In any case, I understood everything without rereading :)

> ** Do we really need to have that requirement?

If we limit numbers for the rest, I see no good reason to not do the 
same with xref header. I prefer to do it or to remove the entire header 
(but we lost the corrects values in case of crossposts).

> Suppose an article is crossposted in group1, with article number 1, and 
> group2, with article number 2^40...  A large number will be present in 
> the Xref header field.  It then means that the news server always has to 
> check the contents of the Xref header field and do an appropriate change 
> if needed.  It seems overkill and time-consuming!

I don't know how Xref is generated by INN but for SNS the check on the 
Xref header is very, very, very simple.

In Xref, I take the values of each numbers after ':', if > MAXARTNUM, I 
replace it to 0. Done. All others values are kept untouched.

Not overkilling or time-consumming at all.

Crossposted article looks like :
Xref: dev.spitfire-nntp.fr local.test.maxartnum:0 local.test:32

> I am unsure we want to add that bargain to all compliant implementations.

Servers MAY but are not required to.

> Is it sure some news clients may break on invalid Xref header fields? (I 
> am under the impression that client implementations are robust to the 
> variety of invalid headers there are in the wide, but I may be wrong...)

To remove the doubt that you may be wrong, why not to set it to "0"? :)

> At least, I've checked trn source code (bits.c).  It parses the number 
> after ":" in Xref with atol(), so it will get at most INT_MAX and 
> normally won't crash.  (It should of course be tested; that's just an 
> assumption.)

Same as previous.
"0" or remove the header.

> We can imagine that implementations don't do any checks when they know 
> they do not carry any newsgroup with large article numbers, and begin 
> doing such checks and alterations otherwise.

This is how SNS already works.
There is no check when no newsgroup carry large numbers and some checks 
(number/last/count/xref) only on newsgroups that carry large numbers.

>> C: MAXARTNUM 0
>> S: 202 18446744073709551616 is our mutual maximum article number. <= 
>> The maximum the server can handle.
> Yes.

Ok, to date, MAXARTNUM is finished for me.

I will put it online this evening or tomorow, so we can work with a 
"live" extension that can be updated by your "specification".

Have nice day,
Franck

Technical Details
Message-ID: <BPUK7gOKnO0@news.spitfire-nntp.fr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <B6X9nw7kgEM@news.spitfire-nntp.fr> <tn88mm$2pnad$1@news.trigofacile.com> <A+JThm7d54c@news.spitfire-nntp.fr> <tnaueg$2rcn3$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <BPUK7gOKnO0@news.spitfire-nntp.fr>
Subject: Re: MAXARTNUM extension
Date: Wed, 14 Dec 2022 07:41:55 +0100
From: Franck <Em@il.invalid>
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <B6X9nw7kgEM@news.spitfire-nntp.fr> <tn88mm$2pnad$1@news.trigofacile.com> <A+JThm7d54c@news.spitfire-nntp.fr> <tnaueg$2rcn3$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1
Newsgroups: news.software.nntp
Content-Language: fr
In-Reply-To: <tnaueg$2rcn3$1@news.trigofacile.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 14 Dec 2022 06:41:56 +0000 (UTC)
Injection-Info: news.spitfire-nntp.fr; posting-host="GO2DhkxMABzdaU_6eOEUTCg4QxCkqyvGHE7Z_tszSKk3GHnEpzu7CD39RkQN3JZg7i7qxM74mPFav4C60ss0sA=="; posting-account="nbSz7fdg0G0BF0sJ9gSEGdFTX9tLEa7Xc64Xxrt46nM="; logging-data="C639970336ad4b07b"; mail-complaints-to="abuse@spitfire-nntp.fr"
Cancel-Lock: sha1:CBA4Zyu1+xK429GAGm88ZOLfORA= sha256:HbV0iW+5GcIpvPzXmb7uu8CRWfO9K/VDX5K0CanfQQ8= sha1:kN0zi6FLqFUyodalpFqzkRr0/ek= sha256:6FGO/de91VtB1dwHERHi58pnkgULyjuAISQHFw466dM=
Organization: Home of Spitfire News Server, Montpellier (France).
Lines: 82