🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #58016

Re: Binary posting update, and test code

#58016
From: Jeremy
Date: Tue, 09 Apr 2002 00:42
79 lines
4195 bytes
Joe Greco <jgreco@ns.sol.net> wrote:

> With respect to the following:
> 
>> A very small number of servers do not allow client-supplied
>> message-ids. I am aware of two such servers, and at least one of them
>> does not even inform the client of the message-id it has decided to
>> use for the post (it just silently changes a client-supplied id). This
>> is unfortunate behavior which servers should not engage in (for
>> reasons which go way beyond this specification), but unless they
>> change, those servers would simply be considered unsuitable for
>> posting of images. Even more unfortunately, there is no way for a
>> client to automatically know that a server is going to discard
>> client-supplied ids.
> 
> We do local rewrites; it's a built-in Diablo feature.  It helps to protect
> against cancel attacks and a variety of other BS.  It's a great feature
> that has kept my servers Hipcrime-free.

As I've said before, I'm not worried about Joe Greco doing this; I'm
more concerned about Joe Schmoe saying "well, Joe Greco does it, and
he knows his stuff, so it must be a good idea."  And it is most
certainly not a good idea.

That it causes headaches for things like this is only one reason it's
a bad idea.

> With the agreed-upon standard for forced rewriting, it works something
> like this:
> 
> 200 reader0-nwblwi.news.sol.net NNRP Service Ready - news@ns.sol.net
> (posting ok).
> POST
> 340 345 <3cb1cc30$0$80225$39de8f09@news.sol.net> (forced)

Well, for values of "agreed-upon" meaning "agreed by you". :)
Unfortunately, there is no way within the protocol, either standardized
or in best-current-practice, to inform the client that it won't be
allowed to supply a message-id.  Your POST reply says "forced", but
the one at Airnews doesn't -- and doesn't even give the intended
message-id, either.

> Now, the only tricky part for your case is that you're creating
> cross-linked Message-ID's, so you need to know both "in advance".  I'd
> say that opening a second channel to POST would be acceptable; you send
> POST on both channels, and there's your MID's.  Then you generate the
> posts and stuff 'em at the server.

That's a good workaround, I'll stick it somewhere on my page.

> You can even detect that you need to do this, because the server tells
> you so, when you initiate the first POST.

Yours does... Airnews doesn't.

> Diablo provides the ID either way.  Modern versions of INN also provide 
> a recommended ID, and presumably could be altered to force an ID if the
> option doesn't exist.  So most modern servers appear to provide this for
> the client.  There's no good reason to ignore it just because you do not
> like the idea of rewrites.

I would recommend that a client Pay Attention to the recommended ID, but
I don't think it can be required.

> If the server fails to provide an ID as part of the 340, then of course 
> making up one makes sense, and I don't mind saying that servers which
> rewrite without letting the client know what the ID is can simply lose.

Yes.

> So your paragraph above is heinously wrong.  :-)  It's technically possible
> and hardly difficult to do, so a standard would be well-advised to support
> this, since a de facto method for doing it already exists.

I'll include it.

-- 
Jeremy  |  jeremy@exit109.com
Technical Details
Message-ID: <1018312952.449586@ok-corral.gunslinger.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.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!saloon!newsbastard
References: <1018169279.730816@ok-corral.gunslinger.net> <3cb1cef9$0$82600$39de8f09@news.sol.net>

Show Full Headers
Complete Article Headers
Message-ID: <1018312952.449586@ok-corral.gunslinger.net>
Subject: Re: Binary posting update, and test code
Date: Tue, 09 Apr 2002 00:42:32 +0000
From: Jeremy <jeremy@exit109.com>
References: <1018169279.730816@ok-corral.gunslinger.net> <3cb1cef9$0$82600$39de8f09@news.sol.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.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!saloon!newsbastard
Newsgroups: news.software.nntp
Organization: There Is No Organization
Lines: 78
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
X-Meow: Meow