Article View: news.software.readers
Article #248593Re:  Jeff Relf has set a bad example.
From: Demented Traveler
Date: Tue, 14 Feb 2012 06:23
Date: Tue, 14 Feb 2012 06:23
115 lines
8151 bytes
8151 bytes
On 14/02/2012 12:47 AM, Russ Allbery wrote: > Demented Traveler<detravel@simic.net> writes: >> However, the message would have been injected with only one or the other >> of those sequences. If a message had one form and another had the other >> form, producing different normalized IDs, then they were >> separately-injected messages and are *supposed* to have distinct IDs! > > You're assuming that no one normalized the Unicode somewhere in the > network and that the only time the octet sequence associated with the > message ID was generated was when the article was injected. This is a > good assumption to make with some use cases with current software that > understand Unicode at all, but it's not an assumption that you're > generally supposed to make with Unicode-aware software. It's what would happen if we took the current situation, where servers either treat message-IDs as octet strings and don't change or interpret them at all or else reject some and treat the rest as opaque strings, and then added servers that flatten them into ASCII and don't otherwise manipulate them. > Consider, for example, the use case where a user re-enters a message ID to > try to find it (in a search by message ID interface in a news reader, for > example; many news readers have them and they can be quite useful). In > that case, you're almost guaranteed to get different normalization forms, > since you get whatever the local input method produces, which is going to > be whatever is convenient for it. So users search for a message ID and > can't find it even though, when looking at the message ID, it looks > exactly like what they typed. That's a UI/client-side issue rather than a network-meltdown-inducing issue, though. The problem we were trying to address was *solely* that servers might mangle the ID and spawn endlessly duplicating messages, or similar problems. But considering user searches for message IDs, where are they getting it in the first place? Probably by copy and paste from someplace (perhaps Google Groups). It's likely the already-normalized message ID and if it's not it'll be the original as injected, which will normalize to the same value. > Another example would be if a user cut and pastes a message ID into the > body of an article, to refer to another thread for example. It's totally > fair game for the article editor to use whatever Unicode form is the most > convenient for it, since Unicode says that all those representations of > the character are equivalent, so it may decide to normalize the article > into decomposed form (for example) because it's handy for some internal > reason. But now if you cut and paste that message ID, you don't find the > original article. That would be more of a problem. Perhaps there should be a normalization within Unicode. Again, though, it's a client-side issue that can't lead to a firehose of duplicate articles propagating among the servers. > Another place where Unicode can shift between normalization forms is in > gatewaying scenarios, where articles may pass through Unicode-aware > software that isn't netnews-aware and hence isn't obsessive about > preserving the exact octet form of the message ID. That seems less likely. Articles circulating among usenet servers would get the normalization outlined and nothing else. On the other hand, gatewaying outside of Usenet tends to happen at the edges: to web sites, or to email. When the door swings both ways it doesn't tend to do it automatically: an article is sent to someone as email, and if they reply by email that gets posted, say, but no article is converted to email, then back to netnews, and continues propagating. I expect, also, that even in the worst case (someplace has a full Usenet feed that takes articles, gateways them to something other than netnews, and sends them somewhere where they'll all be gatewayed back to Usenet, *and* instead of just copying them verbatim the whole way they do some kind of processing that changes Unicode characters among equivalent forms for some reason), there are finitely many equivalent Unicode strings for any given string. The maximum duplication may be larger than 1 or 2 copies per server but remains finite, averting your feared meltdown scenario. > All this is why every IETF protocol that supports Unicode defines a > normalization protocol that must be used before comparing input. And nothing stops this being done for netnews too. The only viable alternative may be to reject such message IDs outright and put up with Relf's whining. :) > This stuff is hard. People who haven't done serious work on character > sets (including myself prior to the USEFOR discussion when I had to go off > and study the issues) almost always drastically underestimate how complex > character set issues are. Blame the dumbass that decided to allow multiple equivalent ways to specify the same character in the first place. They should have probably not tried to be back-compatible with Latin-1 (just ASCII) and defined a character as an accent marker (0 for none, 1 for acute, 2 for grave, 3 for umlaut, 4 for the little ~ thing on Ns in Spanish, 5 for the little curlicue on Cs in French, and so forth) followed by a character code (itself wider than 8 bits, so the ten thousand symbols of Chinese for example could be accomodated). For convenient word alignment and to ensure plenty of room for expansion, one byte for accent and three for main glyph would probably have sufficed; that gives you 16,777,216 symbols (all the ideogrammic languages out there would still consume only a fraction of that, leaving plenty for when we encounter the Zurglebians and their million-character alphabet in 2147) and 256 different accents and valid combinations of accents (there probably aren't many of the latter). There'd only be one code for each symbol then, and 0 0 0 65 would still be unaccented capital A, so ASCII would still round-trip intact if you stripped the three high bytes. A standard compression scheme (patent-free LZSS?) could have been specified for making things more compact, and a standard way to convert to 7-bit forms (BinHex the compressed version?) could also have been specified. And a *single* such compression scheme and a *single* such conversion made canon. But again, it's a bit late for that now, just as it is to make message-IDs fully machine-generated by the injecting server hashing message bodies.
Technical Details
Message-ID:
<jhcukh$4fu$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!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mailReferences:
<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> <87hayum1kq.fsf@windlord.stanford.edu> <jhcrdq$ube$1@speranza.aioe.org> <87d39im0fd.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <jhcukh$4fu$1@speranza.aioe.org>
Subject: Re:  Jeff Relf has set a bad example.
Date: Tue, 14 Feb 2012 01:23:10 -0500
From: Demented Traveler <detravel@simic.net>
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> <87hayum1kq.fsf@windlord.stanford.edu> <jhcrdq$ube$1@speranza.aioe.org> <87d39im0fd.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!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail
Newsgroups: news.software.nntp,alt.free.newsservers,news.software.readers
Organization: Simics
Lines: 115
NNTP-Posting-Host: pey7czwR0gmv4Sv993NaqA.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX)
(CYGWIN_NT-6.0/1.5.22(0.156/4/2) (i686)) Hamster/2.0.2.2
X-Notice: Filtered by postfilter v. 0.8.2
X-Original-Bytes: 7908