
From ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org  Tue Apr 21 17:55:06 2009
Return-Path: <ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org>
X-Original-To: ietfarch-nntpext-archive@core3.amsl.com
Delivered-To: ietfarch-nntpext-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3432928C372 for <ietfarch-nntpext-archive@core3.amsl.com>; Tue, 21 Apr 2009 17:55:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.299
X-Spam-Level: 
X-Spam-Status: No, score=-6.299 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LJK5T5PXe7C8 for <ietfarch-nntpext-archive@core3.amsl.com>; Tue, 21 Apr 2009 17:55:05 -0700 (PDT)
Received: from smtp2.stanford.edu (smtp2.Stanford.EDU [171.67.219.82]) by core3.amsl.com (Postfix) with ESMTP id 279DC28C36F for <nntpext-archive@ietf.org>; Tue, 21 Apr 2009 17:55:01 -0700 (PDT)
Received: from smtp2.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id DE79651D228 for <nntpext-archive@ietf.org>; Tue, 21 Apr 2009 17:56:18 -0700 (PDT)
Received: from news.eyrie.org (lothlorien.Stanford.EDU [171.67.18.78]) by smtp2.stanford.edu (Postfix) with SMTP id 570B151D10C for <nntpext-archive@ietf.org>; Tue, 21 Apr 2009 17:56:17 -0700 (PDT)
Received: (qmail 9200 invoked by uid 64013); 18 Apr 2009 09:09:00 -0000
Received: from localhost.stanford.edu (HELO lothlorien.stanford.edu) (127.0.0.1) by localhost.stanford.edu with SMTP; 18 Apr 2009 09:09:00 -0000
Delivered-To: mailman-ietf-nntp@lists.eyrie.org
Received: (qmail 9189 invoked by uid 64013); 18 Apr 2009 09:08:57 -0000
Received: from 82-68-24-146.dsl.in-addr.zen.co.uk (HELO nyder.davros.org) (82.68.24.146) by lothlorien.stanford.edu with SMTP; 18 Apr 2009 09:08:57 -0000
Received: from nyder.davros.org (localhost.davros.org [127.0.0.1]) by nyder.davros.org (8.13.3/8.13.3) with ESMTP id n3I98tK7078658; Sat, 18 Apr 2009 10:08:55 +0100 (BST) (envelope-from clive@nyder.davros.org)
Received: (from clive@localhost) by nyder.davros.org (8.13.3/8.13.3/Submit) id n3I98sFs078657; Sat, 18 Apr 2009 10:08:54 +0100 (BST) (envelope-from clive)
Date: Sat, 18 Apr 2009 10:08:54 +0100
From: "Clive D.W. Feather" <clive@davros.org>
To: Julien =?iso-8859-1?Q?=C9LIE?= <julien@trigofacile.com>
Message-ID: <20090418090854.GU1489@davros.org>
References: <2B10F280133C44FB9A3DE39FE65FFB83@Iulius>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <2B10F280133C44FB9A3DE39FE65FFB83@Iulius>
User-Agent: Mutt/1.4.2.3i
Cc: Russ Allbery <rra@stanford.edu>, ietf-nntp@lists.eyrie.org
Subject: [NNTP] Re: Issue with IHAVE in RFC
X-BeenThere: ietf-nntp@lists.eyrie.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NNTP protocol discussion <ietf-nntp.lists.eyrie.org>
List-Unsubscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=unsubscribe>
List-Archive: <http://lists.eyrie.org/pipermail/ietf-nntp>
List-Post: <mailto:ietf-nntp@lists.eyrie.org>
List-Help: <mailto:ietf-nntp-request@lists.eyrie.org?subject=help>
List-Subscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=subscribe>
Sender: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org
Errors-To: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org

Julien LIE said:
> I believe there is a major issue with the handling of the 501 answer code.
> 
> According to RFC 3977, the following schema is correct:
> 
>  [S] IHAVE <a b c
>  [C] 501 Bad Message-ID

Correct.

> However, it breaks at least INN and Diablo:  upon receiving 501, their
> feeder will block, disconnect, reconnect and send again the same IHAVE...

Then they are wrong.

> Thus, implementing RFC 3977 breaks current implementations.

I disagree. If you look at RFC 977, section 2.4.3, you will see the same
rule: a syntax error in *any* command results in a 501.

> Of course, the same goes if I send a message-ID whose length is 251
> (which could more likely occur than "<a b c").

Correct.

> As for IHAVE, the only possible answer here is 435; on no account
> should 501 be sent.

I disagree. 435 means "not wanted", not "invalid syntax".

> It appears that a few commands require that no check is done on their
> syntax, and it is not mentioned in RFC 3977.

Nor is it mentioned in RFC 977, nor was it *EVER* mentioned in many years
of discussion leading up to 3977.

> A discussion on news.software.nntp led to the fact that 501 is
> not a valid answer.  See for instance 
> <20090410161411.260$qR@newsreader.com>.

I will look at that.

> Do you have an idea of what it is possible to do as for that issue?

Not easily. You need to decide if you want to work with broken software.

-- 
Clive D.W. Feather          | If you lie to the compiler,
Email: clive@davros.org     | it will get its revenge.
Web: http://www.davros.org  |   - Henry Spencer
Mobile: +44 7973 377646

From ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org  Tue Apr 21 17:55:09 2009
Return-Path: <ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org>
X-Original-To: ietfarch-nntpext-archive@core3.amsl.com
Delivered-To: ietfarch-nntpext-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E38DE28C372 for <ietfarch-nntpext-archive@core3.amsl.com>; Tue, 21 Apr 2009 17:55:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.12
X-Spam-Level: 
X-Spam-Status: No, score=-2.12 tagged_above=-999 required=5 tests=[AWL=2.319, BAYES_20=-0.74, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_MED=-4, STOX_REPLY_TYPE=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IxfsZULfDhAl for <ietfarch-nntpext-archive@core3.amsl.com>; Tue, 21 Apr 2009 17:55:07 -0700 (PDT)
Received: from smtp5.stanford.edu (smtp5.Stanford.EDU [171.67.219.85]) by core3.amsl.com (Postfix) with ESMTP id 9E5FE28C36F for <nntpext-archive@ietf.org>; Tue, 21 Apr 2009 17:55:07 -0700 (PDT)
Received: from smtp5.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id BFFCC3B71BE for <nntpext-archive@ietf.org>; Tue, 21 Apr 2009 17:56:24 -0700 (PDT)
Received: from news.eyrie.org (lothlorien.Stanford.EDU [171.67.18.78]) by smtp5.stanford.edu (Postfix) with SMTP id 8D7043B71B7 for <nntpext-archive@ietf.org>; Tue, 21 Apr 2009 17:56:24 -0700 (PDT)
Received: (qmail 11114 invoked by uid 64013); 18 Apr 2009 10:33:08 -0000
Received: from localhost.stanford.edu (HELO lothlorien.stanford.edu) (127.0.0.1) by localhost.stanford.edu with SMTP; 18 Apr 2009 10:33:08 -0000
Delivered-To: mailman-ietf-nntp@lists.eyrie.org
Received: (qmail 11103 invoked by uid 64013); 18 Apr 2009 10:33:06 -0000
Received: from 2.mail-out.ovh.net (91.121.26.226) by lothlorien.stanford.edu with SMTP; 18 Apr 2009 10:33:06 -0000
Received: (qmail 27282 invoked by uid 503); 18 Apr 2009 11:06:38 -0000
Received: from b7.ovh.net (HELO mail185.ha.ovh.net) (213.186.33.57) by 2.mail-out.ovh.net with SMTP; 18 Apr 2009 11:06:38 -0000
Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 18 Apr 2009 10:32:40 -0000
Received: from aaubervilliers-151-1-59-169.w83-112.abo.wanadoo.fr (HELO Iulius) (julien%trigofacile.com@83.112.154.169) by ns0.ovh.net with SMTP; 18 Apr 2009 10:32:37 -0000
Message-ID: <61581C346E3248039BDE727CAC172169@Iulius>
From: =?iso-8859-1?Q?Julien_=C9LIE?= <julien@trigofacile.com>
To: <ietf-nntp@lists.eyrie.org>
References: <2B10F280133C44FB9A3DE39FE65FFB83@Iulius> <20090418090854.GU1489@davros.org>
In-Reply-To: <20090418090854.GU1489@davros.org>
Date: Sat, 18 Apr 2009 12:30:50 +0200
Organization: TrigoFACILE -- http://www.trigofacile.com/
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
X-Ovh-Tracer-Id: 12413327949508574599
X-Ovh-Remote: 83.112.154.169 (aaubervilliers-151-1-59-169.w83-112.abo.wanadoo.fr)
X-Ovh-Local: 213.186.33.20 (ns0.ovh.net)
X-Spam-Check: DONE|H 0.5/N
Cc: "Clive D.W. Feather" <clive@davros.org>
Subject: [NNTP] Re: Issue with IHAVE in RFC
X-BeenThere: ietf-nntp@lists.eyrie.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NNTP protocol discussion <ietf-nntp.lists.eyrie.org>
List-Unsubscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=unsubscribe>
List-Archive: <http://lists.eyrie.org/pipermail/ietf-nntp>
List-Post: <mailto:ietf-nntp@lists.eyrie.org>
List-Help: <mailto:ietf-nntp-request@lists.eyrie.org?subject=help>
List-Subscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=subscribe>
Sender: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org
Errors-To: ietf-nntp-bounces-nntpext-archive=ietf.org@lists.eyrie.org

Hi Clive,

>> Thus, implementing RFC 3977 breaks current implementations.
>
> I disagree. If you look at RFC 977, section 2.4.3, you will see the same
> rule: a syntax error in *any* command results in a 501.

Sure, but RFC 977 defines no syntax for the arguments.  It is difficult
to do something accurate with that.
It even does not state whether quoted message-IDs like <"a b c"@domain>
are valid or not (RFC 977 predates RFC 1036, and such quoted message-IDs
are defined in RFC 822).

RFC 3977 explicitly excludes spaces, which was not the case before.

Note that RFC 977 defines commands in 2.3 as a command word followed
by one or more parameters.  And responses in 2.4.2 as a status code
followed by one or more parameters which cannot contain spaces!

I now understand why DNEWS answers only with the first parameter:

CHECK a b
438 a article not wanted - Missing opening angle bracket



>> As for IHAVE, the only possible answer here is 435; on no account
>> should 501 be sent.
>
> I disagree. 435 means "not wanted", not "invalid syntax".

Not if RFC 977, in the absence of ABNF syntax, does not treat the
argument for IHAVE as a byte string.
Then, the article is "not wanted" and the syntax is valid.

Do not forget that RFC 4643 makes AUTHINFO USER/PASS inconsistent
with RFC 3977 as for the possibility to use spaces.  And the
argument is a byte string.

This way, and as far as I can see with what news servers answer,
it appears that IHAVE/CHECK/TAKETHIS work as though they are
expecting a byte string, and *not* a message-ID.

INN 1 (yes, version 1):
-----------------------

200 feed-A.news.volia.net InterNetNews server INN 1.7.2 (FAST switching patch) ready
IHAVE test
435 test Bad Message-ID

DIABLO:
-------

200 news1.greatnowhere.com NNTP Service Ready (DIABLO 5.0-REL)
IHAVE test
435 test Bad Message-ID

DNEWS:
------

200 mendel.ac-versailles.fr DNEWS Version  5.7e1,, S0, posting OK
IHAVE test
435 article not wanted - Missing opening angle bracket
CHECK test
438 test article not wanted - Missing opening angle bracket



>> It appears that a few commands require that no check is done on their
>> syntax, and it is not mentioned in RFC 3977.
>
> Nor is it mentioned in RFC 977, nor was it *EVER* mentioned in many years
> of discussion leading up to 3977.

Maybe but discussions do not change what has always been implemented
in news servers.

Incidentally, RFC 4644 clearly explains pipelining with for instance:

      [C] CHECK <i.am.an.article.you.will.want@example.com>
      [C] CHECK <i.am.an.article.you.have@example.com>
      [C] CHECK <i.am.an.article.you.defer@example.com>
      [S] 238 <i.am.an.article.you.will.want@example.com>
      [S] 438 <i.am.an.article.you.have@example.com>
      [S] 431 <i.am.an.article.you.defer@example.com>

but it is nowhere said something like:

      [C] CHECK <i.am.an.article.you.will.want@example.com>
      [C] CHECK i am a nasty article
      [C] CHECK <i.am.an.article.you.defer@example.com>
      [S] 238 <i.am.an.article.you.will.want@example.com>
      [S] 501 Invalid syntax
      [S] 431 <i.am.an.article.you.defer@example.com>

It is not discussed whether news servers should expect, when using
streaming, the unwanted message-ID (as a byte string) just after 501
or other response codes.
The article might get stuck forever in the queue...  Some implementations
(like INN and Diablo) assume they still haven't got the answer to the
CHECK command for "i am a nasty article".

News servers *do* expect a 438 answer (or 439 for TAKETHIS and
435 for IHAVE) when the article is "not wanted".



>> Do you have an idea of what it is possible to do as for that issue?
>
> Not easily. You need to decide if you want to work with broken software.

(Almost) every news server is then currently broken.
How can we work with them? :)

-- 
Julien ÉLIE

« Quand on sait que le pied vaut environ 33 cm et que l'alexandrin
  compte 12 pieds, il est facile de calculer qu'un stade vaut
  environ 42 alexandrins. » (Astérix) 

