Article View: news.software.nntp
Article #58032Re: Binary posting update, and test code
From: Joe Greco
Date: Tue, 09 Apr 2002 15:46
Date: Tue, 09 Apr 2002 15:46
111 lines
6227 bytes
6227 bytes
In news.software.nntp article <1018312952.449586@ok-corral.gunslinger.net>, Jeremy <jeremy@exit109.com> wrote: :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". :) No, it was debated at some length here, and the conclusion was that if it was going to be done, at least it should be done in a detectable way that the client could learn. I don't recall *ANYONE* arguing the opposite point, so it's agreed on by a heck of a lot more than just me. :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. I'd say that that's broken, possibly because Airnews has been doing rewrites forever, and perhaps they didn't participate in the discussion. The code in Diablo is a /result/ of the discussion, on the other hand. I suspect the code in INN which puts the MID in the 340 may be a result of it as well. I'm no fan of unnecessary brokenness, and in this case it seems clear that there's a relatively trivial workaround. :> 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. I don't think you need to pay attention to the "(forced)" tag; just use the supplied MID, if it's supplied. Pretty darn easy, although in this case I agree that it requires a second channel opened. Most of the Diablo servers and many of the INN servers on the planet do this; Airnews doesn't. I don't know about the Highwind stuff, but being owned by a USP, I expect they'd be persuaded to fall into line. :> 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. There seem to be relatively few cases where the client actually cares whether one identifier or another is being used; in both cases, they are identifiers, can be recorded, and whether you generate the MID via a call to "generate_random_mid()" or "ask_server_for_mid()", you end up with an MID. One of the specific legitimate cases is "<cancel.", where a standard requires the use of a specific MID. :> 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. Thank you :-) ... JG
Technical Details
Message-ID:
<3cb30cc7$0$80227$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!newsfeed.stanford.edu!news.ems.psu.edu!news.cse.psu.edu!uwm.edu!newsengine.sol.net!posts0.nwblwi.newsops.execpc.com!posts.news.sol.net!reader0-nwblwi.news.sol.net!not-for-mailReferences:
<1018169279.730816@ok-corral.gunslinger.net> <3cb1cef9$0$82600$39de8f09@news.sol.net> <1018312952.449586@ok-corral.gunslinger.net>Show Full Headers
Complete Article Headers
Message-ID: <3cb30cc7$0$80227$39de8f09@news.sol.net> Subject: Re: Binary posting update, and test code Date: Tue, 09 Apr 2002 15:46:15 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <1018169279.730816@ok-corral.gunslinger.net> <3cb1cef9$0$82600$39de8f09@news.sol.net> <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!newsfeed.stanford.edu!news.ems.psu.edu!news.cse.psu.edu!uwm.edu!newsengine.sol.net!posts0.nwblwi.newsops.execpc.com!posts.news.sol.net!reader0-nwblwi.news.sol.net!not-for-mail Newsgroups: news.software.nntp Organization: sol.net Network Services - Milwaukee, WI X-Newsreader: trn 4.0-test75 (Feb 13, 2001) Originator: jgreco@terminus.sol.net (Joe Greco) Lines: 110 NNTP-Posting-Host: 0389b62e.news.sol.net X-Trace: DXC=f>?M`@XMU7c[iSJ:AD_;cnH=;MPX8:F;d6iKD3LkWifa<co?YYS=YjgLli`8bNX[RhiSnTZ@jd:`gI<FBno:X9E` X-Complaints-To: abuse@ns.sol.net