From jeff at litech.org  Fri Oct  1 04:44:41 2004
From: jeff at litech.org (Jeffrey M. Vinocur)
Date: Fri Oct  1 04:44:10 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-02.txt
In-Reply-To: <87zn3739tk.fsf@windlord.stanford.edu>
References: <200409132007.QAA02754@ietf.org>
	<20040917131730.GL41506@finch-staff-1.thus.net>
	<87brfsoczy.fsf@windlord.stanford.edu>
	<20040928124924.GR79552@finch-staff-1.thus.net>
	<87hdpidxr4.fsf@windlord.stanford.edu>
	<415AD32F.9040706@oceana.com>
	<87acv8sxz1.fsf@windlord.stanford.edu>
	<760A2FCB-1288-11D9-BC05-000393032FF0@litech.org>
	<87oejolbih.fsf@windlord.stanford.edu>
	<82A7CF0D-12C5-11D9-BC05-000393032FF0@litech.org>
	<87zn3739tk.fsf@windlord.stanford.edu>
Message-ID: <482FCD67-139F-11D9-BC05-000393032FF0@litech.org>

On Sep 30, 2004, at 2:12 PM, Russ Allbery wrote:

> Jeffrey M Vinocur <jeff@litech.org> writes:
>
>> I was basing this on the fact that INN's nnrpd does close the 
>> connection
>> on a failed AUTHINFO USER/PASS, which is a vaguely parallel case.
>
> Ah, okay.  I'm not sure that INN is correct to do that either.

I never found that behavior elegant, but I can certainly see why server 
authors might choose it.

Hmm.  I mean, if no one else thinks is a problem, I'm not about to fall 
on my sword over it.

(Perhaps we could add a caution to client authors in the Generic 
Responses section of the base spec, warning not to DOS the server by 
rapidly retrying many times after receiving a 400 response?)


-- 
Jeffrey M. Vinocur
jeff@litech.org

From clive at demon.net  Fri Oct  1 04:55:10 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct  1 04:55:17 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-02.txt
In-Reply-To: <87hdpidxr4.fsf@windlord.stanford.edu>
References: <200409132007.QAA02754@ietf.org>
	<20040917131730.GL41506@finch-staff-1.thus.net>
	<87brfsoczy.fsf@windlord.stanford.edu>
	<20040928124924.GR79552@finch-staff-1.thus.net>
	<87hdpidxr4.fsf@windlord.stanford.edu>
Message-ID: <20041001115510.GA84018@finch-staff-1.thus.net>

Russ Allbery said:
> SMTP says (RFC 3207):
> 
>      After the TLS handshake has been completed, both parties MUST
>      immediately decide whether or not to continue based on the
>      authentication and privacy achieved.
> 
> Note the absence of the word "successfully."  I think we should just adopt
> the SMTP language, which makes the problem go away -- a failed TLS
> handshake that allows recovery of the NNTP session is then completion of
> the TLS handshake, with no authentication and privacy achieved, and the
> client and server should then proceed as described in 3.2.1.  We can say
> something explicit about that if it seems useful.

I agree. [Minor nit: I would say "... based on *any* ...".]

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct  1 04:58:20 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct  1 04:58:29 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-02.txt
In-Reply-To: <415AD32F.9040706@oceana.com>
References: <200409132007.QAA02754@ietf.org>
	<20040917131730.GL41506@finch-staff-1.thus.net>
	<87brfsoczy.fsf@windlord.stanford.edu>
	<20040928124924.GR79552@finch-staff-1.thus.net>
	<87hdpidxr4.fsf@windlord.stanford.edu>
	<415AD32F.9040706@oceana.com>
Message-ID: <20041001115820.GB84018@finch-staff-1.thus.net>

Ken Murchison said:
> Note that the option of closing the connection is something that is not 
> present in RFC 3207 (on which most of this text is based).  It was added 
> by Jeff because he felt that servers may not want to have client beating 
> on them after a failed TLS.  I never really liked this text

Nor do I: a dropped connection is likely to be seen as an error and the
client could then retry automatically. So it beats on the server anyway.

> and would 
> prefer to just stick with the original RFC 3207 text (just issue 483 
> responses to subsequent commands).  Doesn't the base doc already allow 
> servers to unilaterally terminate the connection and addresses how to do 
> this?  If so, do we need to address this in the STARTTLS doc?

I think that the STARTTLS doc just needs to say something like "If the
client is unhappy with the state of the connection, issue QUIT. If the
server is unhappy with the state of the connection, issue 483 if more TLS
negotiation could fix it and 400 (and terminate) if it can't." Only in
better words, of course.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct  1 04:59:24 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct  1 04:59:29 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-02.txt
In-Reply-To: <482FCD67-139F-11D9-BC05-000393032FF0@litech.org>
References: <87brfsoczy.fsf@windlord.stanford.edu>
	<20040928124924.GR79552@finch-staff-1.thus.net>
	<87hdpidxr4.fsf@windlord.stanford.edu>
	<415AD32F.9040706@oceana.com>
	<87acv8sxz1.fsf@windlord.stanford.edu>
	<760A2FCB-1288-11D9-BC05-000393032FF0@litech.org>
	<87oejolbih.fsf@windlord.stanford.edu>
	<82A7CF0D-12C5-11D9-BC05-000393032FF0@litech.org>
	<87zn3739tk.fsf@windlord.stanford.edu>
	<482FCD67-139F-11D9-BC05-000393032FF0@litech.org>
Message-ID: <20041001115924.GC84018@finch-staff-1.thus.net>

Jeffrey M. Vinocur said:
> (Perhaps we could add a caution to client authors in the Generic 
> Responses section of the base spec, warning not to DOS the server by 
> rapidly retrying many times after receiving a 400 response?)

I'd be happy to do that if Russ is happy with the procedural load (it means
issuing a new draft for Last Call instead of the present one).

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct  1 05:01:03 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct  1 05:01:07 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-02.txt
In-Reply-To: <760A2FCB-1288-11D9-BC05-000393032FF0@litech.org>
References: <200409132007.QAA02754@ietf.org>
	<20040917131730.GL41506@finch-staff-1.thus.net>
	<87brfsoczy.fsf@windlord.stanford.edu>
	<20040928124924.GR79552@finch-staff-1.thus.net>
	<87hdpidxr4.fsf@windlord.stanford.edu>
	<415AD32F.9040706@oceana.com>
	<87acv8sxz1.fsf@windlord.stanford.edu>
	<760A2FCB-1288-11D9-BC05-000393032FF0@litech.org>
Message-ID: <20041001120103.GD84018@finch-staff-1.thus.net>

Jeffrey M. Vinocur said:
> IIRC, this was because any case where the server can unilaterally close 
> the connection makes me worried about a naive client inadvertently 
> DOS'ing the server.

Indeed.

> I mean, if the client author isn't prepared for a unilateral 
> termination to be purposeful (rather than a network glitch dropping the 
> connection), the client software might immediately reconnect and repeat 
> the same sequence of commands, causing the server to unilaterally 
> terminate again, and so on, indefinitely.

I see this as a concern.

And this is why we have the 400 response - to indicate *purposeful*
termination rather than accidental.

> Regardless, I do feel like we're misleading to client authors if the 
> spec says only "the server will reject all further commands" when in 
> practice servers are quite likely to close the connection, even if 
> somewhere in a different document we warn them that the server can 
> close the connection at any time.

So we say "the server will reject all further commands, which MAY
include issuing a 400 generic response".

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Fri Oct  1 08:34:28 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Oct  1 08:34:25 2004
Subject: [NNTP] Proposed STARTTLS changes
Message-ID: <415D7904.9090708@oceana.com>

Here are my proposed changes to the text which address two issues:

-  580 is an immediate response *only*.  No response codes are sent 
after TLS negotiation.  This falls in line with the other messaging 
protocols and fixs the asymmetry noted by Clive.

-  Server behavior if it doesn't like the result of the TLS negotiation.


Sorry for the nroff, but its the easiest way to get a diff w/o having 
pagination changes come into play.  Comments?


***************
*** 199,216 ****
   Responses
   .IP
   .in 8
- Initial responses
- .in 11
   .nf
   382 Continue with TLS negotiation
   502 Command unavailable [1]
! .fi
! .IP
! .in 8
! Subsequent response
! .in 11
! .nf
! 580 TLS negotiation failed
   .fi
   .IP
   [1] If a TLS layer is already active, or authentication has occurred,
--- 203,212 ----
   Responses
   .IP
   .in 8
   .nf
   382 Continue with TLS negotiation
   502 Command unavailable [1]
! 580 Can not initiate TLS negotiation
   .fi
   .IP
   [1] If a TLS layer is already active, or authentication has occurred,
***************
*** 234,239 ****
--- 230,240 ----
   Additionally, the server MUST NOT return 483 in response to the
   STARTTLS command.

+ If the server is unable to initiate the TLS negotiation for any reason
+ (e.g. a server configuration or resource problem), the server MUST
+ reject the STARTTLS command with a 580 response. Otherwise, the server
+ issues a 382 response and begins a TLS negotiation with the client.
+
   If the client receives a failure response to STARTTLS, the client must
   decide whether or not to continue the NNTP session.  Such a decision is
   based on local policy.  For instance, if TLS was being used for client
***************
*** 269,279 ****
   .ne 4
   2.2.2.1. Processing After the STARTTLS Command
   .IP
! After the TLS handshake has been completed, both parties
! MUST immediately decide whether or not to continue based on the
! authentication and privacy achieved.  The NNTP client and server may
! decide to move ahead even if the TLS negotiation ended with no
! authentication and/or no privacy because NNTP services are often
   performed without authentication or privacy, but some NNTP clients or
   servers may want to continue only if a particular level of
   authentication and/or privacy was achieved.
--- 270,280 ----
   .ne 4
   2.2.2.1. Processing After the STARTTLS Command
   .IP
! After the TLS handshake has been completed, both parties MUST
! immediately decide whether or not to continue based on the
! authentication and privacy achieved (if any).  The NNTP client and
! server may decide to move ahead even if the TLS negotiation ended with
! no authentication and/or no privacy because NNTP services are often
   performed without authentication or privacy, but some NNTP clients or
   servers may want to continue only if a particular level of
   authentication and/or privacy was achieved.
***************
*** 282,294 ****
   is not high enough for it to continue, it SHOULD issue a QUIT
   command immediately after the TLS negotiation is complete.  If the NNTP
   server decides that the level of authentication or privacy is not high
! enough for it to continue, it SHOULD do at least one of (1) close the
! connection, being aware that the client may interpret this behavior as a
! network problem and immediately reconnect and issue the same command
! sequence, or (2) keep the connection open and reply to NNTP commands
! from the client with the 483 response code (with a possible text string
! such as "Command refused due to lack of security"), however this
! behavior may tie up resources unacceptably.

   The decision of whether or not to believe the authenticity of the other
   party in a TLS negotiation is a local matter.  However, some general
--- 283,294 ----
   is not high enough for it to continue, it SHOULD issue a QUIT
   command immediately after the TLS negotiation is complete.  If the NNTP
   server decides that the level of authentication or privacy is not high
! enough for it to continue, it SHOULD reject further NNTP commands from
! the client (other than a QUIT command) with a 483 response code (with
! a possible text string such as "Command refused due to lack of
! security"), but it MAY reject a command with a 400 response code (with
! a possible text string such as "Connection closing due to lack of
! security") and close the connection.

   The decision of whether or not to believe the authenticity of the other
   party in a TLS negotiation is a local matter.  However, some general


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Oct  1 08:38:15 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Oct  1 08:38:05 2004
Subject: [NNTP] Proposed STARTTLS changes
In-Reply-To: <415D7904.9090708@oceana.com>
References: <415D7904.9090708@oceana.com>
Message-ID: <415D79E7.8020001@oceana.com>

I also removed the following paragraph:

"If the TLS handshake fails in such a way that it is possible to recover
the underlying NNTP session, the server will send a 580 response
(without encryption), beginning with the first post-handshake octet."

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Fri Oct  1 11:25:43 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Oct  1 11:25:44 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-02.txt
In-Reply-To: <20041001115820.GB84018@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Fri, 1 Oct 2004 12:58:20 +0100")
References: <200409132007.QAA02754@ietf.org>
	<20040917131730.GL41506@finch-staff-1.thus.net>
	<87brfsoczy.fsf@windlord.stanford.edu>
	<20040928124924.GR79552@finch-staff-1.thus.net>
	<87hdpidxr4.fsf@windlord.stanford.edu> <415AD32F.9040706@oceana.com>
	<20041001115820.GB84018@finch-staff-1.thus.net>
Message-ID: <87mzz6s3bs.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:

> I think that the STARTTLS doc just needs to say something like "If the
> client is unhappy with the state of the connection, issue QUIT. If the
> server is unhappy with the state of the connection, issue 483 if more
> TLS negotiation could fix it and 400 (and terminate) if it can't." Only
> in better words, of course.

Yeah, this sounds right to me as well.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rvtol at isolution.nl  Fri Oct  1 05:28:41 2004
From: rvtol at isolution.nl (Ruud H.G. van Tol)
Date: Fri Oct  1 11:26:26 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-02.txt
References: <200409132007.QAA02754@ietf.org><20040917131730.GL41506@finch-staff-1.thus.net><87brfsoczy.fsf@windlord.stanford.edu><20040928124924.GR79552@finch-staff-1.thus.net><87hdpidxr4.fsf@windlord.stanford.edu><415AD32F.9040706@oceana.com><87acv8sxz1.fsf@windlord.stanford.edu><760A2FCB-1288-11D9-BC05-000393032FF0@litech.org><87oejolbih.fsf@windlord.stanford.edu><82A7CF0D-12C5-11D9-BC05-000393032FF0@litech.org><87zn3739tk.fsf@windlord.stanford.edu>
	<482FCD67-139F-11D9-BC05-000393032FF0@litech.org>
Message-ID: <01b001c4a7b2$31b3c9e0$0a01a8c0@isolution.nl>

Toen wij Jeffrey M. Vinocur kietelden, kwam er dit uit:

> (Perhaps we could add a caution to client authors in the Generic
> Responses section of the base spec, warning not to DOS the server by
> rapidly retrying many times after receiving a 400 response?)

Or even strongly suggest that the time in between retries 
should be doubled for each retry.

-- 
Grtz, Ruud
From rra at stanford.edu  Fri Oct  1 11:28:02 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Oct  1 11:28:04 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-04
In-Reply-To: <415C2B7F.4040202@oceana.com> (Ken Murchison's message of "Thu,
	30 Sep 2004 11:51:27 -0400")
References: <4159C6F3.1070109@oceana.com>
	<873c12b0ov.fsf@windlord.stanford.edu>
	<20040929082308.GF5524@finch-staff-1.thus.net>
	<415AC39C.3000703@oceana.com> <87ekkksy34.fsf@windlord.stanford.edu>
	<415B0AD1.1040609@oceana.com> <87k6ucri5x.fsf@windlord.stanford.edu>
	<415C2B7F.4040202@oceana.com>
Message-ID: <87is9us37x.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> Here's what I've come up with.  I realize its not perfect, so I'm open
> to any wordsmithing.

This text looks great to me.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Fri Oct  1 11:29:32 2004
From: rra at stanford.edu (Russ Allbery)
Date: Fri Oct  1 11:29:33 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-02.txt
In-Reply-To: <20041001115924.GC84018@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Fri, 1 Oct 2004 12:59:24 +0100")
References: <87brfsoczy.fsf@windlord.stanford.edu>
	<20040928124924.GR79552@finch-staff-1.thus.net>
	<87hdpidxr4.fsf@windlord.stanford.edu> <415AD32F.9040706@oceana.com>
	<87acv8sxz1.fsf@windlord.stanford.edu>
	<760A2FCB-1288-11D9-BC05-000393032FF0@litech.org>
	<87oejolbih.fsf@windlord.stanford.edu>
	<82A7CF0D-12C5-11D9-BC05-000393032FF0@litech.org>
	<87zn3739tk.fsf@windlord.stanford.edu>
	<482FCD67-139F-11D9-BC05-000393032FF0@litech.org>
	<20041001115924.GC84018@finch-staff-1.thus.net>
Message-ID: <87ekkis35f.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:
> Jeffrey M. Vinocur said:

>> (Perhaps we could add a caution to client authors in the Generic
>> Responses section of the base spec, warning not to DOS the server by
>> rapidly retrying many times after receiving a 400 response?)

> I'd be happy to do that if Russ is happy with the procedural load (it
> means issuing a new draft for Last Call instead of the present one).

Actually, we've already gone through Last Call, and I don't believe we've
made any changes of sufficient substance to force us to go through it
again.  However, I'm currently talking with Mark Crispin and he's raised
some good points that I'm still trying to digest enough to relay to the
mailing list.  We may have to do another round with those changes since he
appears to have completely missed the first Last Call that we did (I'm not
quite sure what the procedure is on that).

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Fri Oct  1 12:28:11 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Oct  1 12:28:02 2004
Subject: [NNTP] Proposed STARTTLS changes
In-Reply-To: <415D7904.9090708@oceana.com>
References: <415D7904.9090708@oceana.com>
Message-ID: <415DAFCB.2090500@oceana.com>

Sorry for replying to my own post again, but I also tweaked the 3 examples:


Example of a client being prompted to use encryption and negotiating it
successfully (showing the removal of STARTTLS from the extensions list
once a TLS layer is active), followed by a successful selection of the
group and an (inappropriate) attempt by the client to initiate another
TLS negotiation:

[C] LIST EXTENSIONS
[S] 202 Extensions supported:
[S] STARTTLS
[S] OVER
[S] .
[C] GROUP local.confidential
[S] 483 Encryption or stronger authentication required
[C] STARTTLS
[S] 382 Continue with TLS negotiation
[TLS negotiation occurs here]
[Following successful negotiation, traffic is via the TLS layer]
[C] LIST EXTENSIONS
[S] 202 Extensions supported:
[S] OVER
[S] .
[C] GROUP local.confidential
[S] 211 1234 3000234 3002322 local.confidential
[C] STARTTLS
[S] 502 STARTTLS not allowed with active TLS layer



Example of a request to begin TLS negotiation declined by the server:

[C] STARTTLS
[S] 580 Can not initiate TLS negotiation



Example of a failed attempt to negotiate TLS, followed by two attempts
at selecting groups only available under a security layer (in the
first case the server allows the session to continue, in the second it
closes the connection):

[C] STARTTLS
[S] 382 Continue with TLS negotiation
[TLS negotiation is attempted here]
[Following failed negotiation, traffic resumes without TLS]
[C] GROUP local.confidential
[S] 483 Encryption or stronger authentication required
[C] GROUP local.private
[S] 400 Closing connection due to lack of security


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From jeff at litech.org  Sun Oct  3 16:30:04 2004
From: jeff at litech.org (Jeffrey M. Vinocur)
Date: Sun Oct  3 16:30:50 2004
Subject: [NNTP] Proposed STARTTLS changes
In-Reply-To: <415D7904.9090708@oceana.com>
References: <415D7904.9090708@oceana.com>
Message-ID: <27A3E30A-1594-11D9-A47B-000393032FF0@litech.org>

On Oct 1, 2004, at 11:34 AM, Ken Murchison wrote:

> [...]

Some phrasing suggestions below, but with regard to substance, I'm 
happy with the proposed diff.


> + If the server is unable to initiate the TLS negotiation for any 
> reason
> + (e.g. a server configuration or resource problem), the server MUST
> + reject the STARTTLS command with a 580 response. Otherwise, the 
> server
> + issues a 382 response and begins a TLS negotiation with the client.

Suggest:  "...the server issues a 382 response, and TLS negotiation 
begins."


> ! After the TLS handshake has been completed, both parties MUST
> ! immediately decide whether or not to continue based on the
> ! authentication and privacy achieved (if any).  The NNTP client and
> ! server may decide to move ahead even if the TLS negotiation ended 
> with
> ! no authentication and/or no privacy because NNTP services are often

Perhaps "...ended without authentication and/or without privacy 
because..." or something like that?


-- 
Jeffrey M. Vinocur
jeff@litech.org

From clive at demon.net  Mon Oct  4 00:34:22 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct  4 00:34:28 2004
Subject: [NNTP] Proposed STARTTLS changes
In-Reply-To: <415D7904.9090708@oceana.com>
References: <415D7904.9090708@oceana.com>
Message-ID: <20041004073422.GA96189@finch-staff-1.thus.net>

Ken Murchison said:
> Here are my proposed changes to the text which address two issues:

I'm happy with these changes, apart from suggesting the following tweak:

> --- 283,294 ----
>   is not high enough for it to continue, it SHOULD issue a QUIT
>   command immediately after the TLS negotiation is complete.  If the NNTP
>   server decides that the level of authentication or privacy is not high
> ! enough for it to continue, it SHOULD reject further NNTP commands from
> ! the client (other than a QUIT command) with a 483 response code (with
> ! a possible text string such as "Command refused due to lack of
> ! security"), but it MAY reject a command with a 400 response code (with
> ! a possible text string such as "Connection closing due to lack of
> ! security") and close the connection.

                                                               If the NNTP
    server decides that the level of authentication or privacy is not high
    enough for it to continue, it SHOULD reject further NNTP commands from
    the client (other than a QUIT command), either by continuous use of
    the 483 response code (possibly with a text string such as "Command
    refused due to lack of security") or by closing the connection after
    issuing a 400 response code (possibly with a text string such as
    "Connection closing due to lack of security").

That is:

(1) Change the structure from "If ... it SHOULD ... but it MAY ..." to
"If ... it SHOULD ... either ... or ...".

(2) Change "with a possible text" to "possibly with a text", since there's
no requirement for any text at all.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct  4 02:35:05 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct  4 02:35:13 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-02.txt
In-Reply-To: <87ekkis35f.fsf@windlord.stanford.edu>
References: <87hdpidxr4.fsf@windlord.stanford.edu>
	<415AD32F.9040706@oceana.com>
	<87acv8sxz1.fsf@windlord.stanford.edu>
	<760A2FCB-1288-11D9-BC05-000393032FF0@litech.org>
	<87oejolbih.fsf@windlord.stanford.edu>
	<82A7CF0D-12C5-11D9-BC05-000393032FF0@litech.org>
	<87zn3739tk.fsf@windlord.stanford.edu>
	<482FCD67-139F-11D9-BC05-000393032FF0@litech.org>
	<20041001115924.GC84018@finch-staff-1.thus.net>
	<87ekkis35f.fsf@windlord.stanford.edu>
Message-ID: <20041004093505.GK96189@finch-staff-1.thus.net>

Russ Allbery said:
>>> (Perhaps we could add a caution to client authors in the Generic
>>> Responses section of the base spec, warning not to DOS the server by
>>> rapidly retrying many times after receiving a 400 response?)
>> I'd be happy to do that if Russ is happy with the procedural load (it
>> means issuing a new draft for Last Call instead of the present one).
> Actually, we've already gone through Last Call, and I don't believe we've
> made any changes of sufficient substance to force us to go through it
> again.  However, I'm currently talking with Mark Crispin and he's raised
> some good points that I'm still trying to digest enough to relay to the
> mailing list.  We may have to do another round with those changes since he
> appears to have completely missed the first Last Call that we did (I'm not
> quite sure what the procedure is on that).

Okay, so it sounds like I should be planning on a new draft anyway. I'll
add changes to the 400 text.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct  4 02:42:51 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct  4 02:43:06 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-02.txt
In-Reply-To: <20041004093505.GK96189@finch-staff-1.thus.net>
References: <415AD32F.9040706@oceana.com>
	<87acv8sxz1.fsf@windlord.stanford.edu>
	<760A2FCB-1288-11D9-BC05-000393032FF0@litech.org>
	<87oejolbih.fsf@windlord.stanford.edu>
	<82A7CF0D-12C5-11D9-BC05-000393032FF0@litech.org>
	<87zn3739tk.fsf@windlord.stanford.edu>
	<482FCD67-139F-11D9-BC05-000393032FF0@litech.org>
	<20041001115924.GC84018@finch-staff-1.thus.net>
	<87ekkis35f.fsf@windlord.stanford.edu>
	<20041004093505.GK96189@finch-staff-1.thus.net>
Message-ID: <20041004094251.GL96189@finch-staff-1.thus.net>

>>>> (Perhaps we could add a caution to client authors in the Generic
>>>> Responses section of the base spec, warning not to DOS the server by
>>>> rapidly retrying many times after receiving a 400 response?)

Proposed change:

    If the server has to terminate the connection for some reason, it
    MUST give a 400 response code to the next command and then immediately
+   close the TCP connection.  Following a 400 response, clients SHOULD
+   NOT simply reconnect immediately and retry the same actions.  Rather,
+   a client SHOULD either use an exponentially increasing delay between
+   retries (e.g. double the waiting time after each 400 response) or
+   present any associated text to the user for them to decide whether and
+   when to retry.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct  4 02:49:19 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct  4 02:49:26 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-04
In-Reply-To: <415AC39C.3000703@oceana.com>
References: <4159C6F3.1070109@oceana.com>
	<873c12b0ov.fsf@windlord.stanford.edu>
	<20040929082308.GF5524@finch-staff-1.thus.net>
	<415AC39C.3000703@oceana.com>
Message-ID: <20041004094919.GM96189@finch-staff-1.thus.net>

Ken Murchison said:
>> Since you can only ever do one successful AUTHINFO, the capability isn't
>> available *at all* afterwards. Therefore the options are either:
>> * don't show AUTHINFO, matching reality
>> * show AUTHINFO, matching [SASL].
>> Since we've already agreed on the latter, let's require the entire AUTHINFO
>> capability to be the same as before authorisation - that way, if the
>> information *is* of use in detecting attacks, it's there.
> 
> Actually, since this is a SASL-only issue I didn't feel that it made any 
> sense to continue to list USER.  That being said, I won't argue strongly 
> either way.  Opinions?

Well, if this defence works at all it might work for other mechanisms than
SASL. So better to keep the line the same rather than just show the SASL
stuff.

>> So replace these two paragraphs with:
>> 
>>     Note that a successful AUTHINFO command MAY cause the output of
>>     the LIST EXTENSIONS command to change. However, the AUTHINFO
>>     capability MUST continue to be listed with the same arguments as
>>     immediately before the authentication, notwithstanding the fact
>>     that no further AUTHINFO commands may be issued (this is a superset
>>     of the recommendation in [SASL] and can help in detecting an active
>>     down-negotiation attack).
>> 
>> Possibly this can be merged with the previous paragraph ("After an AUTHINFO
>> command ... 502 response.").
>> 
>> [Note I've deleted the reference to 2.4.2; I can't see any need for it.]
> 
> Actually, I intended to remove the last paragraph entirely and 
> apparently didn't.  Would removing it be sufficient, or do you still 
> want to address this in some way?

I think there are benefits in retaining the text I proposed.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct  4 02:49:46 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct  4 02:49:53 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-04
In-Reply-To: <415ACA41.8090801@oceana.com>
References: <4159C6F3.1070109@oceana.com>
	<873c12b0ov.fsf@windlord.stanford.edu>
	<20040929082308.GF5524@finch-staff-1.thus.net>
	<415AC39C.3000703@oceana.com> <415ACA41.8090801@oceana.com>
Message-ID: <20041004094946.GN96189@finch-staff-1.thus.net>

Ken Murchison said:
> Actually, I left the original wording (taken verbatim from RFC 2554bis 
> and RFC 1734bis) which IMHO is pretty clear, but added my own parenthetical:
> 
> "When both TLS [NNTP-TLS] and SASL security layers are in effect, the
> TLS encoding MUST be applied after the SASL encoding (the cleartext
> data is always SASL encoded first and then the resultant data is TLS
> encoded)."

That's fine with me.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct  4 02:53:36 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct  4 02:53:42 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-04
In-Reply-To: <87ekkksy34.fsf@windlord.stanford.edu>
References: <4159C6F3.1070109@oceana.com>
	<873c12b0ov.fsf@windlord.stanford.edu>
	<20040929082308.GF5524@finch-staff-1.thus.net>
	<415AC39C.3000703@oceana.com>
	<87ekkksy34.fsf@windlord.stanford.edu>
Message-ID: <20041004095336.GO96189@finch-staff-1.thus.net>

Russ Allbery said:
> Removing it entirely would imply that LIST EXTENSIONS should not change
> following a successful AUTHINFO command, yes?

No, it says nothing either way.

> That seems to fine to me; I
> don't have any trouble requiring that even extensions only usable while
> authenticated should be advertised in the unauthenticated state and just
> return the appropriate error code if used unauthenticated.

I disagree violently.

The description of LIST EXTENSIONS talks about the list altering as
internal state changes. For example, if a command

    is only available before or after a MODE READER command, the LIST
    EXTENSIONS command MUST only include the extension in that situation.

Note that "MUST".

A server might not want to advertise a private capability to clients that
haven't authenticated themselves, and it seems more than reasonable that
they should be allowed not to do so.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct  4 02:58:13 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct  4 02:58:15 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-04
In-Reply-To: <20041004094919.GM96189@finch-staff-1.thus.net>
References: <4159C6F3.1070109@oceana.com>
	<873c12b0ov.fsf@windlord.stanford.edu>
	<20040929082308.GF5524@finch-staff-1.thus.net>
	<415AC39C.3000703@oceana.com>
	<20041004094919.GM96189@finch-staff-1.thus.net>
Message-ID: <20041004095813.GP96189@finch-staff-1.thus.net>

>>> Since you can only ever do one successful AUTHINFO, the capability isn't
>>> available *at all* afterwards. Therefore the options are either:
>>> * don't show AUTHINFO, matching reality
>>> * show AUTHINFO, matching [SASL].
>>> Since we've already agreed on the latter, let's require the entire AUTHINFO
>>> capability to be the same as before authorisation - that way, if the
>>> information *is* of use in detecting attacks, it's there.

>> Actually, since this is a SASL-only issue I didn't feel that it made any 
>> sense to continue to list USER.  That being said, I won't argue strongly 
>> either way.  Opinions?
> 
> Well, if this defence works at all it might work for other mechanisms than
> SASL. So better to keep the line the same rather than just show the SASL
> stuff.

Let me clarify my point.

Suppose somebody invents an authentication and security mechanism based on
PGP rather than SASL. We might then see:

    AUTHINFO USER SASL:CRAM-MD5,GSSAPI PGP:SHA-1,WEB-OF-TRUST,3DES

(never mind what this means for now). The argument about detecting a
down-negotiation attack applies equally well here, so we'd want this
capability to be shown as well.

So simplest just to require the line to stay the same as before
authentication in all situations. If we're going to change it at all, let's
add the "not available" flag I mentioned before.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct  4 03:02:36 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct  4 03:02:41 2004
Subject: [NNTP] Comments on draft-...-authinfo-03
In-Reply-To: <I4t04o.5It@clerew.man.ac.uk>
References: <20040916113711.GN13683@finch-staff-1.thus.net>
	<4149A6C2.90209@oceana.com>
	<20040917124059.GA63441@finch-staff-1.thus.net>
	<98508F20-08EF-11D9-B36F-000393032FF0@litech.org>
	<20040922142822.GB40008@finch-staff-1.thus.net>
	<0C2DEDD3-0CEB-11D9-8D45-000393032FF0@litech.org>
	<20040928125558.GS79552@finch-staff-1.thus.net>
	<I4t04o.5It@clerew.man.ac.uk>
Message-ID: <20041004100236.GQ96189@finch-staff-1.thus.net>

Charles Lindsey said:
>> Only if it knows the exact length of the string. Okay, it can make a
>> separate connection to the server to see, but it's starting to get a bit
>> threadbare as a threat.
> But surely the attacker will wait till he has seen the server's attempt. I
> am assuming that this "man in the middle" is receiving packets from the
> server and normally passing them on to the client unchanged. When he sees
> "AUTHINFO SASL:WEAK,MEDIUM,STRONG", he drops it on the floor and inserts
> "AUTHINFO SASL:WEAK FOOBAR GZNORT" in its place.

As I understand it, this "man in the middle" doesn't have the ability to
delete packets, merely to inject them faster than the server does (so that
the server's are rejected as duplicates).

If he can delete and replace packets (or, equivalently, modify their
contents in flow) he can run two separate conversations and watch the
plaintext; there's no need for this fuss.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Mon Oct  4 07:47:31 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct  4 07:47:19 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05 &
	draft-ietf-nntpext-tls-nntp-03
Message-ID: <41616283.9060901@oceana.com>

Just sent these two drafts which hopefully include all issues/comments 
up to Clive's/Jeff's from this morning.  Changes from the previous 
versions are listed in Sections 0.

http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-authinfo-05.txt
http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-tls-nntp-03.txt

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp


From rra at stanford.edu  Mon Oct  4 12:35:04 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Oct  4 12:35:06 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-02.txt
In-Reply-To: <20041004094251.GL96189@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Mon, 4 Oct 2004 10:42:51 +0100")
References: <415AD32F.9040706@oceana.com>
	<87acv8sxz1.fsf@windlord.stanford.edu>
	<760A2FCB-1288-11D9-BC05-000393032FF0@litech.org>
	<87oejolbih.fsf@windlord.stanford.edu>
	<82A7CF0D-12C5-11D9-BC05-000393032FF0@litech.org>
	<87zn3739tk.fsf@windlord.stanford.edu>
	<482FCD67-139F-11D9-BC05-000393032FF0@litech.org>
	<20041001115924.GC84018@finch-staff-1.thus.net>
	<87ekkis35f.fsf@windlord.stanford.edu>
	<20041004093505.GK96189@finch-staff-1.thus.net>
	<20041004094251.GL96189@finch-staff-1.thus.net>
Message-ID: <87mzz2uviv.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:

> Proposed change:

>     If the server has to terminate the connection for some reason, it
>     MUST give a 400 response code to the next command and then immediately
> +   close the TCP connection.  Following a 400 response, clients SHOULD
> +   NOT simply reconnect immediately and retry the same actions.  Rather,
> +   a client SHOULD either use an exponentially increasing delay between
> +   retries (e.g. double the waiting time after each 400 response) or
> +   present any associated text to the user for them to decide whether and
> +   when to retry.

This sounds fine to me.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Mon Oct  4 12:35:42 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Oct  4 12:35:44 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-04
In-Reply-To: <20041004095336.GO96189@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Mon, 4 Oct 2004 10:53:36 +0100")
References: <4159C6F3.1070109@oceana.com>
	<873c12b0ov.fsf@windlord.stanford.edu>
	<20040929082308.GF5524@finch-staff-1.thus.net>
	<415AC39C.3000703@oceana.com> <87ekkksy34.fsf@windlord.stanford.edu>
	<20041004095336.GO96189@finch-staff-1.thus.net>
Message-ID: <87is9quvht.fsf@windlord.stanford.edu>

Clive D W Feather <clive@demon.net> writes:

> I disagree violently.

> The description of LIST EXTENSIONS talks about the list altering as
> internal state changes. For example, if a command

>     is only available before or after a MODE READER command, the LIST
>     EXTENSIONS command MUST only include the extension in that situation.

> Note that "MUST".

> A server might not want to advertise a private capability to clients
> that haven't authenticated themselves, and it seems more than reasonable
> that they should be allowed not to do so.

Yeah, never mind.  That was a bad idea on my part.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Mon Oct  4 12:37:00 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Oct  4 12:37:01 2004
Subject: [NNTP] Proposed STARTTLS changes
In-Reply-To: <415DAFCB.2090500@oceana.com> (Ken Murchison's message of "Fri,
	01 Oct 2004 15:28:11 -0400")
References: <415D7904.9090708@oceana.com> <415DAFCB.2090500@oceana.com>
Message-ID: <87ekkeuvfn.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> Sorry for replying to my own post again, but I also tweaked the 3
> examples:

> Example of a client being prompted to use encryption and negotiating it
> successfully (showing the removal of STARTTLS from the extensions list
> once a TLS layer is active), followed by a successful selection of the
> group and an (inappropriate) attempt by the client to initiate another
> TLS negotiation:

Sorry for the belated note, but yes, this and the new wording look fine to
me.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Mon Oct  4 12:48:53 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Oct  4 12:48:54 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <4161A81D.9090604@oceana.com> (Ken Murchison's message of "Mon,
	04 Oct 2004 15:44:29 -0400")
References: <200402022107.QAA09807@ietf.org>
	<20040310105838.GM31826@finch-staff-1.thus.net>
	<87k71qwvu9.fsf@windlord.stanford.edu> <4161A81D.9090604@oceana.com>
Message-ID: <877jq6uuvu.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> I'm bored so I'm spending time updating this doc to use similar
> formatting as AUTHINFO and STARTTLS.  I decided to take a look back at
> the list traffic and see what the outstanding issues are.

Moving this over to the new list.  Apologies for all the quoting, but I
wanted to make sure that Ken's full message was included.

> Russ Allbery wrote:

>> I go back and forth on this, but I think we should take the stance that
>> there is no technical reason for this command and that the only reason
>> why it's included is that all current streaming implementations send it
>> and the server needs to do something sensible with it.  In other words,
>> include it, state that clients that intend to use streaming commands
>> MUST send either it *or* LIST EXTENSIONS, and state that servers that
>> support streaming commands for those clients MUST NOT require MODE
>> STREAM be sent.

>> I'd at least like to try that and see if it goes over okay with
>> implementors.

>> I don't know of an implementation that would inherently require that
>> this command be sent (unlike with MODE READER).  In practice, it was
>> used instead of LIST EXTENSIONS because sending TAKETHIS without a
>> positive indication that the remote side supports it is a bad idea.
>> Now, clients can just use LIST EXTENSIONS for that purpose.

> Agreed on all of the above.

> Question:

> Should any of the STREAMING commands be allowed after MODE READER?  I'm
> assuming that INN (and possibly other servers) would have a problem
> switching from reader-only mode back to streaming mode.

I think we can handle this via LIST EXTENSIONS, yes?  I expect that most
implementations that do something with MODE READER will not advertise the
STREAMING extension after MODE READER, but there's no particular reason
not to allow them to if they want to.

>> TAKETHIS has no deferral return status.  We could add one as part of
>> this standardization process; it's not a bad idea.

>> If we want to add a deferral, we need to use 432 or some similar code.
>> I don't think we need two types of deferrals; all streaming deferrals
>> should be delayed at least a little while.

> Is this something that we want to add to the document?

I don't see any obvious reason not to add it.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Mon Oct  4 12:55:49 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Oct  4 12:55:51 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05 &
	draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <41616283.9060901@oceana.com> (Ken Murchison's message of "Mon,
	04 Oct 2004 10:47:31 -0400")
References: <41616283.9060901@oceana.com>
Message-ID: <87sm8utfzu.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> Just sent these two drafts which hopefully include all issues/comments
> up to Clive's/Jeff's from this morning.  Changes from the previous
> versions are listed in Sections 0.

> http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-authinfo-05.txt
> http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-tls-nntp-03.txt

These look good to me.  I'll give people a day to look them over (and for
them to get into the I-D repository) and then in the absence of objections
will advance them for IETF Last Call.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Mon Oct  4 12:56:41 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct  4 12:56:29 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <877jq6uuvu.fsf@windlord.stanford.edu>
References: <200402022107.QAA09807@ietf.org>	<20040310105838.GM31826@finch-staff-1.thus.net>	<87k71qwvu9.fsf@windlord.stanford.edu>
	<4161A81D.9090604@oceana.com>
	<877jq6uuvu.fsf@windlord.stanford.edu>
Message-ID: <4161AAF9.6010700@oceana.com>

Russ Allbery wrote:

> Ken Murchison <ken@oceana.com> writes:
> 
> 
>>I'm bored so I'm spending time updating this doc to use similar
>>formatting as AUTHINFO and STARTTLS.  I decided to take a look back at
>>the list traffic and see what the outstanding issues are.
> 
> 
> Moving this over to the new list.  Apologies for all the quoting, but I
> wanted to make sure that Ken's full message was included.

Oops!  Sorry about that.  I forgot that this thread was old enough to 
have started on the old list.


>>Question:
> 
> 
>>Should any of the STREAMING commands be allowed after MODE READER?  I'm
>>assuming that INN (and possibly other servers) would have a problem
>>switching from reader-only mode back to streaming mode.
> 
> 
> I think we can handle this via LIST EXTENSIONS, yes?  I expect that most
> implementations that do something with MODE READER will not advertise the
> STREAMING extension after MODE READER, but there's no particular reason
> not to allow them to if they want to.

Good point.  So we should add text that states that the server MAY 
choose to not advertise STREAMING after MODE READER.


>>>TAKETHIS has no deferral return status.  We could add one as part of
>>>this standardization process; it's not a bad idea.
> 
> 
>>>If we want to add a deferral, we need to use 432 or some similar code.
>>>I don't think we need two types of deferrals; all streaming deferrals
>>>should be delayed at least a little while.
> 
> 
>>Is this something that we want to add to the document?
> 
> 
> I don't see any obvious reason not to add it.

So, is 432 the definitive code?


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Mon Oct  4 12:59:36 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct  4 12:59:23 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05
	&	draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <87sm8utfzu.fsf@windlord.stanford.edu>
References: <41616283.9060901@oceana.com>
	<87sm8utfzu.fsf@windlord.stanford.edu>
Message-ID: <4161ABA8.9090703@oceana.com>

Russ Allbery wrote:

> Ken Murchison <ken@oceana.com> writes:
> 
> 
>>Just sent these two drafts which hopefully include all issues/comments
>>up to Clive's/Jeff's from this morning.  Changes from the previous
>>versions are listed in Sections 0.
> 
> 
>>http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-authinfo-05.txt
>>http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-tls-nntp-03.txt
> 
> 
> These look good to me.  I'll give people a day to look them over (and for
> them to get into the I-D repository) and then in the absence of objections
> will advance them for IETF Last Call.

I just found a correction that needs to be made to the description of 
580 in Section 4 of NNTP-TLS (to coincide with 2.2.1), but this can 
probably wait until the 24 hour final review by the author(s).

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Mon Oct  4 13:01:05 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Oct  4 13:01:07 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <4161AAF9.6010700@oceana.com> (Ken Murchison's message of "Mon,
	04 Oct 2004 15:56:41 -0400")
References: <200402022107.QAA09807@ietf.org>
	<20040310105838.GM31826@finch-staff-1.thus.net>
	<87k71qwvu9.fsf@windlord.stanford.edu> <4161A81D.9090604@oceana.com>
	<877jq6uuvu.fsf@windlord.stanford.edu> <4161AAF9.6010700@oceana.com>
Message-ID: <87oejitfr2.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:
> Russ Allbery wrote:

>>>> TAKETHIS has no deferral return status.  We could add one as part of
>>>> this standardization process; it's not a bad idea.

>>>> If we want to add a deferral, we need to use 432 or some similar
>>>> code.  I don't think we need two types of deferrals; all streaming
>>>> deferrals should be delayed at least a little while.

>>> Is this something that we want to add to the document?

>> I don't see any obvious reason not to add it.

> So, is 432 the definitive code?

432 is, according to my records, previously unused.  (Which is somewhat
suspicious -- I wonder why it was skipped over originally.)

431 is used for a deferral after CHECK, but we shouldn't reuse that code
since a deferral after TAKETHIS is different and the two may be
intermingled.  436 is used as the deferral for IHAVE, both as an initial
response and after the article was sent.  We could potentially use it, but
I'm not sure if that's a good idea or not.

I don't see any obvious Google references to an existing meaning for 432.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Mon Oct  4 13:05:20 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct  4 13:05:07 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <87oejitfr2.fsf@windlord.stanford.edu>
References: <200402022107.QAA09807@ietf.org>	<20040310105838.GM31826@finch-staff-1.thus.net>	<87k71qwvu9.fsf@windlord.stanford.edu>
	<4161A81D.9090604@oceana.com>	<877jq6uuvu.fsf@windlord.stanford.edu>
	<4161AAF9.6010700@oceana.com>
	<87oejitfr2.fsf@windlord.stanford.edu>
Message-ID: <4161AD00.10905@oceana.com>

Russ Allbery wrote:

>> 432 is, according to my records, previously unused.  (Which is somewhat
> suspicious -- I wonder why it was skipped over originally.)
> 
> 431 is used for a deferral after CHECK, but we shouldn't reuse that code
> since a deferral after TAKETHIS is different and the two may be
> intermingled.  436 is used as the deferral for IHAVE, both as an initial
> response and after the article was sent.  We could potentially use it, but
> I'm not sure if that's a good idea or not.

Actually (maybe I'm being thick and/or short-sighted), but does it 
matter whether we're getting deferred via CHECK or TAKETHIS?  In either 
case we're going to have to try again.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Mon Oct  4 13:07:27 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Oct  4 13:07:28 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <4161AD00.10905@oceana.com> (Ken Murchison's message of "Mon,
	04 Oct 2004 16:05:20 -0400")
References: <200402022107.QAA09807@ietf.org>
	<20040310105838.GM31826@finch-staff-1.thus.net>
	<87k71qwvu9.fsf@windlord.stanford.edu> <4161A81D.9090604@oceana.com>
	<877jq6uuvu.fsf@windlord.stanford.edu> <4161AAF9.6010700@oceana.com>
	<87oejitfr2.fsf@windlord.stanford.edu> <4161AD00.10905@oceana.com>
Message-ID: <87k6u6tfgg.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:
> Russ Allbery wrote:

>> 431 is used for a deferral after CHECK, but we shouldn't reuse that
>> code since a deferral after TAKETHIS is different and the two may be
>> intermingled.  436 is used as the deferral for IHAVE, both as an
>> initial response and after the article was sent.  We could potentially
>> use it, but I'm not sure if that's a good idea or not.

> Actually (maybe I'm being thick and/or short-sighted), but does it
> matter whether we're getting deferred via CHECK or TAKETHIS?  In either
> case we're going to have to try again.

Hm.  That's a good point.  Maybe it doesn't, actually.  Can anyone else
think of a reason why it might matter?  (It would matter for success or
rejection, since the sender of CHECK and TAKETHIS commands is not required
to keep track of order or figure out if a particular response is in reply
to CHECK or to TAKETHIS, but it seems like the behavior would be the same
either way for a deferral.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Mon Oct  4 13:13:24 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct  4 13:13:15 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <87k6u6tfgg.fsf@windlord.stanford.edu>
References: <200402022107.QAA09807@ietf.org>	<20040310105838.GM31826@finch-staff-1.thus.net>	<87k71qwvu9.fsf@windlord.stanford.edu>
	<4161A81D.9090604@oceana.com>	<877jq6uuvu.fsf@windlord.stanford.edu>
	<4161AAF9.6010700@oceana.com>	<87oejitfr2.fsf@windlord.stanford.edu>
	<4161AD00.10905@oceana.com> <87k6u6tfgg.fsf@windlord.stanford.edu>
Message-ID: <4161AEE4.9030000@oceana.com>

Russ Allbery wrote:

> Ken Murchison <ken@oceana.com> writes:
> 
>>Russ Allbery wrote:
> 
> 
>>>431 is used for a deferral after CHECK, but we shouldn't reuse that
>>>code since a deferral after TAKETHIS is different and the two may be
>>>intermingled.  436 is used as the deferral for IHAVE, both as an
>>>initial response and after the article was sent.  We could potentially
>>>use it, but I'm not sure if that's a good idea or not.
> 
> 
>>Actually (maybe I'm being thick and/or short-sighted), but does it
>>matter whether we're getting deferred via CHECK or TAKETHIS?  In either
>>case we're going to have to try again.
> 
> 
> Hm.  That's a good point.  Maybe it doesn't, actually.  Can anyone else
> think of a reason why it might matter?  (It would matter for success or
> rejection, since the sender of CHECK and TAKETHIS commands is not required
> to keep track of order or figure out if a particular response is in reply
> to CHECK or to TAKETHIS, but it seems like the behavior would be the same
> either way for a deferral.)

The more I think about this, isn't 439 essentially a deferral?  It says 
the transfer failed, but why?  Does mean that we should retry or does 
this mean that we rejected the article (e.g. don't send it again).

I think what we need is a deferral (temp fail) code and a rejection 
code.  We might be able to use 431 and the former and 439 as the latter. 
  Or if 439 already means deferral, then we can probably reuse 438 as a 
rejection code.

My guess is that  439 corresponds to 436 (second stage) and its a temp 
failure.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Mon Oct  4 13:31:59 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct  4 13:31:46 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <4161AEE4.9030000@oceana.com>
References: <200402022107.QAA09807@ietf.org>	<20040310105838.GM31826@finch-staff-1.thus.net>	<87k71qwvu9.fsf@windlord.stanford.edu>	<4161A81D.9090604@oceana.com>	<877jq6uuvu.fsf@windlord.stanford.edu>	<4161AAF9.6010700@oceana.com>	<87oejitfr2.fsf@windlord.stanford.edu>	<4161AD00.10905@oceana.com>
	<87k6u6tfgg.fsf@windlord.stanford.edu>
	<4161AEE4.9030000@oceana.com>
Message-ID: <4161B33F.3040405@oceana.com>

Ken Murchison wrote:

> Russ Allbery wrote:
> 
>> Ken Murchison <ken@oceana.com> writes:
>>
>>> Russ Allbery wrote:
>>
>>
>>
>>>> 431 is used for a deferral after CHECK, but we shouldn't reuse that
>>>> code since a deferral after TAKETHIS is different and the two may be
>>>> intermingled.  436 is used as the deferral for IHAVE, both as an
>>>> initial response and after the article was sent.  We could potentially
>>>> use it, but I'm not sure if that's a good idea or not.
>>
>>
>>
>>> Actually (maybe I'm being thick and/or short-sighted), but does it
>>> matter whether we're getting deferred via CHECK or TAKETHIS?  In either
>>> case we're going to have to try again.
>>
>>
>>
>> Hm.  That's a good point.  Maybe it doesn't, actually.  Can anyone else
>> think of a reason why it might matter?  (It would matter for success or
>> rejection, since the sender of CHECK and TAKETHIS commands is not 
>> required
>> to keep track of order or figure out if a particular response is in reply
>> to CHECK or to TAKETHIS, but it seems like the behavior would be the same
>> either way for a deferral.)
> 
> 
> The more I think about this, isn't 439 essentially a deferral?  It says 
> the transfer failed, but why?  Does mean that we should retry or does 
> this mean that we rejected the article (e.g. don't send it again).
> 
> I think what we need is a deferral (temp fail) code and a rejection 
> code.  We might be able to use 431 and the former and 439 as the latter. 
>  Or if 439 already means deferral, then we can probably reuse 438 as a 
> rejection code.
> 
> My guess is that  439 corresponds to 436 (second stage) and its a temp 
> failure.

Just to clarify, here's a table of current codes and meanings as I read 
them, and proposed codes where I have "[NNN]".  "NA" means not applicable.

				IHAVE	CHECK	TAKETHIS
transferred OK:			235	NA	239
send article:			335	238	NA
article not wanted:		435	438	[438]
transfer not possible (defer?):	436	431	[431]
transfer failed (defer?):	436	NA	439
transfer rejected:		437	NA	[438]

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Mon Oct  4 14:27:22 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Oct  4 14:27:24 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <4161AEE4.9030000@oceana.com> (Ken Murchison's message of "Mon,
	04 Oct 2004 16:13:24 -0400")
References: <200402022107.QAA09807@ietf.org>
	<20040310105838.GM31826@finch-staff-1.thus.net>
	<87k71qwvu9.fsf@windlord.stanford.edu> <4161A81D.9090604@oceana.com>
	<877jq6uuvu.fsf@windlord.stanford.edu> <4161AAF9.6010700@oceana.com>
	<87oejitfr2.fsf@windlord.stanford.edu> <4161AD00.10905@oceana.com>
	<87k6u6tfgg.fsf@windlord.stanford.edu> <4161AEE4.9030000@oceana.com>
Message-ID: <87k6u6rx6t.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> The more I think about this, isn't 439 essentially a deferral?  It says
> the transfer failed, but why?  Does mean that we should retry or does
> this mean that we rejected the article (e.g. don't send it again).

439 is a permanent rejection.  The article should not be sent again.

> I think what we need is a deferral (temp fail) code and a rejection
> code.  We might be able to use 431 and the former and 439 as the
> latter. Or if 439 already means deferral, then we can probably reuse 438
> as a rejection code.

> My guess is that 439 corresponds to 436 (second stage) and its a temp
> failure.

We definitely need to make it clearer that that's not the case, then.  :)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Mon Oct  4 14:29:16 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Oct  4 14:29:16 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <4161B33F.3040405@oceana.com> (Ken Murchison's message of "Mon,
	04 Oct 2004 16:31:59 -0400")
References: <200402022107.QAA09807@ietf.org>
	<20040310105838.GM31826@finch-staff-1.thus.net>
	<87k71qwvu9.fsf@windlord.stanford.edu> <4161A81D.9090604@oceana.com>
	<877jq6uuvu.fsf@windlord.stanford.edu> <4161AAF9.6010700@oceana.com>
	<87oejitfr2.fsf@windlord.stanford.edu> <4161AD00.10905@oceana.com>
	<87k6u6tfgg.fsf@windlord.stanford.edu> <4161AEE4.9030000@oceana.com>
	<4161B33F.3040405@oceana.com>
Message-ID: <87brfirx3n.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> Just to clarify, here's a table of current codes and meanings as I read
> them, and proposed codes where I have "[NNN]".  "NA" means not applicable.

>                                       IHAVE	CHECK	TAKETHIS
> transferred OK:			235	NA	239
> send article:                         335	238	NA
> article not wanted:                   435	438	[438]
> transfer not possible (defer?):	436	431	[431]
> transfer failed (defer?):             436	NA	439
> transfer rejected:                    437	NA	[438]

Article not wanted is 439 for TAKETHIS as previously noted, and similarly
for transfer rejected.  Both of the middle ones are deferral, and as noted
before I'm not sure that having two separate codes there is needed.  This
is what should be 438 (or 432 or 436) for TAKETHIS.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Mon Oct  4 16:20:38 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct  4 16:20:48 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <87brfirx3n.fsf@windlord.stanford.edu>
References: <200402022107.QAA09807@ietf.org>	<20040310105838.GM31826@finch-staff-1.thus.net>	<87k71qwvu9.fsf@windlord.stanford.edu>
	<4161A81D.9090604@oceana.com>	<877jq6uuvu.fsf@windlord.stanford.edu>
	<4161AAF9.6010700@oceana.com>	<87oejitfr2.fsf@windlord.stanford.edu>
	<4161AD00.10905@oceana.com>	<87k6u6tfgg.fsf@windlord.stanford.edu>
	<4161AEE4.9030000@oceana.com>	<4161B33F.3040405@oceana.com>
	<87brfirx3n.fsf@windlord.stanford.edu>
Message-ID: <4161DAC6.9090502@oceana.com>

Russ Allbery wrote:

> Article not wanted is 439 for TAKETHIS as previously noted, and similarly
> for transfer rejected.  Both of the middle ones are deferral, and as noted
> before I'm not sure that having two separate codes there is needed.  This
> is what should be 438 (or 432 or 436) for TAKETHIS.


OK, something like this?

			IHAVE	CHECK	TAKETHIS
xferred OK:		235	NA	239
send article:		335	238	NA
not wanted:		435	438	[438]
xfer not possible:	436	431	[431]
xfer failed:		436	NA	[431]
xfer rejected:		437	NA	439

Simply reusing 431 and 438 for TAKETHIS.  This might invalidate your 
argument that the response codes need to be unique between CHECK and 
TAKETHIS, but I don't see where this breaks anything.   My guess is that 
a client wouldn't be pipelining CHECK and TAKETHIS together.  The client 
will pipeline the CHECKs, and process the results.  Then based on these 
results, it will pipeline TAKETHIS.  Am I missing something?  Hmm,
even if a client *does* interleave CHECK and TAKETHIS this might still 
work (with a side-effect of trying TAKETHIS twice on an article that the 
server doesn't want).

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Mon Oct  4 16:25:56 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Oct  4 16:25:57 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <4161DAC6.9090502@oceana.com> (Ken Murchison's message of "Mon,
	04 Oct 2004 19:20:38 -0400")
References: <200402022107.QAA09807@ietf.org>
	<20040310105838.GM31826@finch-staff-1.thus.net>
	<87k71qwvu9.fsf@windlord.stanford.edu> <4161A81D.9090604@oceana.com>
	<877jq6uuvu.fsf@windlord.stanford.edu> <4161AAF9.6010700@oceana.com>
	<87oejitfr2.fsf@windlord.stanford.edu> <4161AD00.10905@oceana.com>
	<87k6u6tfgg.fsf@windlord.stanford.edu> <4161AEE4.9030000@oceana.com>
	<4161B33F.3040405@oceana.com> <87brfirx3n.fsf@windlord.stanford.edu>
	<4161DAC6.9090502@oceana.com>
Message-ID: <87mzz2oykb.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> OK, something like this?

> 			IHAVE	CHECK	TAKETHIS
> xferred OK:		235	NA	239
> send article:		335	238	NA
> not wanted:		435	438	[438]
> xfer not possible:	436	431	[431]
> xfer failed:		436	NA	[431]
> xfer rejected:	437	NA	439

> Simply reusing 431 and 438 for TAKETHIS.

If I understand your table correctly, "not wanted" is the decision made
before the article is sent, which isn't possible for TAKETHIS.  So that
column would be NA for TAKETHIS.  I think we only have one new code that
we need to come up with, where you currently have [431].

> This might invalidate your argument that the response codes need to be
> unique between CHECK and TAKETHIS, but I don't see where this breaks
> anything.  My guess is that a client wouldn't be pipelining CHECK and
> TAKETHIS together.  The client will pipeline the CHECKs, and process the
> results.  Then based on these results, it will pipeline TAKETHIS.  Am I
> missing something?  Hmm, even if a client *does* interleave CHECK and
> TAKETHIS this might still work (with a side-effect of trying TAKETHIS
> twice on an article that the server doesn't want).

I think, with the above correction, that this will work okay unless
clients really want to handle TAKETHIS deferrals different than CHECK
deferrals but don't want to do the bookkeeping to keep track of whether
the article was offered with TAKETHIS or with CHECK.  The really important
part is to keep 238, 438, and 439 distinct.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Mon Oct  4 18:37:33 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct  4 18:37:44 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <87mzz2oykb.fsf@windlord.stanford.edu>
References: <200402022107.QAA09807@ietf.org>	<20040310105838.GM31826@finch-staff-1.thus.net>	<87k71qwvu9.fsf@windlord.stanford.edu>
	<4161A81D.9090604@oceana.com>	<877jq6uuvu.fsf@windlord.stanford.edu>
	<4161AAF9.6010700@oceana.com>	<87oejitfr2.fsf@windlord.stanford.edu>
	<4161AD00.10905@oceana.com>	<87k6u6tfgg.fsf@windlord.stanford.edu>
	<4161AEE4.9030000@oceana.com>	<4161B33F.3040405@oceana.com>
	<87brfirx3n.fsf@windlord.stanford.edu>	<4161DAC6.9090502@oceana.com>
	<87mzz2oykb.fsf@windlord.stanford.edu>
Message-ID: <4161FADD.8090603@oceana.com>

Russ Allbery wrote:
> Ken Murchison <ken@oceana.com> writes:
> 
> 
>>OK, something like this?
> 
> 
>>			IHAVE	CHECK	TAKETHIS
>>xferred OK:		235	NA	239
>>send article:		335	238	NA
>>not wanted:		435	438	[438]
>>xfer not possible:	436	431	[431]
>>xfer failed:		436	NA	[431]
>>xfer rejected:	437	NA	439
> 
> 
>>Simply reusing 431 and 438 for TAKETHIS.
> 
> 
> If I understand your table correctly, "not wanted" is the decision made
> before the article is sent, which isn't possible for TAKETHIS.  So that
> column would be NA for TAKETHIS.

I still think that "not wanted" (a.k.a. "already have this msgid") is 
still valid for TAKETHIS.  This could occur because a client tries to 
send an article immediately with TAKETHIS (w/o having done CHECK first) 
or because of the race condition between running CHECK and TAKETHIS 
(e.g. another process accepts the particular message in the interval). 
Having said that, 439 would suffice for this case, but I look at that as 
"not accepting articles for this group" rather than "already have this 
msgid".

I'll defer to the consensus on whether to document 438 for TAKETHIS.


> I think we only have one new code that
> we need to come up with, where you currently have [431].

[text removed]

> I think, with the above correction, that this will work okay unless
> clients really want to handle TAKETHIS deferrals different than CHECK
> deferrals but don't want to do the bookkeeping to keep track of whether
> the article was offered with TAKETHIS or with CHECK.  The really important
> part is to keep 238, 438, and 439 distinct.

I'll go with 431 for now until someone can come up with a case for it 
having to be unique.

Actually the "xfer not possible" and "xfer failed" cases are one in the 
same for TAKETHIS, so I'll just document 431 as "xfer failed".

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Mon Oct  4 18:43:58 2004
From: rra at stanford.edu (Russ Allbery)
Date: Mon Oct  4 18:44:03 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <4161FADD.8090603@oceana.com> (Ken Murchison's message of "Mon,
	04 Oct 2004 21:37:33 -0400")
References: <200402022107.QAA09807@ietf.org>
	<20040310105838.GM31826@finch-staff-1.thus.net>
	<87k71qwvu9.fsf@windlord.stanford.edu> <4161A81D.9090604@oceana.com>
	<877jq6uuvu.fsf@windlord.stanford.edu> <4161AAF9.6010700@oceana.com>
	<87oejitfr2.fsf@windlord.stanford.edu> <4161AD00.10905@oceana.com>
	<87k6u6tfgg.fsf@windlord.stanford.edu> <4161AEE4.9030000@oceana.com>
	<4161B33F.3040405@oceana.com> <87brfirx3n.fsf@windlord.stanford.edu>
	<4161DAC6.9090502@oceana.com> <87mzz2oykb.fsf@windlord.stanford.edu>
	<4161FADD.8090603@oceana.com>
Message-ID: <87oejix7kx.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> I still think that "not wanted" (a.k.a. "already have this msgid") is
> still valid for TAKETHIS.  This could occur because a client tries to
> send an article immediately with TAKETHIS (w/o having done CHECK first)
> or because of the race condition between running CHECK and TAKETHIS
> (e.g. another process accepts the particular message in the
> interval). Having said that, 439 would suffice for this case, but I look
> at that as "not accepting articles for this group" rather than "already
> have this msgid".

> I'll defer to the consensus on whether to document 438 for TAKETHIS.

Well, I've never seen an implementation that did that; all the
implementations I'm aware of send 439 for that case.  There is no
distinction drawn in the protocol between duplicate messages and messages
rejected for any other reason, just between messages rejected before
they're sent and messages rejected after they're sent.  (They could be
rejected before they're sent for other reasons than being duplicates --
for example, INN can be configured to query an external filter for each
message ID sent via CHECK or IHAVE and allow rejections in advance based
on some external knowledge.)  Reports and statistics are based on that
distinction too (for example, innfeed's statistics report the counts of
439 responses vs. 438 responses, intending them to be used in the above
sense).

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From clive at demon.net  Tue Oct  5 00:59:41 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Oct  5 00:59:45 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-03
Message-ID: <20041005075941.GB18978@finch-staff-1.thus.net>

Only two small points.

(1) Near the end of page 6 is the sentence "The client SHOULD send a LIST
EXTENSIONS command as the first command after a successful TLS negotiation",
with discussion of LIST EXTENSIONS in the next paragraph. I'm not sure of
the point of that sentence and in particular the SHOULD: the previous
sentence explains why you must forget any previous knowledge, and the next
paragraph says that the extension list could change.

In particular, if you want to do TLS to protect core commands, there's no
need to issue a LIST EXTENSIONS at all.

(2) I suggested a change to the last sentence of the first paragraph of
2.2.2.1. I've just realized I was slightly wrong - there are other commands
(notably LIST EXTENSIONS) for whice 483 is not permitted. So change:

    further NNTP commands from the client (other than a QUIT command)

to:

    further substantive NNTP commands from the client (note that the 483
    response is forbidden for some commands such as QUIT)

Alternatively, delete the "(other than a QUIT command)" comment entirely,
relying on [NNTP] to make the point.

You might also want to add a LIST EXTENSIONS to the last example to show
this.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Oct  5 01:23:55 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Oct  5 01:24:08 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05 &
	draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <41616283.9060901@oceana.com>
References: <41616283.9060901@oceana.com>
Message-ID: <20041005082354.GC18978@finch-staff-1.thus.net>

Ken Murchison said:
> Just sent these two drafts which hopefully include all issues/comments 
> up to Clive's/Jeff's from this morning.  Changes from the previous 
> versions are listed in Sections 0.
> 
> http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-authinfo-05.txt
> http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-tls-nntp-03.txt

Just going through these now. Comments on the latter sent separately.

I've just realized there's a potential deadlock: what stops a server giving
483 to AUTHINFO and 480 to STARTTLS? Do we want to forbid the latter
(particularly since you can't use STARTTLS after authentication), or do we
want to leave this in the "too dumb to worry about" pile?

In authinfo-05, section 2.2, para 5 (of 7) I don't see the point of the
last sentence and in particular the SHOULD. See the similar comment on the
TLS document for details.
 
I still think the last paragraph of 2.2 does things wrong; I've given
my preference several times, so I won't repeat it again.

Apart from this, no comments. Good job.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Tue Oct  5 06:43:25 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Oct  5 06:43:13 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05 &
	draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <20041005082354.GC18978@finch-staff-1.thus.net>
References: <41616283.9060901@oceana.com>
	<20041005082354.GC18978@finch-staff-1.thus.net>
Message-ID: <4162A4FD.4080003@oceana.com>

Clive D.W. Feather wrote:
> Ken Murchison said:
> 
>>Just sent these two drafts which hopefully include all issues/comments 
>>up to Clive's/Jeff's from this morning.  Changes from the previous 
>>versions are listed in Sections 0.
>>
>>http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-authinfo-05.txt
>>http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-tls-nntp-03.txt
> 
> 
> Just going through these now. Comments on the latter sent separately.
> 
> I've just realized there's a potential deadlock: what stops a server giving
> 483 to AUTHINFO and 480 to STARTTLS? Do we want to forbid the latter
> (particularly since you can't use STARTTLS after authentication), or do we
> want to leave this in the "too dumb to worry about" pile?

Not a bad idea, but I don't care either way.


> In authinfo-05, section 2.2, para 5 (of 7) I don't see the point of the
> last sentence and in particular the SHOULD. See the similar comment on the
> TLS document for details.

This dovetails with the fact that the capabilties might change after 
auth/tls and the client should check for this.  Russ, care to comment? 
I'm not married to this at this point, so I'll let the chair decide.


> I still think the last paragraph of 2.2 does things wrong; I've given
> my preference several times, so I won't repeat it again.

I apologize, I must have lost track of this in the threads or assumed 
that we had a consensus (all 4 of us :) otherwise.  Can you reiterate 
your argument and suggested text?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Tue Oct  5 06:46:18 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Oct  5 06:46:08 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <20041005075941.GB18978@finch-staff-1.thus.net>
References: <20041005075941.GB18978@finch-staff-1.thus.net>
Message-ID: <4162A5AA.4070708@oceana.com>

Clive D.W. Feather wrote:

> Only two small points.
> 
> (1) Near the end of page 6 is the sentence "The client SHOULD send a LIST
> EXTENSIONS command as the first command after a successful TLS negotiation",
> with discussion of LIST EXTENSIONS in the next paragraph. I'm not sure of
> the point of that sentence and in particular the SHOULD: the previous
> sentence explains why you must forget any previous knowledge, and the next
> paragraph says that the extension list could change.

I addressed this a little in your other post.


> In particular, if you want to do TLS to protect core commands, there's no
> need to issue a LIST EXTENSIONS at all.

Huh?  I don't follow.  After TLS, the available auth mechanisms may 
change, and a client really should check for this.


> (2) I suggested a change to the last sentence of the first paragraph of
> 2.2.2.1. I've just realized I was slightly wrong - there are other commands
> (notably LIST EXTENSIONS) for whice 483 is not permitted. So change:

Good point.


>     further NNTP commands from the client (other than a QUIT command)
> 
> to:
> 
>     further substantive NNTP commands from the client (note that the 483
>     response is forbidden for some commands such as QUIT)
> 
> Alternatively, delete the "(other than a QUIT command)" comment entirely,
> relying on [NNTP] to make the point.

Either way is fine with me.  Russ?


> You might also want to add a LIST EXTENSIONS to the last example to show
> this.

I'll look at this.


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From jeff at litech.org  Tue Oct  5 07:21:40 2004
From: jeff at litech.org (Jeffrey M. Vinocur)
Date: Tue Oct  5 07:22:01 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05 &
	draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <4162A4FD.4080003@oceana.com>
References: <41616283.9060901@oceana.com>
	<20041005082354.GC18978@finch-staff-1.thus.net>
	<4162A4FD.4080003@oceana.com>
Message-ID: <E02C0F40-16D9-11D9-B4F6-000393032FF0@litech.org>

On Oct 5, 2004, at 9:43 AM, Ken Murchison wrote:

> Clive D.W. Feather wrote:
>> Just going through these now. Comments on the latter sent separately.
>> I've just realized there's a potential deadlock: what stops a server 
>> giving
>> 483 to AUTHINFO and 480 to STARTTLS? Do we want to forbid the latter
>> (particularly since you can't use STARTTLS after authentication), or 
>> do we
>> want to leave this in the "too dumb to worry about" pile?
>
> Not a bad idea, but I don't care either way.

I can reasonably see forbidding a 480 response to STARTTLS, I think.  
Thoughts on that?

If we don't like that idea, I'd say not to worry about this case any 
further.  I mean, it's not a protocol issue, for one thing.  And it's a 
fairly uncheckable/unenforceable specification.



-- 
Jeffrey M. Vinocur
jeff@litech.org

From ken at oceana.com  Tue Oct  5 07:38:13 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Oct  5 07:37:59 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05
	&	draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <E02C0F40-16D9-11D9-B4F6-000393032FF0@litech.org>
References: <41616283.9060901@oceana.com>	<20041005082354.GC18978@finch-staff-1.thus.net>	<4162A4FD.4080003@oceana.com>
	<E02C0F40-16D9-11D9-B4F6-000393032FF0@litech.org>
Message-ID: <4162B1D5.7000606@oceana.com>

Jeffrey M. Vinocur wrote:

> On Oct 5, 2004, at 9:43 AM, Ken Murchison wrote:
> 
>> Clive D.W. Feather wrote:
>>
>>> Just going through these now. Comments on the latter sent separately.
>>> I've just realized there's a potential deadlock: what stops a server 
>>> giving
>>> 483 to AUTHINFO and 480 to STARTTLS? Do we want to forbid the latter
>>> (particularly since you can't use STARTTLS after authentication), or 
>>> do we
>>> want to leave this in the "too dumb to worry about" pile?
>>
>>
>> Not a bad idea, but I don't care either way.
> 
> 
> I can reasonably see forbidding a 480 response to STARTTLS, I think.  
> Thoughts on that?

I agree.  Since we don't allow STARTTLS after AUTHINFO, a 480 response 
to STARTTLS is nonsensical.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From clive at demon.net  Tue Oct  5 21:39:29 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Oct  5 21:39:39 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05 &
	draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <4162A4FD.4080003@oceana.com>
References: <41616283.9060901@oceana.com>
	<20041005082354.GC18978@finch-staff-1.thus.net>
	<4162A4FD.4080003@oceana.com>
Message-ID: <20041006043929.GJ31647@finch-staff-1.thus.net>

Ken Murchison said:
[...]

I'm offline nearly all of today so can't do it now. I'll reply properly
to everything tomorrow.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Mon Oct 11 11:28:16 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct 11 11:28:12 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <20041005075941.GB18978@finch-staff-1.thus.net>
References: <20041005075941.GB18978@finch-staff-1.thus.net>
Message-ID: <416AD0C0.8040903@oceana.com>

Clive D.W. Feather wrote:

> (2) I suggested a change to the last sentence of the first paragraph of
> 2.2.2.1. I've just realized I was slightly wrong - there are other commands
> (notably LIST EXTENSIONS) for whice 483 is not permitted. So change:
> 
>     further NNTP commands from the client (other than a QUIT command)
> 
> to:
> 
>     further substantive NNTP commands from the client (note that the 483
>     response is forbidden for some commands such as QUIT)
> 
> Alternatively, delete the "(other than a QUIT command)" comment entirely,
> relying on [NNTP] to make the point.

How about "... further restricted NNTP commands from the client with a 
483 response code ...."


> You might also want to add a LIST EXTENSIONS to the last example to show
> this.

Actually, doesn't the use of GROUP local.public in the last example 
already illustrate this point?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Tue Oct 12 15:06:28 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Oct 12 15:06:30 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
Message-ID: <87acurh9qz.fsf@windlord.stanford.edu>

Okay, let's see if I can explain this in a way that makes it both fairly
simple and shows why people want it.  I'm going to cc Mark Crispin in the
hope that he'll be willing to clarify any portions of this that I didn't
quite get right.

I'm sorry that this has taken me so long; I have rather too many balls in
the air just at the moment and am scrambling desperately to try to keep
track of all of them.

The way that a proper client of a protocol that supports an extension
mechanism should behave is that immediately after connecting, it inquires
as to the capabilities of the server.  Subsequently, it assumes those
listed capabilities are accurate and does not attempt to use any
capabilities that were not advertised.  I realize that this is not how
NNTP clients have ever worked in the past -- this is something that we're
seeking to change by adding a proper extension mechanism.  This is how
everyone else does it (IMAP, POP, SMTP, etc.), and we're trying to bring
NNTP in line with other Internet protocols.

Given this new approach, and given the way a client should be implemented
when complying with our draft, there are two problems with the LIST
EXTENSIONS mechanism as currently present in our base draft.  After
talking with Mark Crispin about this, I think that this is something that
we can and should correct before the draft is published, since we do have
the opportunity.

The first problem is that, since LIST EXTENSIONS has been around as an
idea for quite some time, there is at least one known badly bogus
implementation.  Netscape Collabra implements LIST EXTENSIONS, but the
information that it returns cannot be relied upon.  In particular, it
advertises OVER but doesn't implement OVER properly.  We'd previously
discussed this problem and had tentatively decided to live with it, but
there's a better solution described below.

The second problem is that, based on our drafts, at least one
implementation (INN) and possibly others have started adding LIST
EXTENSIONS.  However, the extension list was not finalized, and in
particular AUTHINFO was not advertised by the early INN implementation
even though AUTHINFO USER was supported.  A client that uses the extension
mechanism properly would therefore think that those servers didn't support
authentication when they do.

The proposed solution is this:  Specify in our base draft that any server
that fully complies with the new specification advertise the NNTPv2
capability as part of LIST EXTENSIONS.  Clients can then ignore or treat
with dubiousness any server that doesn't advertise that capability, thus
solving the Collabra problem.

We also need to somehow specify that any server that implements AUTHINFO
USER needs to advertise it if it advertises the NNTPv2 capability.  I'm
not completely sure of the best way to do that; one way would be to
specifically mention the three legacy extensions that we're standardizing
(AUTHINFO, STARTTLS, and CHECK/TAKETHIS or STREAMING), and another would
be to require that the server advertise an extension for any commands that
don't begin with X.  A third approach would be to recognize that this
blessing of widely implemented commands that predated the extension
mechanism is a one-time transition.  This probably requires some more
discussion to find the best approach from a transition standpoint.

However, the goal is to make LIST EXTENSIONS reliable, including for
everything that we're blessing under its existing command names, so that
clients can just read the output and then use that information without
having to second-guess it.  Without doing this, LIST EXTENSIONS is both
badly different from the way that other protocols use it and not actually
useful for clients.

I think this approach has a lot of merit, and that it's easy enough to add
the NNTPv2 requirement to the existing draft.  I also think that this is a
minor enough change that it's worth doing this late in the process,
although I'd appreciate it if Scott would check me on this.
(Unfortunately, Mark had missed the IETF-wide last call notification and
this issue didn't come up until afterwards.)  Note that this method of
advertising a protocol version in the extensions output has also been used
successfully with IMAP.

Thoughts?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Tue Oct 12 15:17:17 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Oct 12 15:17:18 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <416A9FD2.3020509@oceana.com> (Ken Murchison's message of "Mon,
	11 Oct 2004 10:59:30 -0400")
References: <200402022107.QAA09807@ietf.org>
	<20040310105838.GM31826@finch-staff-1.thus.net>
	<87k71qwvu9.fsf@windlord.stanford.edu> <416A9FD2.3020509@oceana.com>
Message-ID: <87wtxvfuoi.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> After thinking about this some more, should we even bother discussing
> MODE STREAM as a formal part of the STREAMING extension?  Since we all
> agree that MODE STREAM has been historically used as a capability
> discovery mechanism, which is now deprecated by LIST EXTENSIONS, what's
> the point of formalizing it?  I can see possibly documenting it as an
> obsolete command somewhere in the document, but including it as part of
> the STREAMING extension seems wrong.

I'm worried about transition issues.  I believe there are implementations
that will reject CHECK/TAKETHIS unless MODE STREAM has been sent first, so
I'd like to warn implementors that for backward compatibility, they should
implement MODE STREAM on the receiving end even if it's a no-op and send
it before using CHECK/TAKETHIS.  (While strongly discouraging this
implementation method in the future, of course.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Tue Oct 12 15:20:29 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Oct 12 15:20:31 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05 &
	draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <4162A4FD.4080003@oceana.com> (Ken Murchison's message of "Tue,
	05 Oct 2004 09:43:25 -0400")
References: <41616283.9060901@oceana.com>
	<20041005082354.GC18978@finch-staff-1.thus.net>
	<4162A4FD.4080003@oceana.com>
Message-ID: <87sm8jfuj6.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:
> Clive D.W. Feather wrote:

>> In authinfo-05, section 2.2, para 5 (of 7) I don't see the point of the
>> last sentence and in particular the SHOULD. See the similar comment on
>> the TLS document for details.

> This dovetails with the fact that the capabilties might change after
> auth/tls and the client should check for this.  Russ, care to comment? 
> I'm not married to this at this point, so I'll let the chair decide.

As I understand it, any time that the capabilities change, the client
needs to query them again in order for the extensions mechanism to work
the way that it works for other protocols.  Therefore, the only time that
a client should continue without sending LIST EXTENSIONS is if they intend
to not use any extensions whatsoever, and if we're advertising the NNTP
protocol version in LIST EXTENSIONS as well, I think it would be better to
just have clients always send it.  So the SHOULD seems right to me.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Tue Oct 12 15:20:41 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Oct 12 15:20:43 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05 &
	draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <4162B1D5.7000606@oceana.com> (Ken Murchison's message of "Tue,
	05 Oct 2004 10:38:13 -0400")
References: <41616283.9060901@oceana.com>
	<20041005082354.GC18978@finch-staff-1.thus.net>
	<4162A4FD.4080003@oceana.com>
	<E02C0F40-16D9-11D9-B4F6-000393032FF0@litech.org>
	<4162B1D5.7000606@oceana.com>
Message-ID: <87oej7fuiu.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:
> Jeffrey M. Vinocur wrote:

>> I can reasonably see forbidding a 480 response to STARTTLS, I think.
>> Thoughts on that?

> I agree.  Since we don't allow STARTTLS after AUTHINFO, a 480 response
> to STARTTLS is nonsensical.

Sounds right to me.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Tue Oct 12 15:21:46 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Oct 12 15:21:47 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <416AD0C0.8040903@oceana.com> (Ken Murchison's message of "Mon,
	11 Oct 2004 14:28:16 -0400")
References: <20041005075941.GB18978@finch-staff-1.thus.net>
	<416AD0C0.8040903@oceana.com>
Message-ID: <87k6tvfuh1.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:
> Clive D.W. Feather wrote:

>> (2) I suggested a change to the last sentence of the first paragraph of
>> 2.2.2.1. I've just realized I was slightly wrong - there are other commands
>> (notably LIST EXTENSIONS) for whice 483 is not permitted. So change:
>>     further NNTP commands from the client (other than a QUIT command)
>> to:
>>     further substantive NNTP commands from the client (note that the 483
>>     response is forbidden for some commands such as QUIT)
>> Alternatively, delete the "(other than a QUIT command)" comment entirely,
>> relying on [NNTP] to make the point.

> How about "... further restricted NNTP commands from the client with a
> 483 response code ...."

I like restricted better than substantive.  I think it's worthwhile making
sure that people know that there are exceptions like QUIT here in this
text.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Tue Oct 12 15:34:33 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Oct 12 15:34:42 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <87wtxvfuoi.fsf@windlord.stanford.edu>
References: <200402022107.QAA09807@ietf.org>	<20040310105838.GM31826@finch-staff-1.thus.net>	<87k71qwvu9.fsf@windlord.stanford.edu>
	<416A9FD2.3020509@oceana.com>
	<87wtxvfuoi.fsf@windlord.stanford.edu>
Message-ID: <416C5BF9.7020004@oceana.com>

Russ Allbery wrote:
> Ken Murchison <ken@oceana.com> writes:
> 
> 
>>After thinking about this some more, should we even bother discussing
>>MODE STREAM as a formal part of the STREAMING extension?  Since we all
>>agree that MODE STREAM has been historically used as a capability
>>discovery mechanism, which is now deprecated by LIST EXTENSIONS, what's
>>the point of formalizing it?  I can see possibly documenting it as an
>>obsolete command somewhere in the document, but including it as part of
>>the STREAMING extension seems wrong.
> 
> 
> I'm worried about transition issues.  I believe there are implementations
> that will reject CHECK/TAKETHIS unless MODE STREAM has been sent first, so
> I'd like to warn implementors that for backward compatibility, they should
> implement MODE STREAM on the receiving end even if it's a no-op and send
> it before using CHECK/TAKETHIS.  (While strongly discouraging this
> implementation method in the future, of course.)

I guess what I'm getting at is is MODE STREAM a formal part of the 
STREAMING extension, or just an obsolete command that some 
implementations may need for backwards compatibility.

It just rubs me the wrong way to formalize a command that we're trying 
toi deprecate.  Of course, I guess we're doing this already aith 
AUTHINFO USER/PASS.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Tue Oct 12 15:36:06 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Oct 12 15:36:09 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <416C5BF9.7020004@oceana.com> (Ken Murchison's message of "Tue,
	12 Oct 2004 18:34:33 -0400")
References: <200402022107.QAA09807@ietf.org>
	<20040310105838.GM31826@finch-staff-1.thus.net>
	<87k71qwvu9.fsf@windlord.stanford.edu> <416A9FD2.3020509@oceana.com>
	<87wtxvfuoi.fsf@windlord.stanford.edu> <416C5BF9.7020004@oceana.com>
Message-ID: <87655fftt5.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> I guess what I'm getting at is is MODE STREAM a formal part of the
> STREAMING extension, or just an obsolete command that some
> implementations may need for backwards compatibility.

I consider it to be the latter, but I do think that people need to
implement it for the time being.

> It just rubs me the wrong way to formalize a command that we're trying
> toi deprecate.  Of course, I guess we're doing this already aith
> AUTHINFO USER/PASS.

Yeah, the case seems somewhat analogous.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Tue Oct 12 16:34:48 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Oct 12 16:34:57 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <87k6tvfuh1.fsf@windlord.stanford.edu>
References: <20041005075941.GB18978@finch-staff-1.thus.net>	<416AD0C0.8040903@oceana.com>
	<87k6tvfuh1.fsf@windlord.stanford.edu>
Message-ID: <416C6A18.9000005@oceana.com>

Russ Allbery wrote:
> Ken Murchison <ken@oceana.com> writes:
> 
>>Clive D.W. Feather wrote:
> 
> 
>>>(2) I suggested a change to the last sentence of the first paragraph of
>>>2.2.2.1. I've just realized I was slightly wrong - there are other commands
>>>(notably LIST EXTENSIONS) for whice 483 is not permitted. So change:
>>>    further NNTP commands from the client (other than a QUIT command)
>>>to:
>>>    further substantive NNTP commands from the client (note that the 483
>>>    response is forbidden for some commands such as QUIT)
>>>Alternatively, delete the "(other than a QUIT command)" comment entirely,
>>>relying on [NNTP] to make the point.
> 
> 
>>How about "... further restricted NNTP commands from the client with a
>>483 response code ...."
> 
> 
> I like restricted better than substantive.  I think it's worthwhile making
> sure that people know that there are exceptions like QUIT here in this
> text.

Suggested text?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Tue Oct 12 16:41:53 2004
From: rra at stanford.edu (Russ Allbery)
Date: Tue Oct 12 16:41:54 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <416C6A18.9000005@oceana.com> (Ken Murchison's message of "Tue,
	12 Oct 2004 19:34:48 -0400")
References: <20041005075941.GB18978@finch-staff-1.thus.net>
	<416AD0C0.8040903@oceana.com> <87k6tvfuh1.fsf@windlord.stanford.edu>
	<416C6A18.9000005@oceana.com>
Message-ID: <87r7o3ec72.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:
> Russ Allbery wrote:

>>> How about "... further restricted NNTP commands from the client with a
>>> 483 response code ...."

>> I like restricted better than substantive.  I think it's worthwhile
>> making sure that people know that there are exceptions like QUIT here
>> in this text.

> Suggested text?

Your text looked fine to me; sorry, I wasn't clear.  I just like having a
word in there like "restricted" so that there's the implication that there
are still some other commands you can use.  I'm happy to defer exactly
what commands those are to the base document, which already covers that.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Tue Oct 12 17:14:34 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Oct 12 17:14:46 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <87r7o3ec72.fsf@windlord.stanford.edu>
References: <20041005075941.GB18978@finch-staff-1.thus.net>	<416AD0C0.8040903@oceana.com>
	<87k6tvfuh1.fsf@windlord.stanford.edu>	<416C6A18.9000005@oceana.com>
	<87r7o3ec72.fsf@windlord.stanford.edu>
Message-ID: <416C736A.50104@oceana.com>

Russ Allbery wrote:
> Ken Murchison <ken@oceana.com> writes:
> 
>>Russ Allbery wrote:
> 
> 
>>>>How about "... further restricted NNTP commands from the client with a
>>>>483 response code ...."
> 
> 
>>>I like restricted better than substantive.  I think it's worthwhile
>>>making sure that people know that there are exceptions like QUIT here
>>>in this text.
> 
> 
>>Suggested text?
> 
> 
> Your text looked fine to me; sorry, I wasn't clear.  I just like having a
> word in there like "restricted" so that there's the implication that there
> are still some other commands you can use.  I'm happy to defer exactly
> what commands those are to the base document, which already covers that.

Cool.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Tue Oct 12 18:22:37 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Oct 12 18:22:50 2004
Subject: [NNTP] Changes to draft-ietf-nntpext-tls-nntp-03
Message-ID: <416C835D.50507@oceana.com>

Based on list traffic, here are the only changes that I have to this 
draft for a -04 revision (and hopefully WGLC).  I'm not sure if the 
"MUST NOT return either 480 or 483" is correct grammar.  Should this be 
"either 480 nor 483", should I remove "either", or is there better 
english available that I'm too thick to come up with?


@@ -233,8 +225,8 @@
  a connection with these properties.  The client MAY therefore send
  STARTTLS after receiving a 483 response; the client also MAY decide to
  send STARTTLS without previously receiving a 483 response.
-Additionally, the server MUST NOT return 483 in response to the
-STARTTLS command.
+Additionally, the server MUST NOT return either 480 or 483 in response
+to the STARTTLS command.

  If the server is unable to initiate the TLS negotiation for any reason
  (e.g. a server configuration or resource problem), the server MUST
@@ -289,8 +281,8 @@
  is not high enough for it to continue, it SHOULD issue a QUIT command
  immediately after the TLS negotiation is complete.  If the NNTP server
  decides that the level of authentication or privacy is not high enough
-for it to continue, it SHOULD either reject further NNTP commands from
-the client (other than a QUIT command) with a 483 response code
+for it to continue, it SHOULD either reject further restricted NNTP
+commands from the client with a 483 response code
  (possibly with a text string such as "Command refused due to lack of
  security"), or reject a command with a 400 response code (possibly
  with a text string such as "Connection closing due to lack of

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Wed Oct 13 07:39:30 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Oct 13 07:38:55 2004
Subject: [NNTP] Re: [ietf-nntp] I-D ACTION:draft-ietf-nntpext-base-24.txt
In-Reply-To: <200409081936.PAA09860@ietf.org>
References: <200409081936.PAA09860@ietf.org>
Message-ID: <416D3E22.80100@oceana.com>

Internet-Drafts@ietf.org wrote:

> A New Internet-Draft is available from the on-line Internet-Drafts directories.
> This draft is a work item of the NNTP Extensions Working Group of the IETF.
> 
> 	Title		: Network News Transport Protocol
> 	Author(s)	: C. Feather
> 	Filename	: draft-ietf-nntpext-base-24.txt
> 	Pages		: 106
> 	Date		: 2004-9-8

Just a general comment.  The pagination of this particular revision is a
mess.  There aren't any pagebreak characters and even if I add them
between the headers and footers, some pages contain too many lines.  I
assume this is a result of some sort of software burp.  The long and
short of it is that this current document is unsuitable for printing,
when compared to other I-Ds.

I last printed -21 which was fine, so something changed in the text
generation between -21 and -24

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp


From ken at oceana.com  Wed Oct 13 08:01:09 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Oct 13 08:00:38 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <87acurh9qz.fsf@windlord.stanford.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
Message-ID: <416D4335.2010103@oceana.com>

Russ Allbery wrote:

[text removed]


I believe you have stated the problem(s) accurately.


> The proposed solution is this:  Specify in our base draft that any server
> that fully complies with the new specification advertise the NNTPv2
> capability as part of LIST EXTENSIONS.  Clients can then ignore or treat
> with dubiousness any server that doesn't advertise that capability, thus
> solving the Collabra problem.

I'd submit that LIST EXTENSIONS is no longer an optional command for the 
server.  Any server compliant with with RFC 977bis MUST implement LIST 
EXTENSIONS and MUST advertise at least the NNTPv2 capability, even if no 
extensions are implemented.  This serves to tell the client that 
previously optional/non-standard commands that we have standardized as 
part of the base specification (e.g. DATE) are supported.


> We also need to somehow specify that any server that implements AUTHINFO
> USER needs to advertise it if it advertises the NNTPv2 capability.  I'm
> not completely sure of the best way to do that; one way would be to
> specifically mention the three legacy extensions that we're standardizing
> (AUTHINFO, STARTTLS, and CHECK/TAKETHIS or STREAMING), and another would
> be to require that the server advertise an extension for any commands that
> don't begin with X.  A third approach would be to recognize that this
> blessing of widely implemented commands that predated the extension
> mechanism is a one-time transition.  This probably requires some more
> discussion to find the best approach from a transition standpoint.

First, I think that the base doc and/or any extension docs have to make 
it clear that if a NNTPv2 server implements an extension it MUST 
advertise the appropriate extension label via LIST EXTENSIONS.

As far as the legacy extensions which we are standardizing, we need to 
document somewhere that any server which supports one or more of these 
extensions and is upgraded to be compliant with RFC 977bis MUST also be 
upgraded to be compliant with the standardized versions of these 
extensions (including advertising it where appropriate).  This is the 
only way that I can see that a client which sees NNTPv2 advertised will 
know if these extensions are supported and how they will behave.

Unfortunately, I don't know where this should be documented.  I don't 
think we can put it in the base doc since we don't want the base doc 
referencing extension docs.  Putting it in the extensions docs doesn't 
really help because a server author may fail to reference them when 
upgrading to RFC 977bis compliance.  Perhaps the best thing would be to 
have a companion (Informational) document to RFC 977bis discussing 
compatibility/upgrade issues.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Wed Oct 13 08:11:47 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Oct 13 08:11:14 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <416D4335.2010103@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D4335.2010103@oceana.com>
Message-ID: <416D45B3.7030003@oceana.com>

Ken Murchison wrote:

> As far as the legacy extensions which we are standardizing, we need to 
> document somewhere that any server which supports one or more of these 
> extensions and is upgraded to be compliant with RFC 977bis MUST also be 
> upgraded to be compliant with the standardized versions of these 
> extensions (including advertising it where appropriate).  This is the 
> only way that I can see that a client which sees NNTPv2 advertised will 
> know if these extensions are supported and how they will behave.

This pretty much requires us to have the base doc and the AUTHINFO, 
STARTTLS, and STREAMING extension docs progress simultaneously.

The AUTHINFO and STARTTLS docs are almost ready for last call, and I'm 
working hard to get a -02 draft for STREAMING out the door which 
hopefully would take no more than one additional revision before last call.


> Unfortunately, I don't know where this should be documented.  I don't 
> think we can put it in the base doc since we don't want the base doc 
> referencing extension docs.  Putting it in the extensions docs doesn't 
> really help because a server author may fail to reference them when 
> upgrading to RFC 977bis compliance.  Perhaps the best thing would be to 
> have a companion (Informational) document to RFC 977bis discussing 
> compatibility/upgrade issues.

Hmm, after thinking about this some more, maybe we can just state in the 
base doc that any server which is upgraded to RFC 977bis SHOULD also 
consult the IANA registry of NNTP extensions and MUST simultaneously 
upgrade any legacy extensions that it already supports.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Wed Oct 13 09:49:47 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Oct 13 09:49:13 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <87wtxvfuoi.fsf@windlord.stanford.edu>
References: <200402022107.QAA09807@ietf.org>	<20040310105838.GM31826@finch-staff-1.thus.net>	<87k71qwvu9.fsf@windlord.stanford.edu>
	<416A9FD2.3020509@oceana.com>
	<87wtxvfuoi.fsf@windlord.stanford.edu>
Message-ID: <416D5CAB.9030105@oceana.com>

Russ Allbery wrote:

> Ken Murchison <ken@oceana.com> writes:
> 
> 
>>After thinking about this some more, should we even bother discussing
>>MODE STREAM as a formal part of the STREAMING extension?  Since we all
>>agree that MODE STREAM has been historically used as a capability
>>discovery mechanism, which is now deprecated by LIST EXTENSIONS, what's
>>the point of formalizing it?  I can see possibly documenting it as an
>>obsolete command somewhere in the document, but including it as part of
>>the STREAMING extension seems wrong.
> 
> 
> I'm worried about transition issues.  I believe there are implementations
> that will reject CHECK/TAKETHIS unless MODE STREAM has been sent first, so
> I'd like to warn implementors that for backward compatibility, they should
> implement MODE STREAM on the receiving end even if it's a no-op and send
> it before using CHECK/TAKETHIS.  (While strongly discouraging this
> implementation method in the future, of course.)

Here's the text that I've come up with for MODE STREAM:


2.2. MODE STREAM Command

      This command is deprecated and is only documented for compatibility
      with legacy implementations of the STREAMING extension.  New client
      and server implementations are not required to support this command
      but they are encouraged to do so.

2.2.1. Usage

      This command MUST NOT be pipelined.

      Syntax
         MODE STREAM

      Responses
         203   Streaming permitted

2.2.2. Description

      A client issues the MODE STREAM command to indicate that it wishes
      to use the CHECK and TAKETHIS commands instead of, or in addition
      to, IHAVE.  If the server supports the CHECK and TAKETHIS commands
      a 203 response MUST be returned.

      If a server advertises the STREAMING extension label in the LIST
      EXTENSIONS response, the MODE STREAM command is not required and a
      client SHOULD NOT issue it.  If a legacy server does not support
      the LIST EXTENSIONS command or does not advertise the NNTPv2
      extension label, a client SHOULD issue the MODE STREAM command
      prior to using the CHECK or TAKETHIS commands.

      A server MUST NOT require that the MODE STREAM command be issued
      before accepting the CHECK or TAKETHIS commands.  A server SHOULD
      accept the MODE STREAM command for compatibility with legacy
      clients which don't use the LIST EXTENSIONS discovery mechanism.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Wed Oct 13 10:32:11 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Oct 13 10:32:13 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <416D4335.2010103@oceana.com> (Ken Murchison's message of "Wed,
	13 Oct 2004 11:01:09 -0400")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D4335.2010103@oceana.com>
Message-ID: <87y8iattgk.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:
> Russ Allbery wrote:

>> The proposed solution is this:  Specify in our base draft that any
>> server that fully complies with the new specification advertise the
>> NNTPv2 capability as part of LIST EXTENSIONS.  Clients can then ignore
>> or treat with dubiousness any server that doesn't advertise that
>> capability, thus solving the Collabra problem.

> I'd submit that LIST EXTENSIONS is no longer an optional command for the
> server.  Any server compliant with with RFC 977bis MUST implement LIST
> EXTENSIONS and MUST advertise at least the NNTPv2 capability, even if no
> extensions are implemented.  This serves to tell the client that
> previously optional/non-standard commands that we have standardized as
> part of the base specification (e.g. DATE) are supported.

Oh, yeah, I forgot that.  Yes, LIST EXTENSIONS would also become a
mandatory command.

> As far as the legacy extensions which we are standardizing, we need to
> document somewhere that any server which supports one or more of these
> extensions and is upgraded to be compliant with RFC 977bis MUST also be
> upgraded to be compliant with the standardized versions of these
> extensions (including advertising it where appropriate).  This is the
> only way that I can see that a client which sees NNTPv2 advertised will
> know if these extensions are supported and how they will behave.

Yup.  That makes sense.

> Unfortunately, I don't know where this should be documented.  I don't
> think we can put it in the base doc since we don't want the base doc
> referencing extension docs.  Putting it in the extensions docs doesn't
> really help because a server author may fail to reference them when
> upgrading to RFC 977bis compliance.  Perhaps the best thing would be to
> have a companion (Informational) document to RFC 977bis discussing
> compatibility/upgrade issues.

This was exactly the same problem that I had, but I really don't want to
create a completely separate document; that will set us back a while.
Referencing the extensions in the base document may be the best option
right now, given the upgrade situation that we're running into.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Wed Oct 13 10:32:42 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Oct 13 10:32:44 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <416D45B3.7030003@oceana.com> (Ken Murchison's message of "Wed,
	13 Oct 2004 11:11:47 -0400")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D4335.2010103@oceana.com> <416D45B3.7030003@oceana.com>
Message-ID: <87u0syttfp.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> Hmm, after thinking about this some more, maybe we can just state in the
> base doc that any server which is upgraded to RFC 977bis SHOULD also
> consult the IANA registry of NNTP extensions and MUST simultaneously
> upgrade any legacy extensions that it already supports.

Oh, that's a good idea.  That could also work, yes.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Wed Oct 13 10:33:10 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Oct 13 10:33:11 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <416D5CAB.9030105@oceana.com> (Ken Murchison's message of "Wed,
	13 Oct 2004 12:49:47 -0400")
References: <200402022107.QAA09807@ietf.org>
	<20040310105838.GM31826@finch-staff-1.thus.net>
	<87k71qwvu9.fsf@windlord.stanford.edu> <416A9FD2.3020509@oceana.com>
	<87wtxvfuoi.fsf@windlord.stanford.edu> <416D5CAB.9030105@oceana.com>
Message-ID: <87pt3mttex.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> Here's the text that I've come up with for MODE STREAM:

This looks great to me.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Wed Oct 13 11:47:59 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Oct 13 11:47:25 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <87acurh9qz.fsf@windlord.stanford.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
Message-ID: <416D785F.5080107@oceana.com>

Russ Allbery wrote:

> The proposed solution is this:  Specify in our base draft that any server
> that fully complies with the new specification advertise the NNTPv2
> capability as part of LIST EXTENSIONS.  Clients can then ignore or treat
> with dubiousness any server that doesn't advertise that capability, thus
> solving the Collabra problem.

Hmm, I just noticed that NNTPv2 isn't a valid extension label per the 
latest grammar since extension-label is defined to be 3*12UPPER.  We'll 
either have to come up with a new label or relax the grammar.  Since I 
originally suggested NNTPv2, I'm in favor or relaxing the grammar and 
perhaps making extension-label 3*12A-CHAR.  Is there a reason why this 
wasn't done in the first place?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Wed Oct 13 12:47:59 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Oct 13 12:48:01 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <416D785F.5080107@oceana.com> (Ken Murchison's message of "Wed,
	13 Oct 2004 14:47:59 -0400")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D785F.5080107@oceana.com>
Message-ID: <87k6tuwgb4.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> Hmm, I just noticed that NNTPv2 isn't a valid extension label per the
> latest grammar since extension-label is defined to be 3*12UPPER.  We'll
> either have to come up with a new label or relax the grammar.  Since I
> originally suggested NNTPv2, I'm in favor or relaxing the grammar and
> perhaps making extension-label 3*12A-CHAR.  Is there a reason why this
> wasn't done in the first place?

I think we were worried about case sensitivity causing problems.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Wed Oct 13 14:09:44 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Oct 13 14:09:09 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
Message-ID: <416D9998.7090301@oceana.com>

I just submitted the following updated draft which I believe addresses 
the issues discussed on the list since draft -01:

http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-streaming-02.txt


Note that this draft uses the NNTPv2 extension label discussed in Russ' 
LIST EXTENSIONS thread (consider this a place holder if the label ends 
up being something different [NNTP]).

Also note that the CHECK and TAKETHIS descriptions use text taken 
directly from IHAVE in [NNTP], so I don't expect any issues with them

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp


From andrew at supernews.net  Wed Oct 13 15:37:53 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Wed Oct 13 15:38:10 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <416D9998.7090301@oceana.com> (Ken Murchison's message of "Wed,
	13 Oct 2004 17:09:44 -0400")
References: <416D9998.7090301@oceana.com>
Message-ID: <E1CHrl2-0009ih-2s@trinity.supernews.net>

>>>>> "Ken" == Ken Murchison <ken@oceana.com> writes:

 Ken> I just submitted the following updated draft which I believe
 Ken> addresses the issues discussed on the list since draft -01:

2.5. TAKETHIS Command

2.5.1. Usage

     Syntax
        TAKETHIS message-id

     Responses
        239 message-id   Article transferred OK
        432 message-id   Transfer failed; try again later
        439 message-id   Transfer rejected; do not retry

Any implementation that actually returns 432 will break several of the
existing streaming-mode feeders in use. As a rule, existing software
expects specific response codes only, and will behave badly (e.g. by
giving up on the connection) if an unexpected code is received.

Existing implementations exist that do return 431 in response to
TAKETHIS (bogusly; see below) and existing feeders do cope with that
to some extent (despite the fact that 431 is also used for CHECK).

However, the idea of returning a deferral in response to TAKETHIS (or
indeed as the final response after IHAVE) is in any event logically
somewhat flawed. The client in this case will always have sent the
entire article body, and it is not reasonable to expect a client to do
that repeatedly. Once the body is transferred once, the server has all
the information needed to decide whether to accept or reject the
article; transient errors at this point, such as "disk full", are
better handled by pausing or throttling the server (without sending
either 239 or 439 to the client). Some implementations do actually
return 431 in that case, but practical experience is that the
resulting behaviour is never good (some senders will discard the
articles, others will retry them indefinitely, potentially wasting
large bandwidth volumes; throttling the server works much better).

-- 
Andrew, Supernews
http://www.supernews.com

From rra at stanford.edu  Wed Oct 13 15:51:47 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Oct 13 15:51:48 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <E1CHrl2-0009ih-2s@trinity.supernews.net> (andrew@supernews.net's
	message of "Wed, 13 Oct 2004 23:37:53 +0100")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
Message-ID: <87acuqtenw.fsf@windlord.stanford.edu>

"Andrew - Supernews" <andrew@supernews.net> writes:

> However, the idea of returning a deferral in response to TAKETHIS (or
> indeed as the final response after IHAVE) is in any event logically
> somewhat flawed. The client in this case will always have sent the
> entire article body, and it is not reasonable to expect a client to do
> that repeatedly. Once the body is transferred once, the server has all
> the information needed to decide whether to accept or reject the
> article; transient errors at this point, such as "disk full", are better
> handled by pausing or throttling the server (without sending either 239
> or 439 to the client). Some implementations do actually return 431 in
> that case, but practical experience is that the resulting behaviour is
> never good (some senders will discard the articles, others will retry
> them indefinitely, potentially wasting large bandwidth volumes;
> throttling the server works much better).

So from a protocol standpoint, you believe the situations under which a
server might return a deferral to TAKETHIS or IHAVE are better handled by
just closing the connection without a response instead?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From andrew at supernews.net  Wed Oct 13 17:14:01 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Wed Oct 13 17:14:16 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <87acuqtenw.fsf@windlord.stanford.edu> (Russ Allbery's message
	of "Wed, 13 Oct 2004 15:51:47 -0700")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
Message-ID: <E1CHtG3-000AvF-V4@trinity.supernews.net>

>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:

 >> However, the idea of returning a deferral in response to TAKETHIS
 >> (or indeed as the final response after IHAVE) is in any event
 >> logically somewhat flawed. The client in this case will always
 >> have sent the entire article body, and it is not reasonable to
 >> expect a client to do that repeatedly. Once the body is
 >> transferred once, the server has all the information needed to
 >> decide whether to accept or reject the article; transient errors
 >> at this point, such as "disk full", are better handled by pausing
 >> or throttling the server (without sending either 239 or 439 to the
 >> client). Some implementations do actually return 431 in that case,
 >> but practical experience is that the resulting behaviour is never
 >> good (some senders will discard the articles, others will retry
 >> them indefinitely, potentially wasting large bandwidth volumes;
 >> throttling the server works much better).

 Russ> So from a protocol standpoint, you believe the situations under
 Russ> which a server might return a deferral to TAKETHIS or IHAVE are
 Russ> better handled by just closing the connection without a
 Russ> response instead?

The distinguishing factor is whether the server has any reason to
expect that an immediate following TAKETHIS for a different article,
or a later following TAKETHIS for the same article, has any chance of
success. If the server is getting errors (such as disk full) that
aren't article-specific, then it should really fail in a way that also
isn't article-specific (and closing the connection, possibly rejecting
further connections until the problem is resolved, seems the better
option).

Such an unsolicited close of the connection should probably be done
with a 400 response rather than silently (see the base draft).
(Existing streaming clients do seem to understand this, as existing
server implementations do this when shutting down connections when
throttled)

Maybe someone can come up with a specific circumstance where returning
a deferral would make sense, but so far I've been unable to think of
one (and none of my own implementations have ever done it). If it
stays in the draft, then (a) it specifically needs to be the 431 code
rather than a new one, and (b) it should be made clear that it's only
appropriate if the problem is a _transient_ problem affecting _only that
specific article_, and that more general failures should be handled by
a connection close.

-- 
Andrew, Supernews
http://www.supernews.com

From rra at stanford.edu  Wed Oct 13 17:17:23 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Oct 13 17:17:24 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <E1CHtG3-000AvF-V4@trinity.supernews.net> (andrew@supernews.net's
	message of "Thu, 14 Oct 2004 01:14:01 +0100")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
Message-ID: <87acuqrw4s.fsf@windlord.stanford.edu>

"Andrew - Supernews" <andrew@supernews.net> writes:

> Maybe someone can come up with a specific circumstance where returning a
> deferral would make sense, but so far I've been unable to think of one
> (and none of my own implementations have ever done it). If it stays in
> the draft, then (a) it specifically needs to be the 431 code rather than
> a new one, and (b) it should be made clear that it's only appropriate if
> the problem is a _transient_ problem affecting _only that specific
> article_, and that more general failures should be handled by a
> connection close.

I think the argument in favor of it was mostly consistency, so I would
lean towards mentioning use of the 400 code and an immediate connection
close in response to TAKETHIS when the article can't be processed due to
some error condition.  (Yes, in theory, anyone should be able to realize
they can do that given that 400 is documented in the base draft, but I bet
people won't think of it unless we mention it explicitly.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Wed Oct 13 18:00:21 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Oct 13 18:00:30 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <87acuqrw4s.fsf@windlord.stanford.edu>
References: <416D9998.7090301@oceana.com>	<E1CHrl2-0009ih-2s@trinity.supernews.net>	<87acuqtenw.fsf@windlord.stanford.edu>	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<87acuqrw4s.fsf@windlord.stanford.edu>
Message-ID: <416DCFA5.9080305@oceana.com>

Russ Allbery wrote:
> "Andrew - Supernews" <andrew@supernews.net> writes:
> 
> 
>>Maybe someone can come up with a specific circumstance where returning a
>>deferral would make sense, but so far I've been unable to think of one
>>(and none of my own implementations have ever done it). If it stays in
>>the draft, then (a) it specifically needs to be the 431 code rather than
>>a new one, and (b) it should be made clear that it's only appropriate if
>>the problem is a _transient_ problem affecting _only that specific
>>article_, and that more general failures should be handled by a
>>connection close.
> 
> 
> I think the argument in favor of it was mostly consistency, so I would
> lean towards mentioning use of the 400 code and an immediate connection
> close in response to TAKETHIS when the article can't be processed due to
> some error condition.  (Yes, in theory, anyone should be able to realize
> they can do that given that 400 is documented in the base draft, but I bet
> people won't think of it unless we mention it explicitly.)

So I should remove 432 and go back to what we had?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Wed Oct 13 18:05:41 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Oct 13 18:05:43 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <416DCFA5.9080305@oceana.com> (Ken Murchison's message of "Wed,
	13 Oct 2004 21:00:21 -0400")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<87acuqrw4s.fsf@windlord.stanford.edu> <416DCFA5.9080305@oceana.com>
Message-ID: <87lleanm6y.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:
> Russ Allbery wrote:

>> I think the argument in favor of it was mostly consistency, so I would
>> lean towards mentioning use of the 400 code and an immediate connection
>> close in response to TAKETHIS when the article can't be processed due
>> to some error condition.  (Yes, in theory, anyone should be able to
>> realize they can do that given that 400 is documented in the base
>> draft, but I bet people won't think of it unless we mention it
>> explicitly.)

> So I should remove 432 and go back to what we had?

I think so (although if someone else has a different opinion, they should
weigh in here).  I'd add an explicit mention of a 400 response, saying
that it should be treated the same as no response, and I think we still
have to describe a deferral since that's the proper action to take if no
response or a 400 response is received.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Wed Oct 13 19:08:49 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Oct 13 19:08:52 2004
Subject: [NNTP] Current NNTP draft status
Message-ID: <877jpunj9q.fsf@windlord.stanford.edu>

I'm leaving tomorrow for two weeks of vacation, during which time I won't
have access to my e-mail and won't be able to do IETF work.
Unfortunately, we didn't get quite as much done as I was hoping before my
vacation, as a few more questions, clarifications, and changes came up
with the AUTHINFO and TLS documents.

If everyone would look over the LIST EXTENSIONS proposal that I sent out
and comment on it, I'd really like to get consensus about this by the time
I get back or shortly thereafter, if at all possible.  This obviously has
to be cleared up before any of our documents can advance.

We've already had a few working group calls for the AUTHINFO and TLS
documents, and I believe that the next versions will be ready for IETF
last call.  I'd like to be sure that Clive feels the same way, but other
than that, I think the documents are ready.

Scott, I'm going to send you separately the answers to those questions
about the document status for the AUTHINFO and TLS documents.

I'll be back from vacation on November 2nd.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From chl at clerew.man.ac.uk  Wed Oct 13 07:39:42 2004
From: chl at clerew.man.ac.uk (Charles Lindsey)
Date: Wed Oct 13 19:12:24 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
References: <87acurh9qz.fsf@windlord.stanford.edu>
Message-ID: <I5J226.BCp@clerew.man.ac.uk>

In <87acurh9qz.fsf@windlord.stanford.edu> Russ Allbery <rra@stanford.edu> writes:

>The proposed solution is this:  Specify in our base draft that any server
>that fully complies with the new specification advertise the NNTPv2
>capability as part of LIST EXTENSIONS.  Clients can then ignore or treat
>with dubiousness any server that doesn't advertise that capability, thus
>solving the Collabra problem.

I am not particularly enamoured of this idea. Presumably the two
implementations that currently do it wrong will shortly be mended to do it
right. So the alternative of putting up with the situation for a hopefully
shortish transitional period can also be considered.

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133   Web: http://www.cs.man.ac.uk/~chl
Email: chl@clerew.man.ac.uk      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5
From chl at clerew.man.ac.uk  Wed Oct 13 07:42:19 2004
From: chl at clerew.man.ac.uk (Charles Lindsey)
Date: Wed Oct 13 19:12:25 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
References: <200402022107.QAA09807@ietf.org>	<20040310105838.GM31826@finch-staff-1.thus.net>	<87k71qwvu9.fsf@windlord.stanford.edu>
	<416A9FD2.3020509@oceana.com>
	<87wtxvfuoi.fsf@windlord.stanford.edu>
	<416C5BF9.7020004@oceana.com>
Message-ID: <I5J26J.BEo@clerew.man.ac.uk>

In <416C5BF9.7020004@oceana.com> Ken Murchison <ken@oceana.com> writes:

>I guess what I'm getting at is is MODE STREAM a formal part of the 
>STREAMING extension, or just an obsolete command that some 
>implementations may need for backwards compatibility.

It its situation in any way different from MODE READER? Do we not regard
that as unnecessary, but continue to do it because some implementations
require it? If the situation is similar, then it should be handled in the
same way.

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133   Web: http://www.cs.man.ac.uk/~chl
Email: chl@clerew.man.ac.uk      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5
From rra at stanford.edu  Wed Oct 13 19:14:11 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Oct 13 19:14:12 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <I5J26J.BEo@clerew.man.ac.uk> (Charles Lindsey's message of
	"Wed, 13 Oct 2004 14:42:19 GMT")
References: <200402022107.QAA09807@ietf.org>
	<20040310105838.GM31826@finch-staff-1.thus.net>
	<87k71qwvu9.fsf@windlord.stanford.edu> <416A9FD2.3020509@oceana.com>
	<87wtxvfuoi.fsf@windlord.stanford.edu> <416C5BF9.7020004@oceana.com>
	<I5J26J.BEo@clerew.man.ac.uk>
Message-ID: <873c0inj0s.fsf@windlord.stanford.edu>

Charles Lindsey <chl@clerew.man.ac.uk> writes:
> Ken Murchison <ken@oceana.com> writes:

>> I guess what I'm getting at is is MODE STREAM a formal part of the
>> STREAMING extension, or just an obsolete command that some
>> implementations may need for backwards compatibility.

> It its situation in any way different from MODE READER?

Yes, significantly.  We can simply make MODE STREAM go away going forward
(there's no protocol need for it now that we have LIST EXTENSIONS), but
can't do that with MODE READER without outlawing real-world implementation
choices.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From rra at stanford.edu  Wed Oct 13 19:15:58 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Oct 13 19:15:59 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <I5J226.BCp@clerew.man.ac.uk> (Charles Lindsey's message of
	"Wed, 13 Oct 2004 14:39:42 GMT")
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<I5J226.BCp@clerew.man.ac.uk>
Message-ID: <87y8iam4dd.fsf@windlord.stanford.edu>

Charles Lindsey <chl@clerew.man.ac.uk> writes:

> I am not particularly enamoured of this idea. Presumably the two
> implementations that currently do it wrong will shortly be mended to do
> it right. So the alternative of putting up with the situation for a
> hopefully shortish transitional period can also be considered.

That was raised, but Mark Crispin rightfully pointed out that this is far
too optimistic about the lifespan of existing deployed software, and would
make LIST EXTENSIONS significantly less useful to well-designed clients
for a long time going forward.  After thinking about it for a while, I
agree with him; this is simple and straightforward both to describe and to
implement, matches existing practice with other protocols, has other
merits (since we did tweak some other minor things in the protocol), and
doesn't really have any drawbacks that I can see.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Wed Oct 13 20:25:50 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Oct 13 20:26:00 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <87lleanm6y.fsf@windlord.stanford.edu>
References: <416D9998.7090301@oceana.com>	<E1CHrl2-0009ih-2s@trinity.supernews.net>	<87acuqtenw.fsf@windlord.stanford.edu>	<E1CHtG3-000AvF-V4@trinity.supernews.net>	<87acuqrw4s.fsf@windlord.stanford.edu>
	<416DCFA5.9080305@oceana.com>
	<87lleanm6y.fsf@windlord.stanford.edu>
Message-ID: <416DF1BE.9010703@oceana.com>

Russ Allbery wrote:
> Ken Murchison <ken@oceana.com> writes:
> 
>>Russ Allbery wrote:
> 
> 
>>>I think the argument in favor of it was mostly consistency, so I would
>>>lean towards mentioning use of the 400 code and an immediate connection
>>>close in response to TAKETHIS when the article can't be processed due
>>>to some error condition.  (Yes, in theory, anyone should be able to
>>>realize they can do that given that 400 is documented in the base
>>>draft, but I bet people won't think of it unless we mention it
>>>explicitly.)
> 
> 
>>So I should remove 432 and go back to what we had?
> 
> 
> I think so (although if someone else has a different opinion, they should
> weigh in here).  I'd add an explicit mention of a 400 response, saying
> that it should be treated the same as no response, and I think we still
> have to describe a deferral since that's the proper action to take if no
> response or a 400 response is received.

I'm not sure that I completely understand the argument, so some 
suggested text might be helpful.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Wed Oct 13 20:32:50 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Oct 13 20:33:04 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <I5J226.BCp@clerew.man.ac.uk>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<I5J226.BCp@clerew.man.ac.uk>
Message-ID: <416DF362.1040203@oceana.com>

Charles Lindsey wrote:

> In <87acurh9qz.fsf@windlord.stanford.edu> Russ Allbery <rra@stanford.edu> writes:
> 
> 
>>The proposed solution is this:  Specify in our base draft that any server
>>that fully complies with the new specification advertise the NNTPv2
>>capability as part of LIST EXTENSIONS.  Clients can then ignore or treat
>>with dubiousness any server that doesn't advertise that capability, thus
>>solving the Collabra problem.
> 
> 
> I am not particularly enamoured of this idea. Presumably the two
> implementations that currently do it wrong will shortly be mended to do it
> right. So the alternative of putting up with the situation for a hopefully
> shortish transitional period can also be considered.

As Mark pointed out offline (and I agree), simply doing nothing won't 
work because at what point can the client start trusting the output of 
LIST EXTENSIONS?  If there is no definitive way for a client to 
determine that LIST EXTENSIONS follows the updated NNTP spec, the 
command is essentially useless, as clients will *always* have to resort 
to trial and error.

LIST EXTENSIONS, or any other capability discovery mechanism, should not 
be designed or implemented (willingly or otherwise) to be purely 
advisory.  It should be guaranteed that its output is both complete and 
deterministic.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Wed Oct 13 20:39:03 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Oct 13 20:39:13 2004
Subject: [NNTP] Current NNTP draft status
In-Reply-To: <877jpunj9q.fsf@windlord.stanford.edu>
References: <877jpunj9q.fsf@windlord.stanford.edu>
Message-ID: <416DF4D7.80608@oceana.com>

Russ Allbery wrote:

> I'm leaving tomorrow for two weeks of vacation, during which time I won't
> have access to my e-mail and won't be able to do IETF work.
> Unfortunately, we didn't get quite as much done as I was hoping before my
> vacation, as a few more questions, clarifications, and changes came up
> with the AUTHINFO and TLS documents.

I believe that I have all of the necessary changes to TLS implemented 
(as posted on another thread) and will submit an updated draft soon.

As soon as I hear from Clive on one outstanding issue with AUTHINFO, 
I'll push out another draft.

I'll also gather feedback on STREAMING and update within a week or so.


> If everyone would look over the LIST EXTENSIONS proposal that I sent out
> and comment on it, I'd really like to get consensus about this by the time
> I get back or shortly thereafter, if at all possible.  This obviously has
> to be cleared up before any of our documents can advance.

Once this issue is resolved, we'll need one more round of tweaks to the 
extension docs (mostly with examples) to bring them inline with the base 
doc.

If all goes well, we can have all 4 docs proceed together.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Wed Oct 13 21:47:57 2004
From: rra at stanford.edu (Russ Allbery)
Date: Wed Oct 13 21:47:59 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <416DF1BE.9010703@oceana.com> (Ken Murchison's message of "Wed,
	13 Oct 2004 23:25:50 -0400")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<87acuqrw4s.fsf@windlord.stanford.edu> <416DCFA5.9080305@oceana.com>
	<87lleanm6y.fsf@windlord.stanford.edu> <416DF1BE.9010703@oceana.com>
Message-ID: <87k6ttlxc2.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:
> Russ Allbery wrote:

>> I think so (although if someone else has a different opinion, they
>> should weigh in here).  I'd add an explicit mention of a 400 response,
>> saying that it should be treated the same as no response, and I think
>> we still have to describe a deferral since that's the proper action to
>> take if no response or a 400 response is received.

> I'm not sure that I completely understand the argument, so some
> suggested text might be helpful.

Right now, the document says:

     The client SHOULD NOT assume that the article has been successfully
     transferred unless it receives an affirmative response from the
     server.  A lack of response (such as a dropped network connection
     or a network timeout) SHOULD be treated the same as a 432 response.

I think it should say:

     The client SHOULD NOT assume that the article has been successfully
     transferred unless it receives an affirmative response from the
     server.  A lack of response (such as a dropped network connection or
     a network timeout) or a 400 response SHOULD cause the transfer to be
     tried again later if possible.

or something along those lines, including the wording from the 432
response in there under the assumption that we're taking out that response
code again.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From ken at oceana.com  Thu Oct 14 05:29:03 2004
From: ken at oceana.com (Ken Murchison)
Date: Thu Oct 14 05:29:15 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <87k6ttlxc2.fsf@windlord.stanford.edu>
References: <416D9998.7090301@oceana.com>	<E1CHrl2-0009ih-2s@trinity.supernews.net>	<87acuqtenw.fsf@windlord.stanford.edu>	<E1CHtG3-000AvF-V4@trinity.supernews.net>	<87acuqrw4s.fsf@windlord.stanford.edu>
	<416DCFA5.9080305@oceana.com>	<87lleanm6y.fsf@windlord.stanford.edu>
	<416DF1BE.9010703@oceana.com>
	<87k6ttlxc2.fsf@windlord.stanford.edu>
Message-ID: <416E710F.8050906@oceana.com>

Russ Allbery wrote:
> 
> Right now, the document says:
> 
>      The client SHOULD NOT assume that the article has been successfully
>      transferred unless it receives an affirmative response from the
>      server.  A lack of response (such as a dropped network connection
>      or a network timeout) SHOULD be treated the same as a 432 response.
> 
> I think it should say:
> 
>      The client SHOULD NOT assume that the article has been successfully
>      transferred unless it receives an affirmative response from the
>      server.  A lack of response (such as a dropped network connection or
>      a network timeout) or a 400 response SHOULD cause the transfer to be
>      tried again later if possible.
> 
> or something along those lines, including the wording from the 432
> response in there under the assumption that we're taking out that response
> code again.

The existing paragraph was taken verbatim (other then the 432) from the 
base doc.  Does this change also apply to IHAVE, or does TAKETHIS have 
subtle differences from IHAVE in the wild?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From rra at stanford.edu  Thu Oct 14 19:25:02 2004
From: rra at stanford.edu (Russ Allbery)
Date: Thu Oct 14 19:25:04 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <416E710F.8050906@oceana.com> (Ken Murchison's message of "Thu,
	14 Oct 2004 08:29:03 -0400")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<87acuqrw4s.fsf@windlord.stanford.edu> <416DCFA5.9080305@oceana.com>
	<87lleanm6y.fsf@windlord.stanford.edu> <416DF1BE.9010703@oceana.com>
	<87k6ttlxc2.fsf@windlord.stanford.edu> <416E710F.8050906@oceana.com>
Message-ID: <87y8i81zwh.fsf@windlord.stanford.edu>

Ken Murchison <ken@oceana.com> writes:

> Russ Allbery wrote:
>> Right now, the document says:
>>      The client SHOULD NOT assume that the article has been successfully
>>      transferred unless it receives an affirmative response from the
>>      server.  A lack of response (such as a dropped network connection
>>      or a network timeout) SHOULD be treated the same as a 432 response.
>> I think it should say:
>>      The client SHOULD NOT assume that the article has been successfully
>>      transferred unless it receives an affirmative response from the
>>      server.  A lack of response (such as a dropped network connection or
>>      a network timeout) or a 400 response SHOULD cause the transfer to be
>>      tried again later if possible.
>> or something along those lines, including the wording from the 432
>> response in there under the assumption that we're taking out that response
>> code again.

> The existing paragraph was taken verbatim (other then the 432) from the
> base doc.  Does this change also apply to IHAVE, or does TAKETHIS have
> subtle differences from IHAVE in the wild?

I think it wouldn't be a bad idea to note this with IHAVE as well, but
maybe consistency is better.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
From clive at demon.net  Fri Oct 15 02:01:13 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct 15 02:04:32 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <416D4335.2010103@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D4335.2010103@oceana.com>
Message-ID: <20041015090113.GB86062@finch-staff-1.thus.net>

Ken Murchison said:
> I'd submit that LIST EXTENSIONS is no longer an optional command for the 
> server.  Any server compliant with with RFC 977bis MUST implement LIST 
> EXTENSIONS

Agreed. Or my proposed STATUS command.

> and MUST advertise at least the NNTPv2 capability, even if no 
> extensions are implemented.  This serves to tell the client that 
> previously optional/non-standard commands that we have standardized as 
> part of the base specification (e.g. DATE) are supported.

This is the versioning issue I discuss in my other message.

> First, I think that the base doc and/or any extension docs have to make 
> it clear that if a NNTPv2 server implements an extension it MUST 
> advertise the appropriate extension label via LIST EXTENSIONS.

Agreed.

> As far as the legacy extensions which we are standardizing, we need to 
> document somewhere that any server which supports one or more of these 
> extensions and is upgraded to be compliant with RFC 977bis MUST also be 
> upgraded to be compliant with the standardized versions of these 
> extensions (including advertising it where appropriate).

Or indicate that they're providing pre-standard versions. Again, I've shown
how to do this in my proposal.

> Unfortunately, I don't know where this should be documented.  I don't 
> think we can put it in the base doc since we don't want the base doc 
> referencing extension docs.  Putting it in the extensions docs doesn't 
> really help because a server author may fail to reference them when 
> upgrading to RFC 977bis compliance.

We can't force someone to upgrade their support of an extension. All they
have to do is declare it to be a private extension whose commands happen to
have the same name. Better to recognise this than to pretend it doesn't
happen. There's a similar issue with transition from one version of a
specification to the next one; both of these are addressed in my STATUS
proposal.

[I realize this sounds a bit like "STATUS solves everything" boasting, but
it isn't; the issues in this thread drove a lot of my design.]

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct 15 01:52:18 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct 15 02:04:40 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <87acurh9qz.fsf@windlord.stanford.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
Message-ID: <20041015085218.GA86186@finch-staff-1.thus.net>

Russ Allbery said:
> The way that a proper client of a protocol that supports an extension
> mechanism should behave is that immediately after connecting, it inquires
> as to the capabilities of the server.  Subsequently, it assumes those
> listed capabilities are accurate and does not attempt to use any
> capabilities that were not advertised.  I realize that this is not how
> NNTP clients have ever worked in the past -- this is something that we're
> seeking to change by adding a proper extension mechanism.  This is how
> everyone else does it (IMAP, POP, SMTP, etc.), and we're trying to bring
> NNTP in line with other Internet protocols.

Okay, agreement so far.

> Given this new approach, and given the way a client should be implemented
> when complying with our draft, there are two problems with the LIST
> EXTENSIONS mechanism as currently present in our base draft.
[...]
> The first problem is that, since LIST EXTENSIONS has been around as an
> idea for quite some time, there is at least one known badly bogus
> implementation.

Right.

> The second problem is that, based on our drafts, at least one
> implementation (INN) and possibly others have started adding LIST
> EXTENSIONS.  However, the extension list was not finalized, and in
> particular AUTHINFO was not advertised by the early INN implementation
> even though AUTHINFO USER was supported.  A client that uses the extension
> mechanism properly would therefore think that those servers didn't support
> authentication when they do.

This is *always* going to be a problem in the stage between an extension
being invented and the specification being finalised. Agreed it's rather
worse for the stuff that has been around for a while, but it's not unique
to them.

> The proposed solution is this:  Specify in our base draft that any server
> that fully complies with the new specification advertise the NNTPv2
> capability as part of LIST EXTENSIONS.

Right, stop here. I don't like this idea. It's a kludge, and an unstructured
one at that. However, it does identify a genuine problem.

Having read this message and the following thread, I did a lot of thinking.
I also harked back to some of the bitter experiences we had in standardising
the C language.

Firstly, let's recognise that, by doing this, *no* existing server is going
to comply with the new specification without being changed. This is *NOT* a
problem, it's an opportunity. What we are doing at this point is to draw a
line in the sand (or in history, if you like). So let's look at the whole
problem and fix it properly.

======== Line in the sand :-) ========

Rather than saying that LIST EXTENSIONS is unreliable unless the server
sets the "I got it right, honest" flag, I think we're better off having a
new command. There's little downside because server implementers are going
to have to make changes anyway. This can then also fix other problems.

The two big issues I can see that are going to bite us one day (if indeed
they haven't already) are:

(1) There's no good way to indicate conformance to particular versions of
extension protocols. Adding a versioning facility usually turns out to be
a good idea in the long run.

(2) It's better to indicate what capabilities are available altogether,
rather than just what are available right now. It's better for a client to
know "you can do TLS once you've done MODE READER" than for it to have
to guess that doing MODE READER might make STARTTLS magically appear.

So let's fix these now, while we have the chance.

Let me present my idea first as a bit of protocol:

    [C] STATUS
    [S] 101 1.0     List of available extensions follows
    [S] OVER 1.0 + MSGID
    [S] HDR 1.0-RAA +
    [S] LISTGROUP 1.0 -MODE-READER
    [S] STARTTLS 0.0-02 -502
    [S] AUTHINFO 0.0-05-x -502 USER SASL:PLAIN,EXTERNAL
    [S] STREAMING 0.0-perhaps +
    [S] XSECRET -CDWF -483
    [S] XDATA -CDWF +
    [.]

The specification is roughly as follows.

The command cannot fail, apart from the generic 400 and 501 responses. The
argument to the 101 response code is a version-code; see below.

Each line in the extended response describes one extension, as with LIST
EXTENSIONS. However, the line gives more detail; there are always at least
three words:
* The extension name. This becomes case-insensitive just like the rest of
  NNTP, but we continue to require letters only.
* A version-code. This indicates the conformance status of the extension;
  I discuss it further below.
* A status code. This is either "+" to show that the extension is
  *currently* available, or "-" followed by a reason to show that it isn't.
  For reasons, I've used "502", "480", or "483" if use of the extension
  would generate that response, or an extension name (or "MODE-READER")
  if use would generate a 401 response.
Any further words are parameters to the extension, as with LIST EXTENSIONS.

The number of lines in the output does not change during a session; as
extensions become available or unavailable, the status changes instead.
(However, I'd make this a SHOULD rather than a MUST so that servers can
still have secret extensions if they want.) This allows a client to
determine what *can* be available as well as what is available right now.
I think there's significant benefit in this.

Note that we can also indicate "some commands need MODE READER" by a line
in the capabilities, or even by defining a second argument to the 101 code.

The main benefit of this proposal is the version codes. Here's how I see
them working:

* The format of a version code is:

    version-code = standard-version / private-version
    standard-version = major-version "." minor-version [version-detail]
    private-version = version-detail
    major-version = 1*DIGIT
    minor-version = 1*DIGIT
    version-detail = "-" arbitrary-string

* For a standard extension, the version is of the form "1.3". Each
published specification states the version number for that specification.
Changes in the minor version number are upwards compatible; that is, a
server that advertises 1.3 is *by definition* conformant with the 1.0, 1.1,
and 1.2 specifications as well [1.10 comes after 1.9.] Changes in the
major version are generally assumed to be incompatible.

* To allow for further development work on a standard extension, a
version-detail can be added to show conformance to drafts or other
experiments. The minor version remains that of the last real specification
that the server conforms to. The contents of the version-detail are under
the control of the new specification author.

So if work is going on to replace version 1.2, the eventual spec will be
1.3 and, in the meantime, servers can advertise "1.2-d05" to indicate they
conform to draft 05 of the new specification. Clients would normally ignore
what's after the dash.

* Version 0.0 is used for an extension that's being developed but hasn't
yet been standardised. Again, the version-detail is available.

* For a private extension, the version begins with a dash; anything beyond
that is entirely up to the implementer.

* Version 0.1 could be used to indicate conformance to RFCs that predate
our specification. But a better approach might be to treat them as private
with a code of "-RFC2980" (or whatever number is involved). Or how do
people feel about 0.2980?

The ability to flag a private extension also means that we can say that the
server *MUST* list all commands it supports instead of the present
weasel-wording.

Okay, repeating the above example so I can explain it further:

    [C] STATUS
    [S] 101 1.0     List of available extensions follows
    [S] OVER 1.0 + MSGID
    [S] HDR 1.0-RAA +
    [S] LISTGROUP 1.0 -MODE-READER
    [S] STARTTLS 0.0-02 -502
    [S] AUTHINFO 0.0-05-x -502 USER SASL:PLAIN,EXTERNAL
    [S] STREAMING 0.0-perhaps +
    [S] SECRET -CDWF -483
    [S] XDATA -CDWF +
    [.]

the meaning is:
* This server conforms to specification 1.0.
* The server supports 8 extensions.
* OVER and LISTGROUP conform to specification 1.0. So does HDR, but there's
  some development work going on with it (tagged RAA). STARTTLS, AUTHINFO,
  and STREAMING conform to draft specifications. SECRET and XDATA are
  private.
* Right now, OVER MSGID, HDR, STREAMING, and XDATA are all available while
  the other four aren't.
* LISTGROUP will work once the client has done MODE READER.
* STARTTLS and AUTHINFO aren't available for the rest of this session.
* SECRET is available if appropriate privacy is negotiated.

Note: 601 would be a better response code; we've said it should be used
for future multi-line responses. But I don't want this to divert the main
discussion.

Further thought: I'd like to find a way to provide further granularity in
the status information, showing that some bits are available and some
aren't. For example, a parameter ":" could mean "here's another status
code":

    [S] AUTHINFO 0.6-d02 + SASL:CRAM-MD5 : -483 USER SASL:PLAIN,EXTERNAL

meaning "I'll do CRAM-MD5 now, but if you want USER, PLAIN, or EXTERNAL
you'll need to sort out privacy". Or this may be getting too complex;
perhaps it should be left to individual extensions to sort out.

But I'd certainly like to encourage extensions to indicate both what is
available and what is currently-unavailable, rather than just the former.
And this is something that I'd like to see even if we don't adopt this
STATUS proposal.

> We also need to somehow specify that any server that implements AUTHINFO
> USER needs to advertise it if it advertises the NNTPv2 capability.  I'm
> not completely sure of the best way to do that; one way would be to
> specifically mention the three legacy extensions that we're standardizing
> (AUTHINFO, STARTTLS, and CHECK/TAKETHIS or STREAMING), and another would
> be to require that the server advertise an extension for any commands that
> don't begin with X.  A third approach would be to recognize that this
> blessing of widely implemented commands that predated the extension
> mechanism is a one-time transition.  This probably requires some more
> discussion to find the best approach from a transition standpoint.

Or we can bite the bullet and say that servers must advertise every command
that they implement.

However, I'm not 100% convinced. If a server does AUTHINFO SASL to spec,
and AUTHINFO GENERIC, what should it advertise?

> However, the goal is to make LIST EXTENSIONS reliable, including for
> everything that we're blessing under its existing command names, so that
> clients can just read the output and then use that information without
> having to second-guess it.  Without doing this, LIST EXTENSIONS is both
> badly different from the way that other protocols use it and not actually
> useful for clients.

Agreed.

> I think this approach has a lot of merit, and that it's easy enough to add
> the NNTPv2 requirement to the existing draft.  I also think that this is a
> minor enough change that it's worth doing this late in the process,
> although I'd appreciate it if Scott would check me on this.

I think that my above proposal is worth doing, even if we have to repeat
Last Call.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct 15 02:07:07 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct 15 02:07:11 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <416D45B3.7030003@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D4335.2010103@oceana.com> <416D45B3.7030003@oceana.com>
Message-ID: <20041015090707.GC86062@finch-staff-1.thus.net>

Ken Murchison said:
> Hmm, after thinking about this some more, maybe we can just state in the 
> base doc that any server which is upgraded to RFC 977bis SHOULD also 
> consult the IANA registry of NNTP extensions and MUST simultaneously 
> upgrade any legacy extensions that it already supports.

As I just said, I don't see how you enforce this.

If we have a versioning mechanism, we automatically encourage people to
check the IANA registry and resulting specifications so that they know what
value to put under "version supported". It also eliminates the temptation
to lie ("I almost do AUTHINFO USER correctly, so I'll advertise it").

One of the bugbears of C standardisation was all the compliers who define
__STDC__ to 1 on the grounds that "I do prototypes, so I look more like
Standard C than K&R C". Even worse are those who define it to 0 or 2 for
some strange reason. The lesson to learn is that you need to provide a way
to say "I've got something similar but not quite right" as a transitional
feature.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct 15 02:15:34 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct 15 02:15:40 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <416D785F.5080107@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D785F.5080107@oceana.com>
Message-ID: <20041015091534.GD86062@finch-staff-1.thus.net>

Ken Murchison said:
> Hmm, I just noticed that NNTPv2 isn't a valid extension label per the 
> latest grammar since extension-label is defined to be 3*12UPPER.  We'll 
> either have to come up with a new label or relax the grammar.  Since I 
> originally suggested NNTPv2, I'm in favor or relaxing the grammar and 
> perhaps making extension-label 3*12A-CHAR.  Is there a reason why this 
> wasn't done in the first place?

Nobody seems to know why we made it upper-only rather than case
insensitive, and it's a strange anomaly. I'd be very happy for us to fix
it.

However, we do have an implicit assumption elsewhere (see the 401 response
code) that dashes don't occur in extension labels. This can be worked
around, though.

At present a command name is not restricted in any way (other than no
spaces). I wonder if it would be a good idea to limit both extension labels
and command names to some smaller character set (say alphanumeric plus dot
and dash)? Do we want to forbid commands like "401" or "!@%)$&:#". Or, even
worse, names with quotes? Whatever we decide, I think that we should use
the same rule for extension labels and command names.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct 15 03:06:32 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct 15 03:09:10 2004
Subject: [NNTP] Re: [ietf-nntp] I-D ACTION:draft-ietf-nntpext-base-24.txt
Message-ID: <20041015100632.GC86186@finch-staff-1.thus.net>

I wrote:
> You can reverse these using the following awk script:

Or, of course, you can download the uncorrupted version from
<http://www.davros.org/nntp-texts/draft24.txt>.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct 15 03:21:47 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct 15 03:21:51 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <416E710F.8050906@oceana.com>
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<87acuqrw4s.fsf@windlord.stanford.edu>
	<416DCFA5.9080305@oceana.com>
	<87lleanm6y.fsf@windlord.stanford.edu>
	<416DF1BE.9010703@oceana.com>
	<87k6ttlxc2.fsf@windlord.stanford.edu>
	<416E710F.8050906@oceana.com>
Message-ID: <20041015102147.GF86062@finch-staff-1.thus.net>

Ken Murchison said:
> The existing paragraph was taken verbatim (other then the 432) from the 
> base doc.  Does this change also apply to IHAVE, or does TAKETHIS have 
> subtle differences from IHAVE in the wild?

Hang on.

As I see it, the 432 response to TAKETHIS has exactly the same meaning as
the 436 response to IHAVE. We explicitly list 436 as being possible after
the article body has been sent. So when do existing servers generate this
response? If they do, why shouldn't they generate 432 in the same
situation?

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct 15 03:24:33 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct 15 03:24:40 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <87acuqtenw.fsf@windlord.stanford.edu>
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
Message-ID: <20041015102433.GG86062@finch-staff-1.thus.net>

Russ Allbery said:
> So from a protocol standpoint, you believe the situations under which a
> server might return a deferral to TAKETHIS or IHAVE are better handled by
> just closing the connection without a response instead?

The problem with closing (or issuing a 400, which is far superior) is that
it prevents the client doing anything else, like newsreading.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct 15 03:25:31 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct 15 03:25:33 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
Message-ID: <20041015102530.GH86062@finch-staff-1.thus.net>

I wrote:

> Hang on.

> As I see it, the 432 response to TAKETHIS has exactly the same meaning as
> the 436 response to IHAVE. We explicitly list 436 as being possible after
> the article body has been sent. So when do existing servers generate this
> response? If they do, why shouldn't they generate 432 in the same
> situation?

Oh, and what about 441 to POST. Should this be replaced by 400 as well?

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct 15 03:29:29 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct 15 03:29:44 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <E1CHtG3-000AvF-V4@trinity.supernews.net>
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
Message-ID: <20041015102929.GI86062@finch-staff-1.thus.net>

Andrew - Supernews said:
> The distinguishing factor is whether the server has any reason to
> expect that an immediate following TAKETHIS for a different article,
> or a later following TAKETHIS for the same article, has any chance of
> success. If the server is getting errors (such as disk full) that
> aren't article-specific, then it should really fail in a way that also
> isn't article-specific (and closing the connection, possibly rejecting
> further connections until the problem is resolved, seems the better
> option).

The problem is that the errors are only posting-specific; they don't stop
clients from doing anything else. Therefore closing the connection is a
draconian solution.

The answer, perhaps, is to define the 431/432/436/441 responses as "don't
try to post anything else for a while", not just "don't try this specific
article again for a while". That is, general rather than specific deferral.

> Such an unsolicited close of the connection should probably be done
> with a 400 response rather than silently (see the base draft).

Agreed. If it happens at all, that is.

> If it
> stays in the draft, then (a) it specifically needs to be the 431 code
> rather than a new one,

Back in March Russ explained why CHECK and TAKETHIS need different status
codes. I don't have the explanation to hand, but I see from my sent-mail
archive that they convinced me at the time.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct 15 03:35:24 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct 15 03:35:37 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <E1CHrl2-0009ih-2s@trinity.supernews.net>
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
Message-ID: <20041015103524.GJ86062@finch-staff-1.thus.net>

Andrew - Supernews said:
> However, the idea of returning a deferral in response to TAKETHIS (or
> indeed as the final response after IHAVE) is in any event logically
> somewhat flawed. The client in this case will always have sent the
> entire article body, and it is not reasonable to expect a client to do
> that repeatedly.

Repeatedly, no. Once more after a problem, yes.

> practical experience is that the
> resulting behaviour is never good (some senders will discard the
> articles, others will retry them indefinitely, potentially wasting
> large bandwidth volumes; throttling the server works much better).

Perhaps we need some recommendations for the client: after receiving a
posting failure (any of 431/432/436/441), it SHOULD NOT use TAKETHIS until
either an IHAVE (for a different article) or CHECK (for this article) has
succeeded. Similarly, TAKETHIS SHOULD NOT be pipelined in a session until
one of IHAVE, CHECK, or TAKETHIS has worked.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Fri Oct 15 03:44:21 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct 15 03:44:31 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <4161FADD.8090603@oceana.com>
References: <4161AAF9.6010700@oceana.com>
	<87oejitfr2.fsf@windlord.stanford.edu> <4161AD00.10905@oceana.com>
	<87k6u6tfgg.fsf@windlord.stanford.edu>
	<4161AEE4.9030000@oceana.com> <4161B33F.3040405@oceana.com>
	<87brfirx3n.fsf@windlord.stanford.edu>
	<4161DAC6.9090502@oceana.com>
	<87mzz2oykb.fsf@windlord.stanford.edu>
	<4161FADD.8090603@oceana.com>
Message-ID: <20041015104420.GK86062@finch-staff-1.thus.net>

[Still catching up, I'm afraid.]

>>> 			IHAVE	CHECK	TAKETHIS
>>> xferred OK:		235	NA	239
>>> send article:		335	238	NA
>>> not wanted:		435	438	[438]
>>> xfer not possible:	436	431	[431]
>>> xfer failed:		436	NA	[431]
>>> xfer rejected:	437	NA	439

>> If I understand your table correctly, "not wanted" is the decision made
>> before the article is sent, which isn't possible for TAKETHIS.  So that
>> column would be NA for TAKETHIS.
> I still think that "not wanted" (a.k.a. "already have this msgid") is 
> still valid for TAKETHIS.

I think the table is being looked at wrongly. If you split the two stages
of IHAVE, it becomes more obvious:

                         IHAVE-1   IHAVE-2   CHECK     TAKETHIS
    send article:          335        -       238         -
    not wanted:            435        -       438         -
    xfer not possible:     436        -       431         -
    xferred OK:             -        235       -         239
    xfer failed, retry:     -        436       -        [???]
    xfer rejected:          -        437       -         439

The code in brackets could be 431 (dual-use, just like 436), or it can be a
separate code (on the "one situation one code" principle).

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Fri Oct 15 06:14:24 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Oct 15 06:14:41 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <20041015085218.GA86186@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
Message-ID: <416FCD30.40906@oceana.com>

Clive D.W. Feather wrote:

>>The second problem is that, based on our drafts, at least one
>>implementation (INN) and possibly others have started adding LIST
>>EXTENSIONS.  However, the extension list was not finalized, and in
>>particular AUTHINFO was not advertised by the early INN implementation
>>even though AUTHINFO USER was supported.  A client that uses the extension
>>mechanism properly would therefore think that those servers didn't support
>>authentication when they do.
> 
> 
> This is *always* going to be a problem in the stage between an extension
> being invented and the specification being finalised. Agreed it's rather
> worse for the stuff that has been around for a while, but it's not unique
> to them.

I don't see that.  Either early implementations advertise the new 
extension label as soon as they support the new command(s) (risking 
incompatibility if the functionality is a moving target), or (ideally) 
new extensions are implemented as X- commands until finalized.


>>The proposed solution is this:  Specify in our base draft that any server
>>that fully complies with the new specification advertise the NNTPv2
>>capability as part of LIST EXTENSIONS.
> 
> 
> Right, stop here. I don't like this idea. It's a kludge, and an unstructured
> one at that.

I disagree that its a kludge, it simply states that the server is 
compliant with RFC 977bis.  Any server which does not advertise it, is 
at best compliant with RFC 977 and LIST EXTENSIONS may or may not be 
accurate (a.k.a. the currently deployed mess).  The beauty is in the 
simplicity.  As stated earlier, this approach has worked well for IMAP.


> Rather than saying that LIST EXTENSIONS is unreliable unless the server
> sets the "I got it right, honest" flag, I think we're better off having a
> new command. There's little downside because server implementers are going
> to have to make changes anyway. This can then also fix other problems.

I *could* be convinced that a new command is worthwhile, but I'd have to 
see a compelling argument.


> The two big issues I can see that are going to bite us one day (if indeed
> they haven't already) are:
> 
> (1) There's no good way to indicate conformance to particular versions of
> extension protocols. Adding a versioning facility usually turns out to be
> a good idea in the long run.

I don't think this is necessary.  If the functionality of an existing 
command changes, then a new extension label should be created.


> (2) It's better to indicate what capabilities are available altogether,
> rather than just what are available right now. It's better for a client to
> know "you can do TLS once you've done MODE READER" than for it to have
> to guess that doing MODE READER might make STARTTLS magically appear.

I also don't think this is necessary at all.  IMAP, POP and SMTP clients 
don't seem to have any problem.


> So let's fix these now, while we have the chance.
> 
> Let me present my idea first as a bit of protocol:
> 
>     [C] STATUS
>     [S] 101 1.0     List of available extensions follows
>     [S] OVER 1.0 + MSGID
>     [S] HDR 1.0-RAA +
>     [S] LISTGROUP 1.0 -MODE-READER
>     [S] STARTTLS 0.0-02 -502
>     [S] AUTHINFO 0.0-05-x -502 USER SASL:PLAIN,EXTERNAL
>     [S] STREAMING 0.0-perhaps +
>     [S] XSECRET -CDWF -483
>     [S] XDATA -CDWF +
>     [.]

Yikes!  This seems like complete overkill, not to mention incredibly 
complex.


> But I'd certainly like to encourage extensions to indicate both what is
> available and what is currently-unavailable, rather than just the former.
> And this is something that I'd like to see even if we don't adopt this
> STATUS proposal.

I don't see why this is necessary.  We really need client authors to 
weigh in here.  We, as server authors shouldn't be deciding what's good 
for clients in a vacuum.


> Or we can bite the bullet and say that servers must advertise every command
> that they implement.

*Every* command?  Why?  The NNTPv2 capability states all of the base 
commands that the server supports (other than the optional LIST xxx 
stuff -- which is still a klugde IMHO).  Any other commands MUST be 
advertised by an extension label.


> However, I'm not 100% convinced. If a server does AUTHINFO SASL to spec,
> and AUTHINFO GENERIC, what should it advertise?

AUTHINFO GENERIC is not standardized relative to RFC 977bis guidelines 
and doesn't have any extension label.  Since AUTHINFO SASL *is* 
standarized and provides equal, if not superior, functionality, that's 
what a client should use.  A client is still free to probe for AUTHINFO 
GENERIC if it so chooses.


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Oct 15 06:18:18 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Oct 15 06:18:30 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <20041015090113.GB86062@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D4335.2010103@oceana.com>
	<20041015090113.GB86062@finch-staff-1.thus.net>
Message-ID: <416FCE1A.2060901@oceana.com>

Clive D.W. Feather wrote:

> We can't force someone to upgrade their support of an extension. All they
> have to do is declare it to be a private extension whose commands happen to
> have the same name. Better to recognise this than to pretend it doesn't
> happen. There's a similar issue with transition from one version of a
> specification to the next one; both of these are addressed in my STATUS
> proposal.

I agree that we can't force people to upgrade their software, but if 
they choose to advertise NNTPv2 without also fixing any legacy 
extensions to also be compliant, market pressure *will* force them to do 
so based on user complaints that their software is broken.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Oct 15 06:18:56 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Oct 15 06:19:08 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <20041015090707.GC86062@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D4335.2010103@oceana.com> <416D45B3.7030003@oceana.com>
	<20041015090707.GC86062@finch-staff-1.thus.net>
Message-ID: <416FCE40.2040903@oceana.com>

Clive D.W. Feather wrote:

> Ken Murchison said:
> 
>>Hmm, after thinking about this some more, maybe we can just state in the 
>>base doc that any server which is upgraded to RFC 977bis SHOULD also 
>>consult the IANA registry of NNTP extensions and MUST simultaneously 
>>upgrade any legacy extensions that it already supports.
> 
> 
> As I just said, I don't see how you enforce this.

Answered in another post.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Oct 15 06:20:30 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Oct 15 06:20:42 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <20041015091534.GD86062@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D785F.5080107@oceana.com>
	<20041015091534.GD86062@finch-staff-1.thus.net>
Message-ID: <416FCE9E.4060908@oceana.com>

Clive D.W. Feather wrote:
> 
> At present a command name is not restricted in any way (other than no
> spaces). I wonder if it would be a good idea to limit both extension labels
> and command names to some smaller character set (say alphanumeric plus dot
> and dash)? Do we want to forbid commands like "401" or "!@%)$&:#". Or, even
> worse, names with quotes? Whatever we decide, I think that we should use
> the same rule for extension labels and command names.

Yes, I could see allowing alphanumeric plus a few other special chars, 
and probably force the first char to be alpha.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Oct 15 06:24:02 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Oct 15 06:24:13 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <20041015102530.GH86062@finch-staff-1.thus.net>
References: <20041015102530.GH86062@finch-staff-1.thus.net>
Message-ID: <416FCF72.8040300@oceana.com>

Clive D.W. Feather wrote:
> I wrote:
> 
> 
>>Hang on.
> 
> 
>>As I see it, the 432 response to TAKETHIS has exactly the same meaning as
>>the 436 response to IHAVE. We explicitly list 436 as being possible after
>>the article body has been sent. So when do existing servers generate this
>>response? If they do, why shouldn't they generate 432 in the same
>>situation?
> 
> 
> Oh, and what about 441 to POST. Should this be replaced by 400 as well?

I am also confused.  I think we need Andrew to help us (or at least me) 
understand this how/why TAKETHIS is vastly different from IHAVE/POST.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Oct 15 06:30:03 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Oct 15 06:30:28 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <20041015104420.GK86062@finch-staff-1.thus.net>
References: <4161AAF9.6010700@oceana.com>
	<87oejitfr2.fsf@windlord.stanford.edu> <4161AD00.10905@oceana.com>
	<87k6u6tfgg.fsf@windlord.stanford.edu>
	<4161AEE4.9030000@oceana.com> <4161B33F.3040405@oceana.com>
	<87brfirx3n.fsf@windlord.stanford.edu>
	<4161DAC6.9090502@oceana.com>
	<87mzz2oykb.fsf@windlord.stanford.edu>
	<4161FADD.8090603@oceana.com>
	<20041015104420.GK86062@finch-staff-1.thus.net>
Message-ID: <416FD0DB.7070906@oceana.com>

Clive D.W. Feather wrote:

> 
> I think the table is being looked at wrongly. If you split the two stages
> of IHAVE, it becomes more obvious:
> 
>                          IHAVE-1   IHAVE-2   CHECK     TAKETHIS
>     send article:          335        -       238         -
>     not wanted:            435        -       438         -
>     xfer not possible:     436        -       431         -
>     xferred OK:             -        235       -         239
>     xfer failed, retry:     -        436       -        [???]
>     xfer rejected:          -        437       -         439
> 
> The code in brackets could be 431 (dual-use, just like 436), or it can be a
> separate code (on the "one situation one code" principle).

Yes, your split table illustrates the point better.  The -02 draft uses 
432 to fill the hole, but I'm not convinced that it can't be 431.

Would a client really intermingle CHECK and TAKETHIS within the same 
pipeline of commands?  If not, then why do the response codes need to be 
unique?

Perhaps I just don't understand how CHECK/TAKETHIS is currently used in 
the wild.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From andrew at supernews.net  Fri Oct 15 10:55:23 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Fri Oct 15 10:55:40 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <20041015102147.GF86062@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Fri, 15 Oct 2004 11:21:47 +0100")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<87acuqrw4s.fsf@windlord.stanford.edu> <416DCFA5.9080305@oceana.com>
	<87lleanm6y.fsf@windlord.stanford.edu> <416DF1BE.9010703@oceana.com>
	<87k6ttlxc2.fsf@windlord.stanford.edu> <416E710F.8050906@oceana.com>
	<20041015102147.GF86062@finch-staff-1.thus.net>
Message-ID: <E1CIWIk-000J9b-PX@trinity.supernews.net>

>>>>> "Clive" == Clive D W Feather <clive@demon.net> writes:

 >> The existing paragraph was taken verbatim (other then the 432)
 >> from the base doc.  Does this change also apply to IHAVE, or does
 >> TAKETHIS have subtle differences from IHAVE in the wild?

 Clive> Hang on.

 Clive> As I see it, the 432 response to TAKETHIS has exactly the same
 Clive> meaning as the 436 response to IHAVE. We explicitly list 436
 Clive> as being possible after the article body has been sent. So
 Clive> when do existing servers generate this response?

INN never generates 436 after receiving an article body. Older diablo
versions (haven't checked newer ones) generate 436 if they failed to
store the article, which is bogus for the same reasons that I covered
for the TAKETHIS case (it results in the sending end wasting a lot of
effort).

 Clive> If they do, why shouldn't they generate 432 in the same
 Clive> situation?

I assume you mean "431" rather than "432", because generating 432
under any circumstances whatever breaks existing streaming clients.

Every implementation I've checked handles article bodies in IHAVE
and TAKETHIS commands the same, generally using the same code.

-- 
Andrew, Supernews
http://www.supernews.com

From andrew at supernews.net  Fri Oct 15 10:58:06 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Fri Oct 15 10:58:21 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <20041015102433.GG86062@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Fri, 15 Oct 2004 11:24:33 +0100")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<20041015102433.GG86062@finch-staff-1.thus.net>
Message-ID: <E1CIWLM-000JCn-0h@trinity.supernews.net>

>>>>> "Clive" == Clive D W Feather <clive@demon.net> writes:

 Clive> The problem with closing (or issuing a 400, which is far
 Clive> superior) is that it prevents the client doing anything else,
 Clive> like newsreading.

In practice, streaming feeds and newsreading are never done on the
same connection. If for some strange reason the client wants to use
reader commands, it can reconnect.

-- 
Andrew, Supernews
http://www.supernews.com

From andrew at supernews.net  Fri Oct 15 11:16:19 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Fri Oct 15 11:16:34 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <20041015102929.GI86062@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Fri, 15 Oct 2004 11:29:29 +0100")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<20041015102929.GI86062@finch-staff-1.thus.net>
Message-ID: <E1CIWcz-000JYi-MA@trinity.supernews.net>

>>>>> "Clive" == Clive D W Feather <clive@demon.net> writes:

 >> The distinguishing factor is whether the server has any reason to
 >> expect that an immediate following TAKETHIS for a different
 >> article, or a later following TAKETHIS for the same article, has
 >> any chance of success. If the server is getting errors (such as
 >> disk full) that aren't article-specific, then it should really
 >> fail in a way that also isn't article-specific (and closing the
 >> connection, possibly rejecting further connections until the
 >> problem is resolved, seems the better option).

 Clive> The problem is that the errors are only posting-specific; they
 Clive> don't stop clients from doing anything else. Therefore closing
 Clive> the connection is a draconian solution.

It's the only solution that works in practice. We have plenty of
experience with the "return 431 to every article body" scenario and
the mess it causes.

 Clive> The answer, perhaps, is to define the 431/432/436/441
 Clive> responses as "don't try to post anything else for a while",

Trying to redefine the meaning of responses that are already
recognized by existing code is a really bad idea.

 >> If it stays in the draft, then (a) it specifically needs to be the
 >> 431 code rather than a new one,

 Clive> Back in March Russ explained why CHECK and TAKETHIS need
 Clive> different status codes. I don't have the explanation to hand,
 Clive> but I see from my sent-mail archive that they convinced me at
 Clive> the time.

Superficially they do, and life would actually be a hell of a lot
simpler if they were still unique and no implementation ever returned
431 responses to TAKETHIS. Unfortunately that simplicity went away
years ago thanks to Diablo's misuse of 431. In practice, the only way
that works is to make sure that your servers never actually return
that 431 code. Changing it to 432 may sound sensible from the point of
view of uniqueness, but it founders on the problem of incompatibility
with existing software.

If no-one can actually come up with a realistic case for why a server
should ever need to return a defer in response to a TAKETHIS article
body, then I'd suggest dropping it out of the draft entirely.

-- 
Andrew, Supernews
http://www.supernews.com

From andrew at supernews.net  Fri Oct 15 11:20:38 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Fri Oct 15 11:20:52 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <416FD0DB.7070906@oceana.com> (Ken Murchison's message of "Fri,
	15 Oct 2004 09:30:03 -0400")
References: <4161AAF9.6010700@oceana.com>
	<87oejitfr2.fsf@windlord.stanford.edu> <4161AD00.10905@oceana.com>
	<87k6u6tfgg.fsf@windlord.stanford.edu> <4161AEE4.9030000@oceana.com>
	<4161B33F.3040405@oceana.com> <87brfirx3n.fsf@windlord.stanford.edu>
	<4161DAC6.9090502@oceana.com> <87mzz2oykb.fsf@windlord.stanford.edu>
	<4161FADD.8090603@oceana.com>
	<20041015104420.GK86062@finch-staff-1.thus.net>
	<416FD0DB.7070906@oceana.com>
Message-ID: <E1CIWh9-000Jen-Or@trinity.supernews.net>

>>>>> "Ken" == Ken Murchison <ken@oceana.com> writes:

 Ken> Would a client really intermingle CHECK and TAKETHIS within the
 Ken> same pipeline of commands?

Absolutely. It's the normal case, in fact.

-- 
Andrew, Supernews
http://www.supernews.com

From andrew at supernews.net  Fri Oct 15 11:35:03 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Fri Oct 15 11:35:23 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <20041015102530.GH86062@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Fri, 15 Oct 2004 11:25:31 +0100")
References: <20041015102530.GH86062@finch-staff-1.thus.net>
Message-ID: <E1CIWvB-000JuS-Hi@trinity.supernews.net>

>>>>> "Clive" == Clive D W Feather <clive@demon.net> writes:

 Clive> Oh, and what about 441 to POST. Should this be replaced by 400
 Clive> as well?

No.

(I'm at a loss what further explanation to give for that, because even
making the suggestion shows a complete failure to understand common
NNTP usage.)

-- 
Andrew, Supernews
http://www.supernews.com

From clive at demon.net  Fri Oct 15 12:31:19 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Fri Oct 15 12:31:21 2004
Subject: [NNTP] Streaming draft 02
Message-ID: <20041015193119.GA44247@finch-staff-1.thus.net>

[Sorry, lost the original message]

A few minor comments.

Abstract and 2.2: I would change "asynchronous" to "pipelined".

2.3.3: "requesting" gives the wrong message, implying that it's necessary
to use MODE STREAMING. Use "checking" instead.

You need a section 3.3 (actually, it belongs between 3.1 and 3.2):

   3.2  Command continuation

   This syntax extends the non-terminal "command-continuation", which
   represents the further material sent by the client in the case of
   multi-stage commands.

     command-continuation /= takethis-continuation

     takethis-continuation = encoded-article

(encoded-article is defined in [NNTP]).

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Fri Oct 15 12:33:58 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Oct 15 12:34:18 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <E1CIWh9-000Jen-Or@trinity.supernews.net>
References: <4161AAF9.6010700@oceana.com>	<87oejitfr2.fsf@windlord.stanford.edu>
	<4161AD00.10905@oceana.com>	<87k6u6tfgg.fsf@windlord.stanford.edu>
	<4161AEE4.9030000@oceana.com>	<4161B33F.3040405@oceana.com>
	<87brfirx3n.fsf@windlord.stanford.edu>	<4161DAC6.9090502@oceana.com>
	<87mzz2oykb.fsf@windlord.stanford.edu>	<4161FADD.8090603@oceana.com>	<20041015104420.GK86062@finch-staff-1.thus.net>	<416FD0DB.7070906@oceana.com>
	<E1CIWh9-000Jen-Or@trinity.supernews.net>
Message-ID: <41702626.20400@oceana.com>

Andrew - Supernews wrote:
>>>>>>"Ken" == Ken Murchison <ken@oceana.com> writes:
> 
> 
>  Ken> Would a client really intermingle CHECK and TAKETHIS within the
>  Ken> same pipeline of commands?
> 
> Absolutely. It's the normal case, in fact.

Can you explain?

I assumed that the client would first pipeline a series of CHECK 
commands to build a list of articles that the server wants.  Then the 
client sends the articles with a pipeline of TAKETHIS commands.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Oct 15 12:37:01 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Oct 15 12:37:11 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <E1CIWIk-000J9b-PX@trinity.supernews.net>
References: <416D9998.7090301@oceana.com>	<E1CHrl2-0009ih-2s@trinity.supernews.net>	<87acuqtenw.fsf@windlord.stanford.edu>	<E1CHtG3-000AvF-V4@trinity.supernews.net>	<87acuqrw4s.fsf@windlord.stanford.edu>
	<416DCFA5.9080305@oceana.com>	<87lleanm6y.fsf@windlord.stanford.edu>
	<416DF1BE.9010703@oceana.com>	<87k6ttlxc2.fsf@windlord.stanford.edu>
	<416E710F.8050906@oceana.com>	<20041015102147.GF86062@finch-staff-1.thus.net>
	<E1CIWIk-000J9b-PX@trinity.supernews.net>
Message-ID: <417026DD.60108@oceana.com>

Andrew - Supernews wrote:

> INN never generates 436 after receiving an article body. Older diablo
> versions (haven't checked newer ones) generate 436 if they failed to
> store the article, which is bogus for the same reasons that I covered
> for the TAKETHIS case (it results in the sending end wasting a lot of
> effort).
> 
>  Clive> If they do, why shouldn't they generate 432 in the same
>  Clive> situation?
> 
> I assume you mean "431" rather than "432", because generating 432
> under any circumstances whatever breaks existing streaming clients.
> 
> Every implementation I've checked handles article bodies in IHAVE
> and TAKETHIS commands the same, generally using the same code.

So, are you saying that in practice that servers will never (and should 
not ever) respond with a deferral type code to IHAVE, POST, and TAKETHIS 
after receiving the article?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Fri Oct 15 12:38:57 2004
From: ken at oceana.com (Ken Murchison)
Date: Fri Oct 15 12:39:07 2004
Subject: [NNTP] Streaming draft 02
In-Reply-To: <20041015193119.GA44247@finch-staff-1.thus.net>
References: <20041015193119.GA44247@finch-staff-1.thus.net>
Message-ID: <41702751.5040103@oceana.com>

Clive D.W. Feather wrote:

> [Sorry, lost the original message]
> 
> A few minor comments.
> 
> Abstract and 2.2: I would change "asynchronous" to "pipelined".

I think asynchronous came from Jeff and/or RFC 2980, but I'm fine with 
either language.


> 2.3.3: "requesting" gives the wrong message, implying that it's necessary
> to use MODE STREAMING. Use "checking" instead.

Good point.


> You need a section 3.3 (actually, it belongs between 3.1 and 3.2):
> 
>    3.2  Command continuation
> 
>    This syntax extends the non-terminal "command-continuation", which
>    represents the further material sent by the client in the case of
>    multi-stage commands.
> 
>      command-continuation /= takethis-continuation
> 
>      takethis-continuation = encoded-article
> 
> (encoded-article is defined in [NNTP]).

Good catch.  Thanks!


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From fantec at proxad.net  Fri Oct 15 15:00:10 2004
From: fantec at proxad.net (Francois Petillon)
Date: Fri Oct 15 15:00:16 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <41702626.20400@oceana.com>
References: <4161AAF9.6010700@oceana.com>	<87oejitfr2.fsf@windlord.stanford.edu>	<4161AD00.10905@oceana.com>	<87k6u6tfgg.fsf@windlord.stanford.edu>	<4161AEE4.9030000@oceana.com>	<4161B33F.3040405@oceana.com>	<87brfirx3n.fsf@windlord.stanford.edu>	<4161DAC6.9090502@oceana.com>	<87mzz2oykb.fsf@windlord.stanford.edu>	<4161FADD.8090603@oceana.com>	<20041015104420.GK86062@finch-staff-1.thus.net>	<416FD0DB.7070906@oceana.com>	<E1CIWh9-000Jen-Or@trinity.supernews.net>
	<41702626.20400@oceana.com>
Message-ID: <4170486A.3080905@proxad.net>

Ken Murchison wrote:
> I assumed that the client would first pipeline a series of CHECK 
> commands to build a list of articles that the server wants.  Then the 
> client sends the articles with a pipeline of TAKETHIS commands.

No, this is not optimal on transmission delays. IMHO, after starting a 
new stream by sending a few CHECKs, you should then send a new CHECK
for each answer you get. And if you have to send a TAKETHIS (followed
by the article), then you have to send the CHECK before the TAKETHIS.

   Fran?ois
From andrew at supernews.net  Fri Oct 15 15:04:23 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Fri Oct 15 15:04:47 2004
Subject: [NNTP] Re: [ietf-nntp] draft-ietf-nntpext-streaming-01.txt
In-Reply-To: <41702626.20400@oceana.com> (Ken Murchison's message of "Fri,
	15 Oct 2004 15:33:58 -0400")
References: <4161AAF9.6010700@oceana.com>
	<87oejitfr2.fsf@windlord.stanford.edu> <4161AD00.10905@oceana.com>
	<87k6u6tfgg.fsf@windlord.stanford.edu> <4161AEE4.9030000@oceana.com>
	<4161B33F.3040405@oceana.com> <87brfirx3n.fsf@windlord.stanford.edu>
	<4161DAC6.9090502@oceana.com> <87mzz2oykb.fsf@windlord.stanford.edu>
	<4161FADD.8090603@oceana.com>
	<20041015104420.GK86062@finch-staff-1.thus.net>
	<416FD0DB.7070906@oceana.com>
	<E1CIWh9-000Jen-Or@trinity.supernews.net> <41702626.20400@oceana.com>
Message-ID: <E1CIaBp-000Mu1-8C@trinity.supernews.net>

>>>>> "Ken" == Ken Murchison <ken@oceana.com> writes:

 Ken> Would a client really intermingle CHECK and TAKETHIS within the
 Ken> same pipeline of commands?

 >> Absolutely. It's the normal case, in fact.

 Ken> Can you explain?

 Ken> I assumed that the client would first pipeline a series of CHECK
 Ken> commands to build a list of articles that the server wants.
 Ken> Then the client sends the articles with a pipeline of TAKETHIS
 Ken> commands.

The client never actually stops sending CHECKs. Remember that the
objective is to keep the pipe full at all times, unless the supply of
articles to send dries up (which is not usually a problem). The
entire transfer session is just one big pipeline.

-- 
Andrew, Supernews
http://www.supernews.com

From andrew at supernews.net  Fri Oct 15 15:24:24 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Fri Oct 15 15:24:39 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <417026DD.60108@oceana.com> (Ken Murchison's message of "Fri,
	15 Oct 2004 15:37:01 -0400")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<87acuqrw4s.fsf@windlord.stanford.edu> <416DCFA5.9080305@oceana.com>
	<87lleanm6y.fsf@windlord.stanford.edu> <416DF1BE.9010703@oceana.com>
	<87k6ttlxc2.fsf@windlord.stanford.edu> <416E710F.8050906@oceana.com>
	<20041015102147.GF86062@finch-staff-1.thus.net>
	<E1CIWIk-000J9b-PX@trinity.supernews.net> <417026DD.60108@oceana.com>
Message-ID: <E1CIaV4-000N8l-FR@trinity.supernews.net>

>>>>> "Ken" == Ken Murchison <ken@oceana.com> writes:

 Ken> So, are you saying that in practice that servers will never (and
 Ken> should not ever) respond with a deferral type code to IHAVE,
 Ken> POST, and TAKETHIS after receiving the article?

What has POST got to do with this? There is no "deferral" response to
a POST command.

What I'm saying is that I know of no cases in which it makes sense for
a server to return a deferral after the article body in either IHAVE
or TAKETHIS. I'm also saying that there are existing servers that do
so anyway under certain conditions, and that in such cases the
response causes far more problems than it solves, so the spec
certainly shouldn't encourage it.

Deferral responses to IHAVE after the body aren't likely to cause a
huge problem in practice, though they won't necessarily work as
expected from the server's viewpoint.

-- 
Andrew, Supernews
http://www.supernews.com

From clive at demon.net  Mon Oct 18 02:27:18 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 02:27:23 2004
Subject: [NNTP] Changes to draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <416C835D.50507@oceana.com>
References: <416C835D.50507@oceana.com>
Message-ID: <20041018092718.GC31499@finch-staff-1.thus.net>

Ken Murchison said:
> Based on list traffic, here are the only changes that I have to this 
> draft for a -04 revision (and hopefully WGLC).  I'm not sure if the 
> "MUST NOT return either 480 or 483" is correct grammar.

It is for me.

> Should this be 
> "either 480 nor 483", should I remove "either",

No. If you want to use "nor", the correct English is "... must return
neither 480 nor 483 ...", but that doesn't use "MUST NOT" and isn't good
RFC-speak.

> or is there better 
> english available that I'm too thick to come up with?

I think what you have is fine.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct 18 02:28:12 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 02:28:24 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <87k6tvfuh1.fsf@windlord.stanford.edu>
References: <20041005075941.GB18978@finch-staff-1.thus.net>
	<416AD0C0.8040903@oceana.com>
	<87k6tvfuh1.fsf@windlord.stanford.edu>
Message-ID: <20041018092812.GD31499@finch-staff-1.thus.net>

Russ Allbery said:
>> How about "... further restricted NNTP commands from the client with a
>> 483 response code ...."
> I like restricted better than substantive.  I think it's worthwhile making
> sure that people know that there are exceptions like QUIT here in this
> text.

No objection from me.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct 18 02:32:05 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 02:32:09 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <416AD0C0.8040903@oceana.com>
References: <20041005075941.GB18978@finch-staff-1.thus.net>
	<416AD0C0.8040903@oceana.com>
Message-ID: <20041018093205.GE31499@finch-staff-1.thus.net>

Ken Murchison said:
>> You might also want to add a LIST EXTENSIONS to the last example to show
>> this.
> Actually, doesn't the use of GROUP local.public in the last example 
> already illustrate this point?

That illustrates the 400. What I meant was, insert a LIST EXTENSIONS (which
should *succeed*) between the two GROUPs, showing that "483 to everything"
can't override the requirement for certain basic commands to work.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct 18 02:34:26 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 02:34:30 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <4162A5AA.4070708@oceana.com>
References: <20041005075941.GB18978@finch-staff-1.thus.net>
	<4162A5AA.4070708@oceana.com>
Message-ID: <20041018093426.GF31499@finch-staff-1.thus.net>

Ken Murchison said:
>> In particular, if you want to do TLS to protect core commands, there's no
>> need to issue a LIST EXTENSIONS at all.
> Huh?  I don't follow.  After TLS, the available auth mechanisms may 
> change, and a client really should check for this.

If the only commands that you're going to use under TLS are ones in the
core specification, and nothing you're going to do requires separate
authorisation, then you don't need to do LIST EXTENSIONS.

It all depends on *why* you're doing TLS.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct 18 02:36:14 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 02:36:27 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <E1CIWLM-000JCn-0h@trinity.supernews.net>
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<20041015102433.GG86062@finch-staff-1.thus.net>
	<E1CIWLM-000JCn-0h@trinity.supernews.net>
Message-ID: <20041018093614.GG31499@finch-staff-1.thus.net>

Andrew - Supernews said:
>  Clive> The problem with closing (or issuing a 400, which is far
>  Clive> superior) is that it prevents the client doing anything else,
>  Clive> like newsreading.
> 
> In practice, streaming feeds and newsreading are never done on the
> same connection.

Why is that justification for hardwiring it into the specification for ever
more?

> If for some strange reason the client wants to use
> reader commands, it can reconnect.

And you don't think that's antisocial?

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct 18 02:47:55 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 02:48:04 2004
Subject: [NNTP] MODE READER
In-Reply-To: <Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
Message-ID: <20041018094755.GH31499@finch-staff-1.thus.net>

Pulling this one bit out.

Mark Crispin said:
> As far as MODE READER goes, the very existance of that command is a 
> protocol design wart to work around an implementation design bug.  NNTPv2 
> should make it MANDATORY that MODE READER is a no-op in any NNTPv2 
> compliant server; in particular it is NOT required of a client, and does 
> NOT change any server protocol modes.  The sole purpose of MODE READER 
> should be to try to communicate with pre-NNTPv2 servers.
> 
> You can't claim to draw a line in the sand between old cruft and new 
> goodness if you leave behind these warts.

As far as MODE READER is concerned, I personally agree with you. However,
server implementers will tell you otherwise. If you want to argue for this
change, please do so and let's see what happens.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct 18 03:13:11 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 03:13:20 2004
Subject: [NNTP] Command names
In-Reply-To: <416FCE9E.4060908@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D785F.5080107@oceana.com>
	<20041015091534.GD86062@finch-staff-1.thus.net>
	<416FCE9E.4060908@oceana.com>
Message-ID: <20041018101311.GI31499@finch-staff-1.thus.net>

Splitting this out as a sub-thread:

Ken Murchison said:
> Clive D.W. Feather wrote:
>> At present a command name is not restricted in any way (other than no
>> spaces). I wonder if it would be a good idea to limit both extension labels
>> and command names to some smaller character set (say alphanumeric plus dot
>> and dash)? Do we want to forbid commands like "401" or "!@%)$&:#". Or, even
>> worse, names with quotes? Whatever we decide, I think that we should use
>> the same rule for extension labels and command names.
> Yes, I could see allowing alphanumeric plus a few other special chars, 
> and probably force the first char to be alpha.

Okay, here's the proposal. Any comments or objections?

In 3.1:

- Keywords MUST consist of printable US-ASCII characters.
+ Keywords MUST contain only US-ASCII letters, digits, dot ("." or %x2E),
+ and dash ("-" or %x2D) and MUST begin with a letter.

[The bit about case-insensitive is further down.]

In 8:

- An extension is identified by a unique extension-label, which is a string
- of 1 to 12 uppercase US-ASCII letters.
+ An extension is identified by a unique extension-label, which is a
+ keyword; it MUST be between 3 and 12 characters, MUST contain only
+ US-ASCII letters, digits, dot ("." or %x2E), and dash ("-" or %x2D),
+ and MUST begin with a letter. Extension-labels are case insensitive.

In 9.1:

- x-command-name = 3*12A-CHAR
+ x-command-name = keyword

In 9.4:

- extension-label = 1*12UPPER
+ extension-label = keyword

In 9.5:

+ keyword = ALPHA 2*11(ALPHA / DIGIT / "." / "-")

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct 18 03:15:52 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 03:15:55 2004
Subject: [NNTP] Section number changes
Message-ID: <20041018101552.GJ31499@finch-staff-1.thus.net>

I've added a new section 8.1 "Definition of Extensions" to the base
document, starting at the text "An extension is identified by a unique
extension-label". This means all existing 8.x section numbers will increase
by 1. If you are citing the base document, you might want to check this
(the references in the base document itself are self-fixing).

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From puntomaupunto at tin.it  Mon Oct 18 03:19:27 2004
From: puntomaupunto at tin.it (maurizio codogno)
Date: Mon Oct 18 03:19:34 2004
Subject: [NNTP] Command names
In-Reply-To: <20041018101311.GI31499@finch-staff-1.thus.net>
Message-ID: <4153777900030A9B@ims4a.cp.tin.it>


>>>I wonder if it would be a good idea to limit both extension labels
>>> and command names to some smaller character set (say alphanumeric 
>>>plus dot and dash)?

>Okay, here's the proposal. Any comments or objections?

fine for me. 
Underscore could have been fine, but I see no mandatory use for it,
so it's better to stick to alphanum plus dot and dash.

ciao, .mau.

From clive at demon.net  Mon Oct 18 03:23:56 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 03:24:03 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05 &
	draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <87sm8jfuj6.fsf@windlord.stanford.edu>
References: <41616283.9060901@oceana.com>
	<20041005082354.GC18978@finch-staff-1.thus.net>
	<4162A4FD.4080003@oceana.com>
	<87sm8jfuj6.fsf@windlord.stanford.edu>
Message-ID: <20041018102356.GK31499@finch-staff-1.thus.net>

Russ Allbery said:
>>> In authinfo-05, section 2.2, para 5 (of 7) I don't see the point of the
>>> last sentence and in particular the SHOULD. See the similar comment on
>>> the TLS document for details.
>> This dovetails with the fact that the capabilties might change after
>> auth/tls and the client should check for this.  Russ, care to comment? 
>> I'm not married to this at this point, so I'll let the chair decide.
> As I understand it, any time that the capabilities change, the client
> needs to query them again in order for the extensions mechanism to work
> the way that it works for other protocols.  Therefore, the only time that
> a client should continue without sending LIST EXTENSIONS is if they intend
> to not use any extensions whatsoever,

Okay so far. But the following paragraph already explains that the contents
might change and why, and section 6 explains that you must discard any
knowledge of extensions when SASL comes into effect. If the client runs
into either of these situations, it will (re-)send LIST EXTENSIONS anyway.
If it doesn't, it has no need to and so the SHOULD is wrong.

I suggest dropping this sentence and merging the two paragraphs.

> and if we're advertising the NNTP
> protocol version in LIST EXTENSIONS as well, I think it would be better to
> just have clients always send it.

I don't follow the logic. The NNTP protocol version will not change just
because you've authenticated (I hope!). So asking for it again doesn't tell
you anything.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct 18 03:33:58 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 03:34:03 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05 &
	draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <4162A4FD.4080003@oceana.com>
References: <41616283.9060901@oceana.com>
	<20041005082354.GC18978@finch-staff-1.thus.net>
	<4162A4FD.4080003@oceana.com>
Message-ID: <20041018103358.GL31499@finch-staff-1.thus.net>

Ken Murchison said:
>> In authinfo-05, section 2.2, para 5 (of 7) I don't see the point of the
>> last sentence and in particular the SHOULD. See the similar comment on the
>> TLS document for details.
> This dovetails with the fact that the capabilties might change after 
> auth/tls and the client should check for this.  Russ, care to comment? 
> I'm not married to this at this point, so I'll let the chair decide.

See my response to Russ.

>> I still think the last paragraph of 2.2 does things wrong; I've given
>> my preference several times, so I won't repeat it again.
> I apologize, I must have lost track of this in the threads or assumed 
> that we had a consensus (all 4 of us :) otherwise.  Can you reiterate
> your argument and suggested text?

After a successful AUTHINFO command, the client MUST NOT issue another one.
Therefore the contents of the LIST EXTENSIONS response AUTHINFO line is
largely academic; its only use is as information as to what *was*
available. This has been accepted for SASL, but I believe it applies
equally well in every case if it applies at all.

So change the last paragraph of 2.2 to:

     After a successful authentication, the client MUST NOT issue another
     AUTHINFO command in the same session and a server MUST reject any
     further AUTHINFO commands with a 502 response.  For this reason,
     once authentication has happened the AUTHINFO line in the results of
     LIST EXTENSIONS is effectively irrelevant. Per [SASL], in order to
     allow the client to determine what options were available, the
     server MUST return the same arguments in this line as it would have
     done immediately before the successful authentication; inter alia
     this assists the detection of a possible active down-negotiation
     attack.

[Note that this swallows the first sentence of the paragraph two above; I'm
already arguing to lose the second sentence.]

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct 18 03:36:24 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 03:36:31 2004
Subject: [NNTP] draft-ietf-nntpext-authinfo-05 &
	draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <20041018102356.GK31499@finch-staff-1.thus.net>
References: <41616283.9060901@oceana.com>
	<20041005082354.GC18978@finch-staff-1.thus.net>
	<4162A4FD.4080003@oceana.com>
	<87sm8jfuj6.fsf@windlord.stanford.edu>
	<20041018102356.GK31499@finch-staff-1.thus.net>
Message-ID: <20041018103624.GM31499@finch-staff-1.thus.net>

I wrote:
>> Therefore, the only time that
>> a client should continue without sending LIST EXTENSIONS is if they intend
>> to not use any extensions whatsoever,
> 
> Okay so far. But the following paragraph already explains that the contents
> might change and why, and section 6 explains that you must discard any
> knowledge of extensions when SASL comes into effect. If the client runs
> into either of these situations, it will (re-)send LIST EXTENSIONS anyway.
> If it doesn't, it has no need to and so the SHOULD is wrong.

To make my position clearer, the SHOULD here says that a client is not
conforming if it doesn't send the LIST EXTENSIONS without a very good
reason. But if it doesn't need the results, there's no good reason, while
if it does then the SHOULD doesn't do anything anyway.

This doesn't seem to me to be an area that justifies the coercion of a
SHOULD.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct 18 03:44:07 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 03:44:28 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <E1CIaV4-000N8l-FR@trinity.supernews.net>
References: <87acuqrw4s.fsf@windlord.stanford.edu>
	<416DCFA5.9080305@oceana.com>
	<87lleanm6y.fsf@windlord.stanford.edu>
	<416DF1BE.9010703@oceana.com>
	<87k6ttlxc2.fsf@windlord.stanford.edu>
	<416E710F.8050906@oceana.com>
	<20041015102147.GF86062@finch-staff-1.thus.net>
	<E1CIWIk-000J9b-PX@trinity.supernews.net>
	<417026DD.60108@oceana.com>
	<E1CIaV4-000N8l-FR@trinity.supernews.net>
Message-ID: <20041018104407.GN31499@finch-staff-1.thus.net>

Andrew - Supernews said:
> What I'm saying is that I know of no cases in which it makes sense for
> a server to return a deferral after the article body in either IHAVE
> or TAKETHIS.

So your position is that the specification(s) should say something like:

    If the server is unable to process the article immediately, or
    runs into any problem when processing it, it will reject the
    article and the client MUST NOT attempt to re-send it *EVER AGAIN*.

If you disagree with this, then you're saying there needs to be a "defer"
code.

If you agree with this then I'm afraid I simply can't support you. This is
a prime opportunity for articles to get lost (and don't mention the inkblot
algorithm; there are plenty of bottlenecks in the system and this RFC
doesn't only apply to global-Usenet).

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct 18 03:46:43 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 03:46:58 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <E1CIWIk-000J9b-PX@trinity.supernews.net>
References: <87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<87acuqrw4s.fsf@windlord.stanford.edu>
	<416DCFA5.9080305@oceana.com>
	<87lleanm6y.fsf@windlord.stanford.edu>
	<416DF1BE.9010703@oceana.com>
	<87k6ttlxc2.fsf@windlord.stanford.edu>
	<416E710F.8050906@oceana.com>
	<20041015102147.GF86062@finch-staff-1.thus.net>
	<E1CIWIk-000J9b-PX@trinity.supernews.net>
Message-ID: <20041018104643.GO31499@finch-staff-1.thus.net>

Andrew - Supernews said:
>  Clive> As I see it, the 432 response to TAKETHIS has exactly the same
>  Clive> meaning as the 436 response to IHAVE. We explicitly list 436
>  Clive> as being possible after the article body has been sent. So
>  Clive> when do existing servers generate this response?
> 
> INN never generates 436 after receiving an article body. Older diablo
> versions (haven't checked newer ones) generate 436 if they failed to
> store the article, which is bogus for the same reasons that I covered
> for the TAKETHIS case (it results in the sending end wasting a lot of
> effort).

No, you mean "which triggers undesirable behaviour in broken clients". It's
not at all a bogus response; on the contrary, it's a conforming one.

>  Clive> If they do, why shouldn't they generate 432 in the same
>  Clive> situation?
> I assume you mean "431" rather than "432", because generating 432
> under any circumstances whatever breaks existing streaming clients.

No, I mean 432 because that's what the specification say. Just because
some existing clients are broken (and crashing when they receive 432 is
broken) doesn't mean that we have to pander to them.

There may be grounds for not distinguishing the CHECK and TAKETHIS
responses, but you need a better argument than bogusware.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Mon Oct 18 03:51:37 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Mon Oct 18 03:51:47 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <E1CIWcz-000JYi-MA@trinity.supernews.net>
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<20041015102929.GI86062@finch-staff-1.thus.net>
	<E1CIWcz-000JYi-MA@trinity.supernews.net>
Message-ID: <20041018105137.GP31499@finch-staff-1.thus.net>

Andrew - Supernews said:
> If no-one can actually come up with a realistic case for why a server
> should ever need to return a defer in response to a TAKETHIS article
> body, then I'd suggest dropping it out of the draft entirely.

The realistic case is very simple: if the server can't accept the article
now but has no objection to the article itself, then it needs some way to
say so. There are only three ways to do this:

(1) Declare that you can never defer an article: if sending it goes wrong
for any reason, that article can NEVER EVER FOR ETERNITY be accepted.

(2) Give a bogus response like 400 plus dropping the connection, at which
point the client doesn't know what is wrong and will retry the same
action.

(3) A defer code.

This is so obviously superior that RFC 977 did it and SMTP does it.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Mon Oct 18 07:04:34 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct 18 07:03:57 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <20041018093426.GF31499@finch-staff-1.thus.net>
References: <20041005075941.GB18978@finch-staff-1.thus.net>
	<4162A5AA.4070708@oceana.com>
	<20041018093426.GF31499@finch-staff-1.thus.net>
Message-ID: <4173CD72.5010602@oceana.com>

Clive D.W. Feather wrote:

> Ken Murchison said:
> 
>>>In particular, if you want to do TLS to protect core commands, there's no
>>>need to issue a LIST EXTENSIONS at all.
>>
>>Huh?  I don't follow.  After TLS, the available auth mechanisms may 
>>change, and a client really should check for this.
> 
> 
> If the only commands that you're going to use under TLS are ones in the
> core specification, and nothing you're going to do requires separate
> authorisation, then you don't need to do LIST EXTENSIONS.
> 
> It all depends on *why* you're doing TLS.

True.  That's why its a SHOULD, not a MUST.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Mon Oct 18 07:10:45 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct 18 07:10:06 2004
Subject: [NNTP] Re: Command names
In-Reply-To: <20041018101311.GI31499@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D785F.5080107@oceana.com>
	<20041015091534.GD86062@finch-staff-1.thus.net>
	<416FCE9E.4060908@oceana.com>
	<20041018101311.GI31499@finch-staff-1.thus.net>
Message-ID: <4173CEE5.90303@oceana.com>

Clive D.W. Feather wrote:

> 
> Okay, here's the proposal. Any comments or objections?
> 
> In 3.1:
> 
> - Keywords MUST consist of printable US-ASCII characters.
> + Keywords MUST contain only US-ASCII letters, digits, dot ("." or %x2E),
> + and dash ("-" or %x2D) and MUST begin with a letter.
> 
> [The bit about case-insensitive is further down.]
> 
> In 8:
> 
> - An extension is identified by a unique extension-label, which is a string
> - of 1 to 12 uppercase US-ASCII letters.
> + An extension is identified by a unique extension-label, which is a
> + keyword; it MUST be between 3 and 12 characters, MUST contain only
> + US-ASCII letters, digits, dot ("." or %x2E), and dash ("-" or %x2D),
> + and MUST begin with a letter. Extension-labels are case insensitive.
> 
> In 9.1:
> 
> - x-command-name = 3*12A-CHAR
> + x-command-name = keyword
> 
> In 9.4:
> 
> - extension-label = 1*12UPPER
> + extension-label = keyword
> 
> In 9.5:
> 
> + keyword = ALPHA 2*11(ALPHA / DIGIT / "." / "-")


Looks reasonable to me, provided there aren't any other special chars 
that might be desirable.  What is the rationale for restricting a 
keyword to something less that all printable chars?

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Mon Oct 18 07:33:44 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct 18 07:33:05 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <20041018104643.GO31499@finch-staff-1.thus.net>
References: <87acuqtenw.fsf@windlord.stanford.edu>	<E1CHtG3-000AvF-V4@trinity.supernews.net>	<87acuqrw4s.fsf@windlord.stanford.edu>	<416DCFA5.9080305@oceana.com>	<87lleanm6y.fsf@windlord.stanford.edu>	<416DF1BE.9010703@oceana.com>	<87k6ttlxc2.fsf@windlord.stanford.edu>	<416E710F.8050906@oceana.com>	<20041015102147.GF86062@finch-staff-1.thus.net>	<E1CIWIk-000J9b-PX@trinity.supernews.net>
	<20041018104643.GO31499@finch-staff-1.thus.net>
Message-ID: <4173D448.3050707@oceana.com>

Clive D.W. Feather wrote:

> Andrew - Supernews said:
> 
>> Clive> As I see it, the 432 response to TAKETHIS has exactly the same
>> Clive> meaning as the 436 response to IHAVE. We explicitly list 436
>> Clive> as being possible after the article body has been sent. So
>> Clive> when do existing servers generate this response?
>>
>>INN never generates 436 after receiving an article body. Older diablo
>>versions (haven't checked newer ones) generate 436 if they failed to
>>store the article, which is bogus for the same reasons that I covered
>>for the TAKETHIS case (it results in the sending end wasting a lot of
>>effort).
> 
> 
> No, you mean "which triggers undesirable behaviour in broken clients". It's
> not at all a bogus response; on the contrary, it's a conforming one.
> 
> 
>> Clive> If they do, why shouldn't they generate 432 in the same
>> Clive> situation?
>>I assume you mean "431" rather than "432", because generating 432
>>under any circumstances whatever breaks existing streaming clients.
> 
> 
> No, I mean 432 because that's what the specification say. Just because
> some existing clients are broken (and crashing when they receive 432 is
> broken) doesn't mean that we have to pander to them.


FWIW, I agree with Clive on this point (regarding 436, I think the jury 
is still out on 432).  I'm all for trying to document existing practice, 
as long as existing practice isn't horribly broken.  Poor 
implementations should wither and die, not continue to exist because we 
retroactively make them compliant.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Mon Oct 18 07:49:19 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct 18 07:48:52 2004
Subject: [NNTP] draft-ietf-nntpext-tls-nntp-03
In-Reply-To: <20041018093205.GE31499@finch-staff-1.thus.net>
References: <20041005075941.GB18978@finch-staff-1.thus.net>
	<416AD0C0.8040903@oceana.com>
	<20041018093205.GE31499@finch-staff-1.thus.net>
Message-ID: <4173D7EF.8080802@oceana.com>

Clive D.W. Feather wrote:

> Ken Murchison said:
> 
>>>You might also want to add a LIST EXTENSIONS to the last example to show
>>>this.
>>
>>Actually, doesn't the use of GROUP local.public in the last example 
>>already illustrate this point?
> 
> 
> That illustrates the 400. What I meant was, insert a LIST EXTENSIONS (which
> should *succeed*) between the two GROUPs, showing that "483 to everything"
> can't override the requirement for certain basic commands to work.

Ah, OK.  So is LIST EXTENSIONS the best way to illustrate this or should 
I insert a GROUP local.public (which I just noticed isn't included in 
that example)?  Or should I do both?  Three proposed examples are shown 
below.


[C] STARTTLS
[S] 382 Continue with TLS negotiation
[TLS negotiation is attempted here]
[Following failed negotiation, traffic resumes without TLS]
[C] GROUP local.confidential
[S] 483 Encryption or stronger authentication required
[C] LIST EXTENSIONS
[S] 202 Extensions supported:
[S] STARTTLS
[S] OVER
[S] .
[C] GROUP local.private
[S] 400 Closing connection due to lack of security



[C] STARTTLS
[S] 382 Continue with TLS negotiation
[TLS negotiation is attempted here]
[Following failed negotiation, traffic resumes without TLS]
[C] GROUP local.confidential
[S] 483 Encryption or stronger authentication required
[C] GROUPS local.public
[S] 211 321 4000 4321
[C] GROUP local.private
[S] 400 Closing connection due to lack of security



[C] STARTTLS
[S] 382 Continue with TLS negotiation
[TLS negotiation is attempted here]
[Following failed negotiation, traffic resumes without TLS]
[C] LIST EXTENSIONS
[S] 202 Extensions supported:
[S] STARTTLS
[S] OVER
[S] .
[C] GROUP local.confidential
[S] 483 Encryption or stronger authentication required
[C] GROUPS local.public
[S] 211 321 4000 4321
[C] GROUP local.private
[S] 400 Closing connection due to lack of security


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From andrew at supernews.net  Mon Oct 18 10:50:54 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Mon Oct 18 10:51:11 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <20041018093614.GG31499@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Mon, 18 Oct 2004 10:36:14 +0100")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<20041015102433.GG86062@finch-staff-1.thus.net>
	<E1CIWLM-000JCn-0h@trinity.supernews.net>
	<20041018093614.GG31499@finch-staff-1.thus.net>
Message-ID: <E1CJbf3-000HxU-0d@trinity.supernews.net>

>>>>> "Clive" == Clive D W Feather <clive@demon.net> writes:

 Clive> Andrew - Supernews said:
 Clive> The problem with closing (or issuing a 400, which is far
 Clive> superior) is that it prevents the client doing anything else,
 Clive> like newsreading.

 >> In practice, streaming feeds and newsreading are never done on the
 >> same connection.

 Clive> Why is that justification for hardwiring it into the
 Clive> specification for ever more?

It's not. But it does mean that potential inconvenience to a client
that does both streaming feeds and newsreading is a very, very minor
consideration.

 >> If for some strange reason the client wants to use reader
 >> commands, it can reconnect.

 Clive> And you don't think that's antisocial?

Allowing TAKETHIS to respond with a connection close in certain
failure cases is too important to worry about the effect on
nonexistent clients.

Nothing I've suggested would impact the ability of a client to mix
reader commands and streaming feeds on the same connection if it
wanted to and was written to cope with it.

-- 
Andrew, Supernews
http://www.supernews.com

From andrew at supernews.net  Mon Oct 18 11:14:51 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Mon Oct 18 11:15:08 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <20041018104407.GN31499@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Mon, 18 Oct 2004 11:44:07 +0100")
References: <87acuqrw4s.fsf@windlord.stanford.edu>
	<416DCFA5.9080305@oceana.com> <87lleanm6y.fsf@windlord.stanford.edu>
	<416DF1BE.9010703@oceana.com> <87k6ttlxc2.fsf@windlord.stanford.edu>
	<416E710F.8050906@oceana.com>
	<20041015102147.GF86062@finch-staff-1.thus.net>
	<E1CIWIk-000J9b-PX@trinity.supernews.net> <417026DD.60108@oceana.com>
	<E1CIaV4-000N8l-FR@trinity.supernews.net>
	<20041018104407.GN31499@finch-staff-1.thus.net>
Message-ID: <E1CJc2E-000IL1-41@trinity.supernews.net>

>>>>> "Clive" == Clive D W Feather <clive@demon.net> writes:

 >> What I'm saying is that I know of no cases in which it makes sense
 >> for a server to return a deferral after the article body in either
 >> IHAVE or TAKETHIS.

 Clive> So your position is

My position is what _I_ said, not your misunderstandings of what I said.

 Clive> that the specification(s) should say something like:

 Clive>     If the server is unable to process the article
 Clive>     immediately, or runs into any problem when processing it,
 Clive>     it will reject the article and the client MUST NOT attempt
 Clive>     to re-send it *EVER AGAIN*.

I explicitly did not say that.

If the server can't accept the article for reasons that are specific
to that article, then re-sending it will be futile and therefore a
rejection rather than a deferral is appropriate.

If the server can't accept the article for reasons that are _not_
specific to the article, then those reasons will also apply to the
following articles in the stream, and returning a continuous stream of
deferrals is extremely client-hostile behaviour, since the client has
no way to know how long it will take before the articles can be
accepted again. Instead, the right action is for the server to close
the current connection with a 400 response, and then refuse the
client's attempts to re-establish it (or if it wishes to allow the
client to use non-feeding commands, allow the client to reconnect but
close the connection again on a subsequent TAKETHIS) until it is once
again able to accept articles. Note that in practice the server's
inability to accept articles could last from several minutes up to at
least a whole day.

This behaviour is already understood by clients because it is commonly
used in practice in existing implementations. The clients response to
it is to put all the currently in-flight articles (_including_ the one
that triggered the close since no 239 or 439 response was seen for it)
back into the queue and then try, at appropriate intervals, to re-open
the connection.

 Clive> If you disagree with this, then you're saying there needs to
 Clive> be a "defer" code.

I'm saying that in nine years of installing, running, maintaining and
writing from scratch NNTP implementations of various sorts, I've yet
to encounter a single case where returning a "defer" code _in response
to an article body_ was a reasonable thing to do. I also have
extensive experience of the things that go wrong when dealing with
implementations (that, obviously, I _didn't_ write) which attempt to
return such a response.

-- 
Andrew, Supernews
http://www.supernews.com

From andrew at supernews.net  Mon Oct 18 11:25:42 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Mon Oct 18 11:26:06 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <20041018104643.GO31499@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Mon, 18 Oct 2004 11:46:43 +0100")
References: <87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<87acuqrw4s.fsf@windlord.stanford.edu> <416DCFA5.9080305@oceana.com>
	<87lleanm6y.fsf@windlord.stanford.edu> <416DF1BE.9010703@oceana.com>
	<87k6ttlxc2.fsf@windlord.stanford.edu> <416E710F.8050906@oceana.com>
	<20041015102147.GF86062@finch-staff-1.thus.net>
	<E1CIWIk-000J9b-PX@trinity.supernews.net>
	<20041018104643.GO31499@finch-staff-1.thus.net>
Message-ID: <E1CJcCr-000ITo-5A@trinity.supernews.net>

>>>>> "Clive" == Clive D W Feather <clive@demon.net> writes:

 >> INN never generates 436 after receiving an article body. Older
 >> diablo versions (haven't checked newer ones) generate 436 if they
 >> failed to store the article, which is bogus for the same reasons
 >> that I covered for the TAKETHIS case (it results in the sending
 >> end wasting a lot of effort).

 Clive> No, you mean "which triggers undesirable behaviour in broken
 Clive> clients". It's not at all a bogus response; on the contrary,
 Clive> it's a conforming one.

Conforming with what? For the TAKETHIS case, the best existing
reference around is 2980, which does not list a deferral response for
TAKETHIS. (It allows only for 239, 439, 400, 480, 500)

 Clive> No, I mean 432 because that's what the specification say.

It's what the _draft_ says. Where reality and the text of the draft
conflict, then it's the draft which has to change, not the reality.

-- 
Andrew, Supernews
http://www.supernews.com

From andrew at supernews.net  Mon Oct 18 12:04:12 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Mon Oct 18 12:04:29 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <20041018105137.GP31499@finch-staff-1.thus.net> (Clive D. W.
	Feather's message of "Mon, 18 Oct 2004 11:51:37 +0100")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<E1CHtG3-000AvF-V4@trinity.supernews.net>
	<20041015102929.GI86062@finch-staff-1.thus.net>
	<E1CIWcz-000JYi-MA@trinity.supernews.net>
	<20041018105137.GP31499@finch-staff-1.thus.net>
Message-ID: <E1CJcnz-000J3s-HN@trinity.supernews.net>

>>>>> "Clive" == Clive D W Feather <clive@demon.net> writes:

 Clive> The realistic case is very simple: if the server can't accept
 Clive> the article now but has no objection to the article itself,
 Clive> then it needs some way to say so. There are only three ways to
 Clive> do this:

 Clive> (1) Declare that you can never defer an article: if sending it
 Clive> goes wrong for any reason, that article can NEVER EVER FOR
 Clive> ETERNITY be accepted.

This is obviously wrong.

 Clive> (2) Give a bogus response like 400 plus dropping the
 Clive> connection, at which point the client doesn't know what is
 Clive> wrong and will retry the same action.

This is not "bogus" because (a) it is the existing behaviour and (b) it
works well in practice.

 Clive> (3) A defer code.

 Clive> This is so obviously superior that RFC 977 did it and SMTP does it.

This is not SMTP, and there are some very important differences.

As for 977, the best you can say about it is that it is ambiguous. It fails
to distinguish well between codes that are used in response to the IHAVE
command itself, and those that are used in response to the article sent.
In the kind of environment in which 977 and the reference implementation
were written, having a "defer" response is actually of some value, but
that environment is very different from modern streaming feeds. This makes
it reasonable to keep the existing 436 response for IHAVE, but it doesn't
in any way justify breaking the streaming feed spec just to add a code that
is of no practical use.

-- 
Andrew, Supernews
http://www.supernews.com

From chl at clerew.man.ac.uk  Mon Oct 18 08:05:46 2004
From: chl at clerew.man.ac.uk (Charles Lindsey)
Date: Mon Oct 18 13:13:28 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<416FCD30.40906@oceana.com>
Message-ID: <I5sCLM.MuC@clerew.man.ac.uk>

In <416FCD30.40906@oceana.com> Ken Murchison <ken@oceana.com> writes:

>Clive D.W. Feather wrote:

>>>The proposed solution is this:  Specify in our base draft that any server
>>>that fully complies with the new specification advertise the NNTPv2
>>>capability as part of LIST EXTENSIONS.
>> 
>> 
>> Right, stop here. I don't like this idea. It's a kludge, and an unstructured
>> one at that.

>I disagree that its a kludge, it simply states that the server is 
>compliant with RFC 977bis.  Any server which does not advertise it, is 
>at best compliant with RFC 977 and LIST EXTENSIONS may or may not be 
>accurate (a.k.a. the currently deployed mess).  The beauty is in the 
>simplicity.  As stated earlier, this approach has worked well for IMAP.

FWIW, I am with Clive on this one.

Not that I would necessarily go with his full proposal (perhaps a cut down
version). It might have been a good thing to consider earlier on, but not
at this late stage.

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133   Web: http://www.cs.man.ac.uk/~chl
Email: chl@clerew.man.ac.uk      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5
From chl at clerew.man.ac.uk  Mon Oct 18 08:10:35 2004
From: chl at clerew.man.ac.uk (Charles Lindsey)
Date: Mon Oct 18 13:13:34 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<20041015102433.GG86062@finch-staff-1.thus.net>
	<E1CIWLM-000JCn-0h@trinity.supernews.net>
Message-ID: <I5sCtn.Mxw@clerew.man.ac.uk>

In <E1CIWLM-000JCn-0h@trinity.supernews.net> "Andrew - Supernews" <andrew@supernews.net> writes:

>>>>>> "Clive" == Clive D W Feather <clive@demon.net> writes:

> Clive> The problem with closing (or issuing a 400, which is far
> Clive> superior) is that it prevents the client doing anything else,
> Clive> like newsreading.

>In practice, streaming feeds and newsreading are never done on the
>same connection. If for some strange reason the client wants to use
>reader commands, it can reconnect.

Part of the problem is that, whilst we can say in LIST EXTENSIONS that
STREAMING is (now) allowed, there is no way to give an UN-EXTENSION which
says that reader commands are no longer available. The draft mandates
that every NNTP server has full 'reader' capability, even if it is
permanently used for streaming transit.

It almost suggests that the MODE STREAM command has a useful purpose.

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133   Web: http://www.cs.man.ac.uk/~chl
Email: chl@clerew.man.ac.uk      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5
From andrew at supernews.net  Mon Oct 18 13:27:37 2004
From: andrew at supernews.net (Andrew - Supernews)
Date: Mon Oct 18 13:27:52 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <I5sCtn.Mxw@clerew.man.ac.uk> (Charles Lindsey's message of
	"Mon, 18 Oct 2004 15:10:35 GMT")
References: <416D9998.7090301@oceana.com>
	<E1CHrl2-0009ih-2s@trinity.supernews.net>
	<87acuqtenw.fsf@windlord.stanford.edu>
	<20041015102433.GG86062@finch-staff-1.thus.net>
	<E1CIWLM-000JCn-0h@trinity.supernews.net>
	<I5sCtn.Mxw@clerew.man.ac.uk>
Message-ID: <E1CJe6h-000KHJ-Ao@trinity.supernews.net>

>>>>> "Charles" == Charles Lindsey <chl@clerew.man.ac.uk> writes:

 >> In practice, streaming feeds and newsreading are never done on the
 >> same connection. If for some strange reason the client wants to
 >> use reader commands, it can reconnect.

 Charles> Part of the problem is that, whilst we can say in LIST
 Charles> EXTENSIONS that STREAMING is (now) allowed, there is no way
 Charles> to give an UN-EXTENSION which says that reader commands are
 Charles> no longer available. The draft mandates that every NNTP
 Charles> server has full 'reader' capability, even if it is
 Charles> permanently used for streaming transit.

The draft mandates nothing of the kind. The server is allowed to
reject reader commands if MODE READER has not been used, and it's
allowed to reject the MODE READER command itself.

Don't ever lose sight of the fact that 90%+ of servers doing transit
feeding simply _do not have reader functionality at all_, and never
will have regardless of what any specification says.

-- 
Andrew, Supernews
http://www.supernews.com

From ken at oceana.com  Mon Oct 18 15:25:27 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct 18 15:25:38 2004
Subject: [NNTP] draft-ietf-nntpext-streaming-02
In-Reply-To: <I5sCtn.Mxw@clerew.man.ac.uk>
References: <416D9998.7090301@oceana.com>	<E1CHrl2-0009ih-2s@trinity.supernews.net>	<87acuqtenw.fsf@windlord.stanford.edu>	<20041015102433.GG86062@finch-staff-1.thus.net>	<E1CIWLM-000JCn-0h@trinity.supernews.net>
	<I5sCtn.Mxw@clerew.man.ac.uk>
Message-ID: <417442D7.3030509@oceana.com>

Charles Lindsey wrote:

> In <E1CIWLM-000JCn-0h@trinity.supernews.net> "Andrew - Supernews" <andrew@supernews.net> writes:
> 
> 
>>>>>>>"Clive" == Clive D W Feather <clive@demon.net> writes:
> 
> 
>>Clive> The problem with closing (or issuing a 400, which is far
>>Clive> superior) is that it prevents the client doing anything else,
>>Clive> like newsreading.
> 
> 
>>In practice, streaming feeds and newsreading are never done on the
>>same connection. If for some strange reason the client wants to use
>>reader commands, it can reconnect.
> 
> 
> Part of the problem is that, whilst we can say in LIST EXTENSIONS that
> STREAMING is (now) allowed, there is no way to give an UN-EXTENSION which
> says that reader commands are no longer available. The draft mandates
> that every NNTP server has full 'reader' capability, even if it is
> permanently used for streaming transit.

This can be easily solved by adding a NOREADING or READINGDISABLED 
capability.  IMAP has a LOGINDISABLED capability if a server chooses to 
disable the standard LOGIN command (LOGIN is a base command, but the 
IMAP TLS spec allows it to be disabled).

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From ken at oceana.com  Mon Oct 18 15:26:06 2004
From: ken at oceana.com (Ken Murchison)
Date: Mon Oct 18 15:26:18 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <I5sCLM.MuC@clerew.man.ac.uk>
References: <87acurh9qz.fsf@windlord.stanford.edu>	<20041015085218.GA86186@finch-staff-1.thus.net>	<416FCD30.40906@oceana.com>
	<I5sCLM.MuC@clerew.man.ac.uk>
Message-ID: <417442FE.6040602@oceana.com>

Charles Lindsey wrote:
> In <416FCD30.40906@oceana.com> Ken Murchison <ken@oceana.com> writes:
> 
> 
>>Clive D.W. Feather wrote:
> 
> 
>>>>The proposed solution is this:  Specify in our base draft that any server
>>>>that fully complies with the new specification advertise the NNTPv2
>>>>capability as part of LIST EXTENSIONS.
>>>
>>>
>>>Right, stop here. I don't like this idea. It's a kludge, and an unstructured
>>>one at that.
> 
> 
>>I disagree that its a kludge, it simply states that the server is 
>>compliant with RFC 977bis.  Any server which does not advertise it, is 
>>at best compliant with RFC 977 and LIST EXTENSIONS may or may not be 
>>accurate (a.k.a. the currently deployed mess).  The beauty is in the 
>>simplicity.  As stated earlier, this approach has worked well for IMAP.
> 
> 
> FWIW, I am with Clive on this one.
> 
> Not that I would necessarily go with his full proposal (perhaps a cut down
> version). It might have been a good thing to consider earlier on, but not
> at this late stage.


Just out of curiosity, are you and Clive saying that a simple NNTPv2
capability does not solve the problem at hand, or that it doesn't take
things far enough?


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp


From clive at demon.net  Tue Oct 19 00:16:46 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Oct 19 00:16:52 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <417442FE.6040602@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<416FCD30.40906@oceana.com> <I5sCLM.MuC@clerew.man.ac.uk>
	<417442FE.6040602@oceana.com>
Message-ID: <20041019071646.GG2140@finch-staff-1.thus.net>

Ken Murchison said:
>> Not that I would necessarily go with his full proposal (perhaps a cut down
>> version). It might have been a good thing to consider earlier on, but not
>> at this late stage.

The whole matter never struck me until Russ's post the other day.

> Just out of curiosity, are you and Clive saying that a simple NNTPv2
> capability does not solve the problem at hand, or that it doesn't take
> things far enough?

The latter, I think.

I should have realized that what I was proposing was too big a chunk for
people to swallow in one go. Let me try again, explaining what I am
thinking.

(1) Do we need a way to determine that a server conforms to the new core
specification?

I think we all agree that the answer to this one is "yes". Let's not worry
about how for the moment.

(2) Do we need a way to determine that a server conforms to the new
specification for extension X, where we are changing that specification?

I think we do.

(3) Is it sufficient to say that servers conforming to the new core
specification must support the new specification for extension X?

No, it isn't.

There is a specific set of extensions - AUTHINFO, STARTTLS, STREAMING,
LISTGROUPS, HDR, OVER - where the new specification is being published
at the same time as the new core specification. It is therefore very
tempting to say that these must be kept in sync.

However, this doesn't suffice. Firstly because any update to any other
extension is not going to be published at the right time. And secondly
because extension definitions may themselves change.

Are you with me so far?

(4) Why not just have a new extension-label ever time an extension changes?

Well, we could do that, but let's consider the sitation a little way down
the line with, say, two minor changes having been issued to the definition
of OVER. Do we really want the LIST EXTENSIONS output to have to say:

    OVER
    OVERv1.1
    OVERv1.2

just to cope with the clients that haven't yet been updated? I don't think
so.

So this implies that we need some kind of versioning arrangement for
extensions, just as for the core specification.

Yes?

====

I have to stop writing as I need to be elsewhere. Can people please think
on what I've written so far and comment, and I'll try to continue later
today.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From chl at clerew.man.ac.uk  Tue Oct 19 13:47:30 2004
From: chl at clerew.man.ac.uk (Charles Lindsey)
Date: Tue Oct 19 19:12:28 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
References: <87acurh9qz.fsf@windlord.stanford.edu>	<20041015085218.GA86186@finch-staff-1.thus.net>	<416FCD30.40906@oceana.com>
	<I5sCLM.MuC@clerew.man.ac.uk> <417442FE.6040602@oceana.com>
Message-ID: <I5un36.BIK@clerew.man.ac.uk>

In <417442FE.6040602@oceana.com> Ken Murchison <ken@oceana.com> writes:

>Charles Lindsey wrote:
>> 
>> FWIW, I am with Clive on this one.
>> 
>> Not that I would necessarily go with his full proposal (perhaps a cut down
>> version). It might have been a good thing to consider earlier on, but not
>> at this late stage.


>Just out of curiosity, are you and Clive saying that a simple NNTPv2
>capability does not solve the problem at hand, or that it doesn't take
>things far enough?

A bit of both. Either you omit the NNTPv2 proposal, and then a few
currently half-compliant clients and/or servers will behave oddly during
the tansitional period (and their administrators will work around as best
they can).

Or else we provide something along the lines Clive suggested (but it does
seem a bit complex to me).

But anything in between these is a kludge.

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133   Web: http://www.cs.man.ac.uk/~chl
Email: chl@clerew.man.ac.uk      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5
From clive at demon.net  Wed Oct 20 08:01:53 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Oct 20 08:01:57 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
Message-ID: <20041020150153.GB10816@finch-staff-1.thus.net>

I wrote:
> I should have realized that what I was proposing was too big a chunk for
> people to swallow in one go. Let me try again, explaining what I am
> thinking.

[...]

> I have to stop writing as I need to be elsewhere. Can people please think
> on what I've written so far and comment, and I'll try to continue later
> today.

Okay, to continue ...

(5) If we provide version number information, whether for the main protocol
or for extensions, what form should it take?

There are no doubt many views on this. My personal one is:
* The "major.minor" approach, where changes of "major" are incompatible
  while changes of "minor" are upwards compatible, is well-known and
  probably suffices for our needs.
* A way of providing extra information could be useful, for example when
  a new version is under development and clients want to know if the
  draft is supported.
* We can't restrict non-standardised extensions, but they could also find
  extensioning useful.
But this is a detail once (and if) we've agreed that versioning is worth
doing in the first place.

(6) Is there benefit in providing the information "this extension is
supported by the server but isn't available right now"?

On the one hand servers might want to keep some extensions secret until the
client has authenticated. On the other hand, is there any point in going
through various probing and authenticating steps if the extension is going
to turn out not to be there?

There's also the anomaly that AUTHINFO wants to show what capabilities are
available even when it's going to reject any authentication attempt.

(7) Once we answer all these questions, how do we apply the answers?

Given the answers I've proposed, I think a new command that presents all
this information is the right way to go. But I'm still happy to discuss
everything.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Sat Oct 23 08:24:08 2004
From: ken at oceana.com (Ken Murchison)
Date: Sat Oct 23 08:24:23 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <20041020150153.GB10816@finch-staff-1.thus.net>
References: <20041020150153.GB10816@finch-staff-1.thus.net>
Message-ID: <417A7798.30708@oceana.com>

Clive D.W. Feather wrote:
> I wrote:
> 
>>I should have realized that what I was proposing was too big a chunk for
>>people to swallow in one go. Let me try again, explaining what I am
>>thinking.

I'm curious as to what makes NNTP so different from IMAP/POP/SMTP that 
it requires an extension discovery mechanism that is orders of magnitude 
more complex.  These other protocols have been able to "survive" with a 
mechanism just as simple as the existing LIST EXTENSIONS + NNTPv2 
proposal.  In fact, IMAP is far more complex than NNTP and is able to 
get by with a very simple CAPABILITY command.

My fear is that we are trying to over engineer this to the point of 
solving a non-existent problem.  I'm also afraid that this level of 
complexity will lead to implementation delays or no implementations at all.

This is another case where we need client vendors to determine what is 
necessary.  The only client feedback that I have seen is from Mark 
Crispin, whose c-client library is used as the core of Pine (and other 
packages like PHP) and supports all 4 protocols discussed above.  His 
quote to me (he's not on the mailing list so he may or may not have 
posts sitting in the moderator queue) regarding the STATUS proposal was 
"It is unnecessary and needlessly complex.  It should not happen."

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From clive at demon.net  Tue Oct 26 09:20:03 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Oct 26 09:20:13 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <417A7798.30708@oceana.com>
References: <20041020150153.GB10816@finch-staff-1.thus.net>
	<417A7798.30708@oceana.com>
Message-ID: <20041026162003.GW81365@finch-staff-1.thus.net>

Ken Murchison said:
> I'm curious as to what makes NNTP so different from IMAP/POP/SMTP that 
> it requires an extension discovery mechanism that is orders of magnitude 
> more complex.  These other protocols have been able to "survive" with a 
> mechanism just as simple as the existing LIST EXTENSIONS + NNTPv2 
> proposal.  In fact, IMAP is far more complex than NNTP and is able to 
> get by with a very simple CAPABILITY command.

Firstly, I'm not sure that NNTP is significantly different (but see below).
However, I suspect that it's simply that none of them have run into the
problems I discuss *yet*. And SMTP *has* sort of had the versioning
problem, with the HELO v EHLO commands.

I also don't accept "orders of magnitude".

My concerns, as explained in my previous messages, split into two areas:

(1) The ability to handle variations - version numbers - of extensions.
This *will* happen to lots of protocols, even if it hasn't happened yet.

(2) NNTP's unique (as far as I know) concept of "extensions that aren't
available until you do something separate".

The two can be considered orthogonally. Each, if you accept it is an issue,
introduces a need for something more, though not as much more as you might
think.

> My fear is that we are trying to over engineer this to the point of 
> solving a non-existent problem.  I'm also afraid that this level of 
> complexity will lead to implementation delays or no implementations at all.

I went through my views in detailed steps. If you disagree with them, I'd
still like to know where; I think that will help move the discussion on.

> This is another case where we need client vendors to determine what is 
> necessary.  The only client feedback that I have seen is from Mark 
> Crispin, whose c-client library is used as the core of Pine (and other 
> packages like PHP) and supports all 4 protocols discussed above.  His 
> quote to me (he's not on the mailing list so he may or may not have 
> posts sitting in the moderator queue) regarding the STATUS proposal was 
> "It is unnecessary and needlessly complex.  It should not happen."

I'd like his feedback as well. I'm unconvinced of "unnecessary", but I'd
like to know where we diverge. As for "needlessly complex", all it does is
adds a version number and an "available or not" flag to each extension.
If these are needed, then it's pretty minimal. If not, then let's debate
why not.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From clive at demon.net  Tue Oct 26 09:56:24 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Tue Oct 26 09:56:34 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
Message-ID: <20041026165624.GY81365@finch-staff-1.thus.net>

Mark Crispin said:
> From the point of view of a messaging client implementor who implements 
> NNTP as one of many messaging protocols, what is needed is:
>  1) A binary token that indicates if the server complies with a particular
>     specification.

A particular specification, or a particular *version* of a specification?

>  2) For each extension to that specification, a binary token that
>     indicates if the server offers that specification.

What about "the server will offer that specification, but only if you do
this bit of magic first"? Because that's what NNTP does right now. More
precisely, it says "does not offer that specification" until you do the
magic, at which point it suddenly say "does offer that specification".

> I certainly do not want or need anything like that STATUS command.

*All* that STATUS command adds is version numbers and the actual "the
server offers this specification" token (though not binary). The rest of
what is there was there already.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Tue Oct 26 10:44:45 2004
From: ken at oceana.com (Ken Murchison)
Date: Tue Oct 26 10:44:05 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <20041026162003.GW81365@finch-staff-1.thus.net>
References: <20041020150153.GB10816@finch-staff-1.thus.net>
	<417A7798.30708@oceana.com>
	<20041026162003.GW81365@finch-staff-1.thus.net>
Message-ID: <417E8D0D.6050403@oceana.com>

Clive D.W. Feather wrote:

  > Firstly, I'm not sure that NNTP is significantly different (but see 
below).
> However, I suspect that it's simply that none of them have run into the
> problems I discuss *yet*. And SMTP *has* sort of had the versioning
> problem, with the HELO v EHLO commands.

Well *sort* of.  The EHLO command was introduced as the extension 
discovery command (akin to LIST EXTENSIONS).  Prior to EHLO, there was 
no extension discovery mechanism.  So your example is kind of a mixed bag.

I think where we diverge is that the NNTPv2 proposal follows the KISS 
principal and only solves the existing problem(s); by putting a line in 
the sand w.r.t. base functionality and existing extensions which we are 
standardizing.  Your proposal wants to try to solve any problems with 
extensions moving forward.  My response to this is:

1)  Based on past history of IMAP/POP3/SMTP, few, if any, extensions 
will have their functionality changed in any significant way.

2)  If the functionality *is* changed in a drastic, non-backwards 
compatible way, then a new extension should be advertised rather than 
trying to wedge it into the existing extension.

3) If the previous two assumptions turn out to be false, then we can 
always address this issue at a later time.  The existing LIST EXTENSIONS 
syntax already allows for extension labels to take arguments, which 
could be used for versioning and/or enabled/disabled flags.


> I also don't accept "orders of magnitude".

I used this phrase in reference to your original STATUS proposal which 
seemed overwhelmingly complex.  It seems that you have pared down your 
proposal since then.  In that respect I overstated things a bit.


> My concerns, as explained in my previous messages, split into two areas:
> 
> (1) The ability to handle variations - version numbers - of extensions.
> This *will* happen to lots of protocols, even if it hasn't happened yet.

I agree that functionality *may* change for certain extensions, but my 
guess is that the WGs responsible for the other protocols would just 
create a new extension or separate extension label/capability.


> 
> (2) NNTP's unique (as far as I know) concept of "extensions that aren't
> available until you do something separate".

Well, this is *always* the case with the SASL PLAIN mechanism, which 
requires TLS before being advertised and/or used.  None of the other 
messaging protocols prevent a server from hiding extensions until the 
client jumps through the appropriate hoop(s).  In fact I think Mark's UW 
IMAP server hides most extensions until the client is authenticated.

I don't see this being an issue for clients.  They already know before 
they issue a command (e.g. AUTHINFO, STARTTLS, MODE READER) that it has 
the possibly of changing the output of LIST EXTENSIONS and should be 
prepared to [re-]issue LIST EXTENSIONS.

If we're interested in saving roundtrips, then we could always look at 
Mark's proposal (which I haven't seen get to the list yet) of allowing 
relevant responses to carry extension info.  IMAP already allows this. 
For example:

200 [NNTPv2 AUTHINFO=USER AUTHINFO=SASL:OTP,DIGEST-MD5,CRAM-MD5,NTLM 
STARTTLS STREAMING] toshiba.oceana.com Cyrus NNTP v2.3-alpha server 
ready, posting allowed
STARTTLS
382 Begin TLS negotiation now
LIST EXTENSIONS
202 Extension list follows:
NNTPv2
AUTHINFO USER SASL:LOGIN,OTP,DIGEST-MD5,CRAM-MD5,PLAIN,NTLM
STREAMING
.
GROUP misc.test
480 Authentication required
AUTHINFO SASL CRAM-MD5
383 PDU0NjI1NDYxMC43Nzc0NjE1QHRvc2hpYmEub2NlYW5hLmNvbT4=
bXJjIGRlMDhmZTVjYmQwZDEwNGRlNzY0YWM3NDhlNmFiNTRh
281 [NNTPv2 HDR LISTGROUP OVER STREAMING] Success (tls protection)
GROUP misc.test
211 0 1 0 misc.test


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From clive at demon.net  Wed Oct 27 00:59:06 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Oct 27 00:59:18 2004
Subject: [NNTP] Re: Command names
In-Reply-To: <4173CEE5.90303@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D785F.5080107@oceana.com>
	<20041015091534.GD86062@finch-staff-1.thus.net>
	<416FCE9E.4060908@oceana.com>
	<20041018101311.GI31499@finch-staff-1.thus.net>
	<4173CEE5.90303@oceana.com>
Message-ID: <20041027075906.GB25499@finch-staff-1.thus.net>

Ken Murchison said:
> Looks reasonable to me, provided there aren't any other special chars 
> that might be desirable.  What is the rationale for restricting a 
> keyword to something less that all printable chars?

It makes things more readable. Do we really want unbalanced parentheses and
quotation marks in command names?

It gives us room for expansion and for special cases, by using the
characters other than those we permit for commands.

For example, if we found a need for some kind of scoping of commands
(e.g. simultaneous use of more than one authentication ID) we can do this
with a non-permitted character:
    [user=clive] GROUP local.public
...
    [user=root] GROUP local.secret
(I blithely skip over the issues of managing multiple IDs).

For example, assume we decide that my STATUS proposal isn't worth doing
but, a year down the line, discover that there's a real need to say "this
protocol is supported but not available right now". We can allow the LIST
EXTENSIONS response line to begin with (say) "!" to indicate this.

For example (and this is really blue-sky stuff; please don't criticise it)
we could allow a prefix of "&" to mean "do this asynchronously and I'll ask
for the result later". This would be a more generalised form of streaming.
Or we could allow commands to be inserted in a posting body by prefixing
them with a dot, but this relies on command names themselves not beginning
with a dot (so that they look like dot-escaped lines).

I don't know what we will want to do with it, but I'd rather not rule the
possibility out at this stage.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Wed Oct 27 04:37:31 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Oct 27 04:37:42 2004
Subject: [NNTP] Re: Command names
In-Reply-To: <20041027075906.GB25499@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D785F.5080107@oceana.com>
	<20041015091534.GD86062@finch-staff-1.thus.net>
	<416FCE9E.4060908@oceana.com>
	<20041018101311.GI31499@finch-staff-1.thus.net>
	<4173CEE5.90303@oceana.com>
	<20041027075906.GB25499@finch-staff-1.thus.net>
Message-ID: <417F887B.9010601@oceana.com>

Clive D.W. Feather wrote:
> Ken Murchison said:
> 
>>Looks reasonable to me, provided there aren't any other special chars 
>>that might be desirable.  What is the rationale for restricting a 
>>keyword to something less that all printable chars?
> 
> 
> It makes things more readable. Do we really want unbalanced parentheses and
> quotation marks in command names?

Absolutely not.  I guess the only additional char (beyond what you've 
outlined) which sticks out as potentially usable for keywords is '_'

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From clive at demon.net  Wed Oct 27 04:41:17 2004
From: clive at demon.net (Clive D.W. Feather)
Date: Wed Oct 27 04:41:21 2004
Subject: [NNTP] Re: Command names
In-Reply-To: <417F887B.9010601@oceana.com>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D785F.5080107@oceana.com>
	<20041015091534.GD86062@finch-staff-1.thus.net>
	<416FCE9E.4060908@oceana.com>
	<20041018101311.GI31499@finch-staff-1.thus.net>
	<4173CEE5.90303@oceana.com>
	<20041027075906.GB25499@finch-staff-1.thus.net>
	<417F887B.9010601@oceana.com>
Message-ID: <20041027114116.GG25499@finch-staff-1.thus.net>

Ken Murchison said:
>> It makes things more readable. Do we really want unbalanced parentheses and
>> quotation marks in command names?
> Absolutely not.

Phew :-)

> I guess the only additional char (beyond what you've 
> outlined) which sticks out as potentially usable for keywords is '_'

I think we only want one of '-' and '_'. I don't greatly care which, though
I think the former is slightly preferable.

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
Thus plc            |                            |
From ken at oceana.com  Wed Oct 27 06:24:54 2004
From: ken at oceana.com (Ken Murchison)
Date: Wed Oct 27 06:24:10 2004
Subject: [NNTP] Re: Command names
In-Reply-To: <20041027114116.GG25499@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<416D785F.5080107@oceana.com>
	<20041015091534.GD86062@finch-staff-1.thus.net>
	<416FCE9E.4060908@oceana.com>
	<20041018101311.GI31499@finch-staff-1.thus.net>
	<4173CEE5.90303@oceana.com>
	<20041027075906.GB25499@finch-staff-1.thus.net>
	<417F887B.9010601@oceana.com>
	<20041027114116.GG25499@finch-staff-1.thus.net>
Message-ID: <417FA1A6.5040601@oceana.com>

Clive D.W. Feather wrote:
> Ken Murchison said:
> 
>>>It makes things more readable. Do we really want unbalanced parentheses and
>>>quotation marks in command names?
>>
>>Absolutely not.
> 
> 
> Phew :-)
> 
> 
>>I guess the only additional char (beyond what you've 
>>outlined) which sticks out as potentially usable for keywords is '_'
> 
> 
> I think we only want one of '-' and '_'. I don't greatly care which, though
> I think the former is slightly preferable.

I don't care enough to make a big issue out of it.  I'll let the rest of 
the WG (you and Russ) decide which one(s) will be used.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
From mrc at CAC.Washington.EDU  Fri Oct 15 06:59:59 2004
From: mrc at CAC.Washington.EDU (Mark Crispin)
Date: Wed Nov  3 15:39:02 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <20041015085218.GA86186@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
Message-ID: <Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>

On Fri, 15 Oct 2004, Clive D.W. Feather wrote:
>> The proposed solution is this:  Specify in our base draft that any server
>> that fully complies with the new specification advertise the NNTPv2
>> capability as part of LIST EXTENSIONS.
> Right, stop here. I don't like this idea. It's a kludge, and an unstructured
> one at that.

It has worked fine in IMAP for 10 years.  Nor has anything with the gothic 
complexity of your proposed STATUS command been necessary.

It is long past time that NNTP interoperate with other messaging 
protocols, and leverage the lessons of these other protocols.

>From the point of view of a messaging client implementor who implements 
NNTP as one of many messaging protocols, what is needed is:
  1) A binary token that indicates if the server complies with a particular
     specification.
  2) For each extension to that specification, a binary token that
     indicates if the server offers that specification.

I certainly do not want or need anything like that STATUS command.

As far as MODE READER goes, the very existance of that command is a 
protocol design wart to work around an implementation design bug.  NNTPv2 
should make it MANDATORY that MODE READER is a no-op in any NNTPv2 
compliant server; in particular it is NOT required of a client, and does 
NOT change any server protocol modes.  The sole purpose of MODE READER 
should be to try to communicate with pre-NNTPv2 servers.

You can't claim to draw a line in the sand between old cruft and new 
goodness if you leave behind these warts.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Mon Oct 18 14:49:39 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Wed Nov  3 15:39:04 2004
Subject: [NNTP] Re: MODE READER
In-Reply-To: <20041018094755.GH31499@finch-staff-1.thus.net>
References: <87acurh9qz.fsf@windlord.stanford.edu>
	<20041015085218.GA86186@finch-staff-1.thus.net>
	<Pine.LNX.4.62.0410150640380.12843@shiva1.cac.washington.edu>
	<20041018094755.GH31499@finch-staff-1.thus.net>
Message-ID: <Pine.WNT.4.62.0410181412270.504@Tomobiki-Cho.CAC.Washington.EDU>

On Mon, 18 Oct 2004, Clive D.W. Feather wrote:
> As far as MODE READER is concerned, I personally agree with you. However,
> server implementers will tell you otherwise. If you want to argue for this
> change, please do so and let's see what happens.

It certainly can be argued that this is a server internal detail which 
should not burden the protocol.  It also adds an additional RTT (6 by my 
count).  Consider the normal startup situation:

1) Connect, get a 200 or 201 response.

2) Send LIST EXTENSIONS.  If STARTTLS listed as an extension:
    a) send STARTTLS
    b) send LIST EXTENSIONS

3) If client is configured always-authenticate, or if client wants to post
    and greeting was 201, negotiate authentication.

4) Send MODE READER.  If get 480, negotiate authentication, then repeat
    MODE READER.

5) Send LIST EXTENSIONS (since MODE READER may have changed it)

And yes, we really want to do MODE READER *after* STARTTLS, since we want 
any authentication to be after TLS.

That's a lot of RTTs:
 	S: 200 NNTP server
 	C: LIST EXTENSIONS
 	S: 202 Must negotiate TLS now:
 	S: STARTTLS
 	S: .
 	C: STARTTLS
 	S: 382 TLS starting
 	C: LIST EXTENSIONS
 	S: 202 Must authentication now using:
 	S: AUTHINFO SASL:PLAIN
 	S: .
 	C: AUTHINFO SASL PLAIN AHRlc3QAMTIzNA==
 	S: 281 Logged in
 	C: MODE READER
 	S: 200 NNTP server
 	C: LIST EXTENSIONS
 	S: 202 Here's what you can do now:
 	S: LISTGROUP
 	S: OVER
 	S: .
 	C: GROUP comp.mail.misc


Better would be something like the following, which uses an IMAP-like 
mechanism to carry capabilities in responses, and flushes MODE READER:

 	S: 200 [STARTTLS] NNTP server, negotiate TLS now
 	C: STARTTLS
 	S: 382 TLS starting
 	C: LIST EXTENSIONS
 	S: 202 Must authentication now using:
 	S: AUTHINFO SASL:PLAIN
 	S: .
 	C: AUTHINFO SASL PLAIN AHRlc3QAMTIzNA==
 	S: 281 [LISTGROUP OVER] Now you can do stuff
 	C: GROUP comp.mail.misc

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
From MRC at CAC.Washington.EDU  Tue Oct 26 10:49:48 2004
From: MRC at CAC.Washington.EDU (Mark Crispin)
Date: Wed Nov  3 15:39:05 2004
Subject: [NNTP] LIST EXTENSIONS and an NNTPv2 capability
In-Reply-To: <417E8D0D.6050403@oceana.com>
References: <20041020150153.GB10816@finch-staff-1.thus.net>
	<417A7798.30708@oceana.com>
	<20041026162003.GW81365@finch-staff-1.thus.net>
	<417E8D0D.6050403@oceana.com>
Message-ID: <Pine.WNT.4.62.0410261045580.3812@Tomobiki-Cho.CAC.Washington.EDU>

On Tue, 26 Oct 2004, Ken Murchison wrote:
> I think where we diverge is that the NNTPv2 proposal follows the KISS 
> principal and only solves the existing problem(s); by putting a line in the 
> sand w.r.t. base functionality and existing extensions which we are 
> standardizing.

I also adhere to this principle.

> 1)  Based on past history of IMAP/POP3/SMTP, few, if any, extensions will 
> have their functionality changed in any significant way.
> 2)  If the functionality *is* changed in a drastic, non-backwards compatible 
> way, then a new extension should be advertised rather than trying to wedge it 
> into the existing extension.
> 3) If the previous two assumptions turn out to be false, then we can always 
> address this issue at a later time.  The existing LIST EXTENSIONS syntax 
> already allows for extension labels to take arguments, which could be used 
> for versioning and/or enabled/disabled flags.

The only thing that I can add to this is a big
 	AMEN!!!!!


>> (2) NNTP's unique (as far as I know) concept of "extensions that aren't
>> available until you do something separate".

This is not unique to NNTP.  As Ken pointed out, TLS will change the 
available extensions, and (at least in IMAP) extensions will change after 
authentication.

> If we're interested in saving roundtrips, then we could always look at Mark's 
> proposal (which I haven't seen get to the list yet) of allowing relevant 
> responses to carry extension info.

Please do.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
