πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86764

Re: Unicode in USENET article headers

#86764
From: Michael Baeuerle
Date: Fri, 08 May 2015 15:49
101 lines
5256 bytes
Julien Γ‰LIE wrote:
> Hi Michael,
> 
> > Current situation:
> > RFC5536 [1] define the whole header as US-ASCII encoded. If an article
> > header should contain something else, MIME (RFC2047 [2]) transfer
> > encoding is required to produce a standard compliant article.
> > 
> > Problem:
> > MIME encoded words are ugly and complicate to handle. People want an
> > easier way to implement agents.
> 
> Did you see server-side issues during your tests against INN as far as 
> Unicode headers are concerned?  (that is to say articles that were 
> rejected or not properly processed)
> 
> If we keep newsgroup names and message-IDs in US-ASCII, should 
> something be modified to properly handle other fields or everything is 
> already fine?
> That would be a first step.

INN seem to work fine, even with the Unicode groups. Only the Message-ID
was rejected (by intent as you have written).
Posting to the different canonically equivalent groups obviously only
worked because no normalization was applied by any agent (against the
recommendation of RFC5198). But group names are for humans, so it would
be nonsense anyway when different groups look the same. Normalization
should be mandatory if such groupnames are allowed as Joshua stated in
<news:mign6b$cf7$1@dont-email.me>.

============================

The RFC4643 authentication problem was a bit subtle:
My NNTP driver normally do client to server authentication only after
the server request it via a 480 response. Because your server advertise
no POST capability before authentication, the driver rejected the POST
command before execution. Therefore it received no 480 response and
never tried to authenticate.

With my news provider Individual.NET this can't happen:
|
| [Using NNTP protocol driver]
| [=> Connect to news.individual.de:nntps]
| [Established encrypted connection using TLSv1.2 protocol with cipher suite DHE-RSA-AES256-GCM-SHA384]
| [<= Expect X509 certificate]
| Certificate:
| [...]
| [Server certificate verification successful]
| [<=] 200 The server welcomes [...]. Authorization required for reading and posting.
| [=>] CAPABILITIES
| [<=] 500 What?
| [Switch to NNTP V1 (RFC977) mode]
| [=>] GROUP comp.periphs.scsi
| [<=] 480 Authentication required.
| [=>] AUTHINFO USER ********
| [<=] 381 PASS required
| [=>] AUTHINFO PASS ********
| [<=] 281 Authentication accepted. [...]
| [=>] GROUP comp.periphs.scsi
| [<=] 211 39 257397 257435 comp.periphs.scsi
| [...]

Already the group selection is rejected here. The 480 is received and
the authentication is done. Because NNTP is used in V1 mode by the
driver here, the POST capability is always assumed to be present. Even
if only posting would require authentication, the 480 would be received
for POST and the authentication would work too.

Immediate authentication is implemented in the driver as an option too,
but is not the default, because RFC4643 specify:
| 
| Servers SHOULD accept such unsolicited authentication requests.
          ^^^^^^
In other words: Only "auth after 480" is mandatory and a server is
allowed to reject an unsolicited authentication.
Maybe I should nevertheless switch the default setting for the NNTP
driver?

==========================

BTW: Some statistics for de.* last year from <news:de.admin.lists>:
| 
| ---------------------------------------------------------
| Percent Count Type
| ---------------------------------------------------------
| 32.29  17014  individual.net
| 13.37   7043  news.albasani.net
| 10.81   5694  news.eternal-september.org
|  7.80   4108  postnews.google.com
|  7.66   4036  news.arcor.de.POSTED
|  3.14   1652  news.tota-refugium.de
|  2.95   1555  news.netfront.net
|  2.41   1269  news.online.de
|  2.15   1132  aioe.org

Individual runs INN 2.3: <http://news.individual.de/server.php>
Albasani runs INN 2.5.3 and Eternal september INN 2.6.

Looks like that 2014 still 1/3 of the articles in the german hierarchy
were still posted via NNTP V1. The backward compatibility come to mind
again.
Technical Details
Message-ID: <AABVTMECx4oAAAxO.A1.flnews@WStation3.stz-e.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.20150601.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <AABVSz44XaQAABwE.A1.flnews@WStation3.stz-e.de> <mii6oa$rsc$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <AABVTMECx4oAAAxO.A1.flnews@WStation3.stz-e.de>
Subject: Re: Unicode in USENET article headers
Date: Fri, 08 May 2015 15:49:52 +0000
From: Michael Baeuerle <michael.baeuerle@stz-e.de>
References: <AABVSz44XaQAABwE.A1.flnews@WStation3.stz-e.de> <mii6oa$rsc$1@news.trigofacile.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.20150601.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 101
Reply-To: Michael Baeuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net mXoxAw2wnLMVyWXQu+Dszg8RC8iosah51fWHwBROq2lnM2Au5J
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:+XmXpNB4X+Yw3qFOtHtXDzKrx5k=
 sha1:Cpvxs/aN+BByesfyrWM0OAG04/w=
Injection-Date: 8 May 2015 15:49:52 -0000
User-Agent: flnews/0.11pre16 (for GNU/Linux)