πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88152

Re: Moving to INN, large spools

#88152
From: Russ Allbery
Date: Sat, 18 Jan 2020 19:58
97 lines
5919 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> As for posting dates in the future, rejection by *relaying* agents is a
> MUST.  According to RFC 5537:

> 3.6.  Duties of a Relaying Agent

> [...]

>    A relaying agent processes an article as follows:

>    1.  It MUST reject any article without a Newsgroups header field or
>        Message-ID header field, or without either an Injection-Date or
>        Date header field.

>    2.  It MUST examine the Injection-Date header field or, if absent,
>        the Date header field, and reject the article if that date is
>        more than 24 hours into the future.  It MAY reject articles with
>        dates in the future with a smaller margin than 24 hours.

> For invalid contents (like empty headers), it is a MAY.

> Hmmm, isn't there a discrepancy with the duties of an Injecting Agent?

> 3.5.  Duties of an Injecting Agent
> [...]
>    3.   It SHOULD reject any article whose Injection-Date or Date header
>         field is more than 24 hours into the future (and MAY use a
>         margin less than 24 hours).

> If a relaying agent MUST reject such articles, an injecting agent MUST
> also reject them, mustn't it?  Or is it in fact a SHOULD for relaying
> agents too?

It looks like this discrepency has been there since my first draft of
USEPRO, and I don't recall us talking about it, so it may just be a
mistake.  That said, I think there is a slim justification here (but
possibly I'm just splitting hairs that don't need to be split).

The damage caused by articles with a date in the future is that they can
potentially be accepted twice depending on the mechanism whereby old
history entries are dropped.  This is because of the following option in
section 3.3:

   o  Alternatively, agents MAY drop history records according to the
      date when the article was first seen by that agent rather than the
      date of the article.  In this case, the history retention interval
      MUST be at least 24 hours longer than the cutoff interval to allow
      for articles dated in the future.  This interval matches the
      allowable error in the date of the article (see Section 3.5).

As mentioned, that 24 hour period matches the 24 hour period in the MUST
for relaying agents for articles with future dates, ensuring that there
isn't a window within which the article could be erroneously accepted
again because it was first seen more than the retention interval ago but
was dated far enough in the future that it isn't older than the cutoff.

This is therefore a MUST because violating it causes harm to the network
(accepting and propagating duplicate articles).

An injecting agent cannot create this problem because a relaying agent can
still ensure that it only accepts the article once by applying these
rules.  Thus, the consequences of violating the SHOULD for the injecting
agent are only that the article may not propagate, not that harm could be
caused by duplicating it.  Is that a strong enough argument to add a MUST
here for interoperability reasons?

If someone had raised this at the time, I think I probably would have
agreed and changed it to a MUST, but one can make the argument that SHOULD
is more appropriate in a couple of scenarios:

* An injecting agent that immediately passes the article to a relaying
  agent (which is the expected normal behavior per step 12 of the duties
  of an injecting agent) will thus apply the relaying agent checks by
  proxy, so this check is arguably duplicative and it would be a valid
  implementation choice to not implement this in the injecting agent and
  instead rely on the relaying agent to perform the check.  The primary
  utility of the check is that it happens before forwarding to moderators,
  which may save the moderator some work, but on the other hand the
  moderator may replace the Date or Injection-Date header, which they're
  allowed to do (and indeed are required to do for the Injection-Date
  header).

* A stand-alone news server that doesn't act as a relaying agent may not
  care because there isn't a duplicate article risk (although this is a
  relatively weak argument because lots of other pieces of the protocol
  don't apply to stand-alone news servers).

That said, I wouldn't mind having an errata should we ever revisit the
document, since I think both of those arguments are kind of weak and this
at least seems worth clarifying should the documnt ever be revised.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87muak1qqc.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <alpine.LNX.2.02.2001092335100.24908@ebfjryy.nhfvpf.arg> <d93d0$5e17a68e$3fe7165e$12413@news.sonic-news.com> <qvahij$viv$1@news.trigofacile.com> <qve3it$2e7q$1@neodome.net> <h80di0F1ke2U1@mid.individual.net> <qvfils$4g6$1@neodome.net> <qvi8qm$12o$1@news.trigofacile.com> <qvk7ls$oqa$1@neodome.net> <qvo19l$iet$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87muak1qqc.fsf@hope.eyrie.org>
Subject: Re: Moving to INN, large spools
Date: Sat, 18 Jan 2020 11:58:35 -0800
From: Russ Allbery <eagle@eyrie.org>
References: <alpine.LNX.2.02.2001092335100.24908@ebfjryy.nhfvpf.arg> <d93d0$5e17a68e$3fe7165e$12413@news.sonic-news.com> <qvahij$viv$1@news.trigofacile.com> <qve3it$2e7q$1@neodome.net> <h80di0F1ke2U1@mid.individual.net> <qvfils$4g6$1@neodome.net> <qvi8qm$12o$1@news.trigofacile.com> <qvk7ls$oqa$1@neodome.net> <qvo19l$iet$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 97
Nntp-Posting-Host: hope.eyrie.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: usenet.stanford.edu 1579377515 14479 166.84.7.155 (18 Jan 2020 19:58:35 GMT)
X-Complaints-To: action@cs.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:Gvs+/AhIE0/s9PisIFxxIghZIzs=