🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
11 messages
11 total messages Started by Pieter Zijlstra Thu, 14 Jan 2010 00:00
Sanity check - Path headers
#82574
Author: Pieter Zijlstra
Date: Thu, 14 Jan 2010 00:00
17 lines
1702 bytes
Examining RFC5536 and RFC5537 it is almost clear what a newsreader
(user-agent) should do with the Path header.

As I read it, although it is stated as a mandatory header the Path
header should still not be used/added by a user-agent when posting a
message, the path header is there for the news-servers to "play" with.

Did I read it right, or should the user-agent also supply or do
something with the Path header?

-- 
Pieter

"When you philosophically oppose an entire power elite, you
 cannot help but sound like a conspiracy theorist. Social power
 is by nature a conspiracy."
 -- Tom N
Re: Sanity check - Path headers
#82576
Author: Junior
Date: Thu, 14 Jan 2010 01:38
13 lines
1610 bytes
Pieter Zijlstra wrote:
> Examining RFC5536 and RFC5537 it is almost clear what a newsreader
> (user-agent) should do with the Path header.
>
> As I read it, although it is stated as a mandatory header the Path
> header should still not be used/added by a user-agent when posting a
> message, the path header is there for the news-servers to "play" with.
>
> Did I read it right, or should the user-agent also supply or do
> something with the Path header?

Sounds right to me. Recently, Big Bird got a little creative with
the path header and started adding posting host info to it.
Re: Sanity check - Path headers
#82577
Author: Russ Allbery
Date: Thu, 14 Jan 2010 01:53
22 lines
1970 bytes
"Pieter Zijlstra" <p.zylstra.notthis@hccnet.nl> writes:

> Examining RFC5536 and RFC5537 it is almost clear what a newsreader
> (user-agent) should do with the Path header.

> As I read it, although it is stated as a mandatory header the Path
> header should still not be used/added by a user-agent when posting a
> message, the path header is there for the news-servers to "play" with.

> Did I read it right, or should the user-agent also supply or do
> something with the Path header?

RFC 5537 allows the posting agent to add a Path header if there's some
compelling reason to do so, but normally you only want to do this in
strange gatewaying cases.  In general, the posting agent should not
include a Path header and leave that to the injecting agent.

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Sanity check - Path headers
#82586
Author: Pieter Zijlstra
Date: Thu, 14 Jan 2010 20:11
29 lines
2029 bytes
Russ Allbery wrote:

> > Did I read it right, or should the user-agent also supply or do
> > something with the Path header?
> 
> RFC 5537 allows the posting agent to add a Path header if there's some
> compelling reason to do so, but normally you only want to do this in
> strange gatewaying cases.  In general, the posting agent should not
> include a Path header and leave that to the injecting agent.

Thanks!  

To me it is/was mainly the following part of RFC5536 3.1.5 which is a
little unclear:
  "The Path header field indicates the route taken by an article since
   its injection into the Netnews system.  Each agent that processes an
   article is required to prepend at least one <path-identity> to this
   header field body [...]"

More over because "agent" in 1.5 is described as:
  "The generic term "agent" is used when describing requirements that
  apply to both user agents and news servers"

-- 
Pieter

"If English was good enough for Jesus, it's good enough for
 them Mexicans."
 -- Texas politician, Spanish as a second language
Re: Sanity check - Path headers
#82585
Author: Pieter Zijlstra
Date: Thu, 14 Jan 2010 20:11
17 lines
1587 bytes
Junior wrote:

> Pieter Zijlstra wrote:
> > Did I read it right, or should the user-agent also supply or do
> > something with the Path header?
> 
> Sounds right to me. Recently, Big Bird got a little creative with
> the path header and started adding posting host info to it.

I saw another newsreader also using the Path header which made me
wonder.

-- 
Pieter

"A great many people think they are thinking when they are
 merely rearranging their prejudices." -- William James
Re: Sanity check - Path headers
#82588
Author: Russ Allbery
Date: Thu, 14 Jan 2010 20:31
49 lines
3460 bytes
"Pieter Zijlstra" <p.zylstra.notthis@hccnet.nl> writes:

> Thanks!  

> To me it is/was mainly the following part of RFC5536 3.1.5 which is a
> little unclear:
>   "The Path header field indicates the route taken by an article since
>    its injection into the Netnews system.  Each agent that processes an
>    article is required to prepend at least one <path-identity> to this
>    header field body [...]"

> More over because "agent" in 1.5 is described as:
>   "The generic term "agent" is used when describing requirements that
>   apply to both user agents and news servers"

RFC 5536 only really covers the format and isn't specific about the
process.  RFC 5537 is where you want to go for the process.  See section
3.2:

   All news server components (injecting agents, relaying agents, and
   serving agents) MUST identify themselves, when processing an article,
   by prepending their <path-identity> (defined in Section 3.1.5 of
   [RFC5536]) to the Path header field.  Injecting agents MUST also use
   the same identity in Injection-Info header fields that they add, and
   serving and relaying agents SHOULD use the same identity in any Xref
   header fields they add.

and 3.4.1:

   A proto-article is an article in the format used by a posting agent
   when offering that article to an injecting agent.  It may omit
   certain header fields that can be better supplied by the injecting
   agent and will not contain header fields that are added by the
   injecting agent.  A proto-article is only for transmission to an
   injecting agent and SHOULD NOT be transmitted to any other agent.

   A proto-article has the same format as a normal article except that
   the Injection-Info and Xref header fields MUST NOT be present, the
   Path header field SHOULD NOT contain a "POSTED" <diag-keyword>, and
   any of the following mandatory header fields MAY be omitted:
   Message-ID, Date, and Path.  In all other respects, a proto-article
   MUST be a valid Netnews article.  In particular, the header fields
   that may be omitted MUST NOT be present with invalid content.

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Sanity check - Path headers
#82591
Author: Pieter Zijlstra
Date: Thu, 14 Jan 2010 23:16
22 lines
1756 bytes
Russ Allbery wrote:

> "Pieter Zijlstra" <p.zylstra.notthis@hccnet.nl> writes:
> 
> > To me it is/was mainly the following part of RFC5536 3.1.5 which is
> > a little unclear:
> 
> RFC 5536 only really covers the format and isn't specific about the
> process.  RFC 5537 is where you want to go for the process.  See
> section 3.2: [...]

Thanks for the clearing things up for me.

> and 3.4.1: [...]

Somehow I totally missed that part.

-- 
Pieter

"Victory goes to the player who makes the next-to-last mistake."
-- Chessmaster Savielly Grigorievitch Tartakower (1887-1956)
Re: Sanity check - Path headers
#82615
Author: D. Stussy
Date: Wed, 20 Jan 2010 06:47
54 lines
3972 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:87r5psxwbx.fsf@windlord.stanford.edu...
> "Pieter Zijlstra" <p.zylstra.notthis@hccnet.nl> writes:
> > Thanks!
>
> > To me it is/was mainly the following part of RFC5536 3.1.5 which is a
> > little unclear:
> >   "The Path header field indicates the route taken by an article since
> >    its injection into the Netnews system.  Each agent that processes an
> >    article is required to prepend at least one <path-identity> to this
> >    header field body [...]"
>
> > More over because "agent" in 1.5 is described as:
> >   "The generic term "agent" is used when describing requirements that
> >   apply to both user agents and news servers"
>
> RFC 5536 only really covers the format and isn't specific about the
> process.  RFC 5537 is where you want to go for the process.  See section
> 3.2:
>
>    All news server components (injecting agents, relaying agents, and
>    serving agents) MUST identify themselves, when processing an article,
>    by prepending their <path-identity> (defined in Section 3.1.5 of
>    [RFC5536]) to the Path header field.  Injecting agents MUST also use
>    the same identity in Injection-Info header fields that they add, and
>    serving and relaying agents SHOULD use the same identity in any Xref
>    header fields they add.
>
> and 3.4.1:
>
>    A proto-article is an article in the format used by a posting agent
>    when offering that article to an injecting agent.  It may omit
>    certain header fields that can be better supplied by the injecting
>    agent and will not contain header fields that are added by the
>    injecting agent.  A proto-article is only for transmission to an
>    injecting agent and SHOULD NOT be transmitted to any other agent.
>
>    A proto-article has the same format as a normal article except that
>    the Injection-Info and Xref header fields MUST NOT be present, the
>    Path header field SHOULD NOT contain a "POSTED" <diag-keyword>, and
>    any of the following mandatory header fields MAY be omitted:
>    Message-ID, Date, and Path.  In all other respects, a proto-article
>    MUST be a valid Netnews article.  In particular, the header fields
>    that may be omitted MUST NOT be present with invalid content.

What harm is there if Injection-Info and Xref are present?  Won't (or
shouldn't) they would be overwritten (or replaced) in the injection process
anyway?  Therefore, if they are present, they will be ignored or deleted in
favor of their new values.

As Path need not be null and isn't ignored but prepended to, I agree with
the above.

Re: Sanity check - Path headers
#82616
Author: Russ Allbery
Date: Wed, 20 Jan 2010 06:57
30 lines
2902 bytes
"D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes:

> What harm is there if Injection-Info and Xref are present?  Won't (or
> shouldn't) they would be overwritten (or replaced) in the injection
> process anyway?  Therefore, if they are present, they will be ignored or
> deleted in favor of their new values.

The harm done by including Xref is that your article won't be accepted by
existing servers.  INN has rejected any article containing Xref for years.
The protocol says that you can't include it because, in practice, omitting
it is required for interoperability with the existing implementations of
the protocol.  If one were redesigning the protocol from a clean start, it
might not be necessary, but we weren't.

Injection-Info is not permitted for a different reason.  Posting a message
including that header usually means that something very wrong is
happening, such as re-injecting an existing article via POST rather than
transfering it with IHAVE.  It's a sign that a human needs to get involved
and figure out what's going on, since software may be attempting something
nasty, like an article reinjection loop that could explode
combinatorially.  In the rare case that one really wants to reinject an
article that was already injected, removing the Injection-Info header is
required as an intentional article modification signalling that someone
gave at least some basic thought to what they were doing.

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Sanity check - Path headers
#82617
Author: D. Stussy
Date: Wed, 20 Jan 2010 08:00
39 lines
3123 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:87636xz2jo.fsf@windlord.stanford.edu...
> "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes:
> > What harm is there if Injection-Info and Xref are present?  Won't (or
> > shouldn't) they would be overwritten (or replaced) in the injection
> > process anyway?  Therefore, if they are present, they will be ignored
or
> > deleted in favor of their new values.
>
> The harm done by including Xref is that your article won't be accepted by
> existing servers.  INN has rejected any article containing Xref for
years.
> The protocol says that you can't include it because, in practice,
omitting
> it is required for interoperability with the existing implementations of
> the protocol.  If one were redesigning the protocol from a clean start,
it
> might not be necessary, but we weren't.

So, it's taken as a sign that an article was already injected; correct?
(no answer necessary)

> Injection-Info is not permitted for a different reason.  Posting a
message
> including that header usually means that something very wrong is
> happening, such as re-injecting an existing article via POST rather than
> transfering it with IHAVE.  It's a sign that a human needs to get
involved
> and figure out what's going on, since software may be attempting
something
> nasty, like an article reinjection loop that could explode
> combinatorially.  In the rare case that one really wants to reinject an
> article that was already injected, removing the Injection-Info header is
> required as an intentional article modification signalling that someone
> gave at least some basic thought to what they were doing.

OK, that makes sense.

Re: Sanity check - Path headers
#82618
Author: Steve Crook
Date: Wed, 20 Jan 2010 09:37
11 lines
1625 bytes
On Tue, 19 Jan 2010 22:57:31 -0800, Russ Allbery wrote in
Message-Id: <87636xz2jo.fsf@windlord.stanford.edu>:

> Injection-Info is not permitted for a different reason.  Posting a message
> including that header usually means that something very wrong is
> happening, such as re-injecting an existing article via POST rather than
> transfering it with IHAVE.

For servers running older versions of INN, there is another good reason
for rejecting Injection-Info.  Clients on these older servers are
otherwise free to put any false information they like into that header.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads