🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #248586

Re:  Jeff Relf has set a bad example.

#248586
From: Russ Allbery
Date: Tue, 14 Feb 2012 05:22
48 lines
4084 bytes
Demented Traveler <detravel@simic.net> writes:
> On 13/02/2012 11:57 PM, Russ Allbery wrote:

>> The reason why INN is even more conservative about Message-ID is
>> because Message-ID is one of the small handful of headers that's
>> critical for the netnews flood-fill algorithm to work properly and not
>> create pathological meltdown situations, such as endless article
>> duplication.  So INN is particularly picky about what message IDs it's
>> willing to deal with.

> It occurs to me that this, and similar, problems could always be solved
> by forcing every received message-ID into a specific format. (Ex: strip
> the high bit and change any control character to a ? character.) The key
> is for this transformation to be idempotent. Any article will end up
> with at most two copies this way (one with an initial, screwy message-ID
> and one with the normalized version) and only one on a server that does
> normalization.

This is a special case of the general idea that one can deal with
character set issues by normalizing before comparing.  Your proposed
normalization function has the definite advantage of being fast (although
no canonicalization is as fast as not having to do it), but has the
disadvantage that it will smash multiple distinct message IDs to the same
value.  Admittedly, it only does this with message IDs that are currently
invalid, so it's not a bad idea, but the failure mode with existing
servers that do octet comparisons is that a server using this algorithm
will pick one of multiple articles with message IDs mapping to the same
normalized form essentially at "random" and then reject all of the others.

That particular failure mode is one that historically we've gone to some
lengths to avoid, preferring to reject articles instead, because it can be
really confusing for users.  It looks rather similar to what happens if
you have multiple articles circulating that have the same message ID but
different contents.

Also, note that your proposed normalization function still doesn't deal
with Unicode properly.  Semantically identical message IDs could still end
up with different normalized forms.  The sequences e with an acute accent
(U+00E9) and e followed by combining accent acute (U+0065 U+0301) will map
to different normalized forms, but are semantically the same character
and, per the Unicode standard, are generally supposed to be treated as
equivalent.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87hayum1kq.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!news.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
References: <slrnjikokv.3g8.steve@news.mixmin.net> <jhb1r2$fqd$1@news.trigofacile.com> <Jeff-Relf.Me@2012_Feb.13^11.35.am> <jhbr4j$ddu$1@news.trigofacile.com> <jhcb00$sks$1@pcls6.std.com> <Jeff-Relf.Me@2012_Feb.13^5.53.pm> <Z@Z> <87lio6m2q9.fsf@windlord.stanford.edu> <jhcqa9$s64$1@speranza.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <87hayum1kq.fsf@windlord.stanford.edu>
Subject: Re:  Jeff Relf has set a bad example.
Date: Mon, 13 Feb 2012 21:22:13 -0800
From: Russ Allbery <rra@stanford.edu>
References: <slrnjikokv.3g8.steve@news.mixmin.net> <jhb1r2$fqd$1@news.trigofacile.com> <Jeff-Relf.Me@2012_Feb.13^11.35.am> <jhbr4j$ddu$1@news.trigofacile.com> <jhcb00$sks$1@pcls6.std.com> <Jeff-Relf.Me@2012_Feb.13^5.53.pm> <Z@Z> <87lio6m2q9.fsf@windlord.stanford.edu> <jhcqa9$s64$1@speranza.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!news.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
Newsgroups: news.software.nntp,alt.free.newsservers,news.software.readers
Organization: The Eyrie
Lines: 48
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: usenet-its.stanford.edu 1329196935 3076 171.67.225.134 (14 Feb 2012
X-Complaints-To: news@usenet-its.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
Cancel-Lock: sha1:R18/csYx4S4aesxESSfhqvMt/C4=
X-Original-Bytes: 3984