🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #52412

Re: Replaces

#52412
From: Uwe Ohse
Date: Sat, 19 May 2001 20:51
222 lines
9767 bytes
Curt Welch wrote:

>The whole concept behind the Replaces: header is absurd to me.  It's a
>complete waste of time an energy.  It's a complex fix for a non-problem
>which is very likely to create far more problems than it fixes.

i can't see this as a non-problem. I'm tired of seeing unchanged FAQs
every two weeks, and daily pointers to FAQs every day. Killfiles aren't
a solution as one doesn't see any updates ...


>After creating a nice "supersede" function in my newsreader which makes it
>easy to update and repost (with a Supersede: header) a revised version of
>an article, I've now come to the conclusion it should never be used on
>Usenet.

And? What's your point? There's more than usenet. There are local
discussion networks using usenet-like technology where this kind
of stuff just makes lots and lots of sense. 
There are even places on usenet where this is useful - not to change
stpid into stupid, but when you made a typo in some article which
inverts it's sense (think of mathematics and engineering).


>If you post an article and make a silly mistake (like a typo or spelling
>error), you might be tempted to use a supersede function to "fix" it.  But

If it's important to you, why not? Most people will not do it, out
of laziness, anyway.


>that's a complete waste of bandwidth.  If you care enough about not looking

Posters can abuse band-width _easier_ anyway.


>silly, learn to proof read before you post instead of after you post.  We
>do NOT want to encourage users to revise there posts on a regular basis.

Speak for yourself. A GNKSA addition "make it possibly, but don't make
it easy" seems more appropriate to me.


>If you make an important mistake, like a typo in a URL you were trying to
>give out, or a date of an event, or phone number or address, then the best
>thing to do is to post a simple follow-up and point out your mistake.

That just doesn't work. The classical news users will see the
correction this way, but those using a service like groups.google.com
will not.
Yes, obviously we need both.


>We have the web now.  We don't need to use Usenet as a document
>distribution system any more.  When will people figure that out!!!

It's not related to documents.


>solutions to that issue, but the solutions tend to open the door to more
>DOS attacks (i.e. floods of digitally signed articles which suck up tons of
>CPU time).

There's a solution to this problem.
1. Check any locally generated cancel message, and add a header 
   to them ("X-Cancel: user-generated; signature" or any other 
   reason).
   Don't forward locally generated (posted) forged cancels.
2. Only delete messages on behalf of a feed if the X-Cancel header 
   matches accepted categories and you trust that feed to check cancels.
3. Forward any cancel from your feeds if you like, or limit that
   to trusted feeds. [Note: you might forward cancel messages 
   without X-Cancel header - it doesn't matter]
4. Every now and when, if CPU permits more often, check a random cancel
   from the trusted feeds. If it fails then either automagically
   distrust the feed or alert the administrator.
I use something like this on a smaller network (although it's not
news but mail related, and the important thing isn't the header
but information in the body. Works fine - since they definitely
throw out anybody who tries to forge).

There's no need to check every article. There's _really_ no need
to do so, as security doesn't need to be perfect if the fine for
a crime is high enough.
You don't need to catch every forged cancel everywhere on usenet,
you just need to make sure that it may be found in a normal case
and that the penalty for getting caught is high enough, and that
someone who wants to check whether a cancel was forged can do so.
A penalty may be to not accept cancels anymore or to not feed
it cancels anymore, or to not talk to it anymore.

Checkgroups, mass cancels, newgroups and rmgroups can be treated
equally.


>Remeber when control messages caused shells to be forked off?

Bad ideas never die, they'll be laughed about eternally.


>Usenet by it's very nature is not a place where authentication is expected,
>or desired.

Once again: speak for yourself.


>Trying to support complex "update" functions is going to cause far more
>confusion than it will ever fix.

complex? where?


>Followup-To: header is for.  Many don't even know what a Message-ID is and
>why it's so important to Usenet.

Why should they know? That's the job of a news reading agent, not the
user.


>So now they are supposed to comprehend the subtle difference between 
>a "revise" and a "replace" and a "repost" and

Are you saying that no new features shall be invented because someone
might misunderstand them? 


>BTW, am I the only one that feels they got "replace" and "revise"
>backwards?  And did I miss something or isn't "revise" and "repost" exactly

No (though i'm not a native speaker).


>the same in terms of what it does?  So the logic in having two commands
>which do the same thing is what exactly?  Why do I feel the people that
>created this part of USEFOR have never tried to write a news server?

They may have more experience than you think. This kind of stuff 
isn't so hard to do in the servers, and it doesn't have much impact
on performance.


>Then there's this message-id version stuff.  Are they serious?  First off,

This kind of thing can be implemented without too much trouble.
When a message with an ID abc\$v=(\d+)\@def comes then 
0. if the number is smaller than the largest known number for
   the base msg-id ("abc@def") then throw the article away.
   During this process you gather some information.
1. store it as usual.
2. put "abc$v=NNN@def" into the history (if you have something
   like a separate history).
3. put an entry "abc@def -> abc$v=NNN@def" (or a pointer to the
   article if the articles is stored at a fixed place on the 
   medium) into a database, which may even be the history, overwriting
   an old entry (see 0).
4. remove all replaced message-ids from the history and the
   message database (don't whine about performance here, you
   would have to deal with separate cancel messages otherwise).
1,2 and 4 (supersedes) will have to be done anyway. 0 and 3
are new but i don't think they are that costly.

On the NNTP side: The dupe check isn't affected, only the reading
functions need to do more work (and at least for me the cost isn't
that high, two page faults, on lseek and two reads).

The overview stuff can be hairy, if the overview contains direct
references to the articles place on the storage medium, but then
again: if you do this you are likely to have code to deal with
it anyway (if you use a cycbuff style message storage).
If the new article version changes some headers stored in the 
overview then the author just loses.


>news: URLs are useless outside of Usenet because
>most the time they won't work when clicked on.  Either the browser has no

Yes, news URL are misdesigned. nntp URLs with message-IDs would rock,
though.


>by Message-Id.  When you are transporting articles, you don't want to ask
>for article v=7 and be given v=8.  If v=7 isn't there, you need to be told
>v=7 isn't there.  Don't break this.

Hmmm .... the alternative to getting v=8 is to not get it, right?
What's so harmful about storing v=8 thinking that the ID is v=7?
Does this break existing code?


>If you want the generic document look-up function, forget the stupid
>version stuff.  Add a "Document-ID:" header to the article which defines a

This will not do the same. For example old clients will not benefit
from it. 


>"fixed" news Message-ID, publish the Document-ID.  Isn't that easier to
>implement than all that version crap yet produces the same results and
>doesn't break anything?

It just doesn't work.  Message-ID versions work if the server supports
them. Document-ID needs modifications to clients and servers, and
costs the same on the server side.


>To me, all this crap is just a great example of creeping featurism.  The
>art of good design isn't knowing what to put in, it's knowing what to take
>out.

Document-ID in this case. Sorry.
btw: usefor is not about good design. It's about living with a broken
situation.

On the first glance my reaction about the msg-id version and replaces
stuff was quite similar to yours. I later changed my point of view
when i saw that the msg-id version handling doesn't cost me more
than 100 lines of code in total.
Now, if i only could be sure that i understood it correctly (but
i've got this problem with quite a few parts of usefor).

Regards, Uwe
Technical Details
Message-ID: <20010519205152.19303.1@serak.ohse.de>
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!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.csl-gmbh.net!serak.ohse.de!not-for-mail
References: <UKbN6.7751$6j3.644413@www.newsranger.com> <WAhN6.48$9x.484@www.newsranger.com> <ylr8xmw2xi.fsf@windlord.stanford.edu> <20010519015029.778$rP@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <20010519205152.19303.1@serak.ohse.de>
Subject: Re: Replaces
Date: Sat, 19 May 2001 20:51:52 -0000
From: uwe@ohse.de (Uwe Ohse)
References: <UKbN6.7751$6j3.644413@www.newsranger.com> <WAhN6.48$9x.484@www.newsranger.com> <ylr8xmw2xi.fsf@windlord.stanford.edu> <20010519015029.778$rP@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!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.csl-gmbh.net!serak.ohse.de!not-for-mail
Newsgroups: news.software.nntp
Organization: private site, Duisburg
X-Newsreader: trn 4.0-test70 (17 January 1999)
Originator: uwe@fjoras.UUCP (Uwe Ohse)
X-Posters-Path: not-for-mail
Lines: 221