🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
20 messages
20 total messages Started by rtnews Thu, 09 Jan 2020 13:35
Moving to INN, large spools
#88112
Author: rtnews
Date: Thu, 09 Jan 2020 13:35
23 lines
1446 bytes
Hi,

The Lowdown.

We are looking at moving to INN from another now EOL commercial daemon.
We have 3.9 terrabytes of news spool to import to INN.
Our policy is to never expire any group excepting test groups.
Some of the groups posts date back 16 years.
We typically have in peak periods, only about 200 concurrent accesses, 
down to
a few dozen in off-peak.

The Questions.

1, What is the best spool method with INN to use for this?
2, Is there any settings we need to null out to allow INN to take very, 
very old messages?
3, Is there any settings we need to ensure we dont loose any message, 
during the import (whivh
    we will try using IHAVE, or after such import?

Thanks
rtnews
Re: Moving to INN, large spools
#88113
Author: Etian
Date: Thu, 09 Jan 2020 22:17
43 lines
2773 bytes
On 1/9/20 6:35 AM, rtnews wrote:
> Hi,
> 
> The Lowdown.
> 
> We are looking at moving to INN from another now EOL commercial daemon.
> We have 3.9 terrabytes of news spool to import to INN.
> Our policy is to never expire any group excepting test groups.
> Some of the groups posts date back 16 years.
> We typically have in peak periods, only about 200 concurrent accesses, 
> down to
> a few dozen in off-peak.
> 
> The Questions.
> 
> 1, What is the best spool method with INN to use for this?
> 2, Is there any settings we need to null out to allow INN to take very, 
> very old messages?
> 3, Is there any settings we need to ensure we dont loose any message, 
> during the import (whivh
>     we will try using IHAVE, or after such import?
> 
> Thanks
> rtnews
> 
1. The cycbuff method works for permanent retention.  See the thread 
started Oct-25-2019 by Richard Knight.  The *ONLY* disadvantage to 
cycbuff is that removed articles continue to take up disk space. 
Cycbuff is really really good.
2. The artcutoff parameter in inn.conf sets the maximum age.  You can 
set it to 0 to ignore the check, or very high to filter out articles 
from 1969.
3. I believe inn will reject articles for things such as article 
containing null characters, or invalid email format in the From header. 
I don't believe there is a way to override that in the configuration. I 
edited the source code and recompiled it to skip the email validation.

If you want to duplicate the article numbering from your old server, you 
can set xrefslave to true in inn.conf, and your feed will need to send 
an Xref line.  With this, you could even use pullnews to transfer the 
spool group by group without messing up the crosspost numbering.

I'm curious what software you are leaving?
Re: Moving to INN, large spools
#88114
Author: Julien ÉLIE
Date: Fri, 10 Jan 2020 18:59
36 lines
2478 bytes
Hi Etian and rtnews,

>> 3 Is there any settings we need to ensure we dont loose any message, 
>> during the import (whivh
>>     we will try using IHAVE, or after such import?

During the import, also disable Perl and Python filtering hooks:

     ctlinnd perl n
     ctlinnd python n

Your active file should also list all the newsgroups articles are posted 
to (I do not know whether your current news server still keeps "removed" 
newsgroups alive).

Make sure that you always have room in your CNFS sequence so that they 
do not wrap (and therefore override old articles).



> 3. I believe inn will reject articles for things such as article 
> containing null characters, or invalid email format in the From header. 
> I don't believe there is a way to override that in the configuration. I 
> edited the source code and recompiled it to skip the email validation.

Is invalid e-mail format in the From header field really rejected by 
innd?  (using IHAVE)
It may be a bug if that's the case.
I've not checked right now but I thought it was nnrpd, when using POST.

-- 
Julien ÉLIE

« – Vite, vous deux ! Allez ouvrir les portes !
   – D'accord chef !
   – Tenez bien le bouclier chef ! » (Astérix)
Re: Moving to INN, large spools
#88116
Author: Etian
Date: Sat, 11 Jan 2020 01:25
14 lines
1680 bytes
On 1/10/20 11:59 AM, Julien ÉLIE wrote:> Hi Etian and rtnews,

 > Is invalid e-mail format in the From header field really rejected by
 > innd?  (using IHAVE)
 > It may be a bug if that's the case.
 > I've not checked right now but I thought it was nnrpd, when using POST.
 >
I'm pretty sure I encountered it long ago with ihave.  It's now in my 
installation notes to edit the source code to skip the check before 
compiling, so I could be wrong.  Several times in testing I thought I 
was in transit mode but I was in reader mode.  What might be the bug is 
allowing the ihave command in reader mode then accepting it via post.

Etian
Re: Moving to INN, large spools
#88117
Author: Neodome Admin
Date: Sun, 12 Jan 2020 03:25
28 lines
2043 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:

>> 3. I believe inn will reject articles for things such as article 
>> containing null characters, or invalid email format in the From header. 
>> I don't believe there is a way to override that in the configuration. I 
>> edited the source code and recompiled it to skip the email validation.
> 
> Is invalid e-mail format in the From header field really rejected by 
> innd?  (using IHAVE)

I think it will be rejected by nnrpd (if connection is handled by nnrpd at
the moment.)

> It may be a bug if that's the case.
> I've not checked right now but I thought it was nnrpd, when using POST.
> 

Nnrpd is able to use IHAVE, too. IIRC there is a section in INN
documentation that explains how IHAVE behave differently in innd and nnrpd.

What I would be watching is Date header. Innd currently is rejecting
articles with invalid Date header regardless of what date they actually
represent. I was looking at some old Usenet archives and noticed that back
in the days it was quite normal to see in headers something like “Date:
12-10-1999”

-- 
Neodome
Re: Moving to INN, large spools
#88118
Author: Julien ÉLIE
Date: Sun, 12 Jan 2020 11:11
31 lines
2329 bytes
Hi Etian,

>> Is invalid e-mail format in the From header field really rejected by
>> innd?  (using IHAVE)
>> It may be a bug if that's the case.
>
> I'm pretty sure I encountered it long ago with ihave.  It's now in my 
> installation notes to edit the source code to skip the check before 
> compiling, so I could be wrong.  Several times in testing I thought I 
> was in transit mode but I was in reader mode.  What might be the bug is 
> allowing the ihave command in reader mode then accepting it via post.

Checks done by nnrpd are indeed different.
In order not to allow IHAVE in reader mode, you should not add "I" in 
the corresponding readers.conf access block.
For instance use:

     access local {
         users: "admin@*"
         newsgroups: *
         access: "RPA"
     }

instead of access: "RPAI" or something similar.

-- 
Julien ÉLIE

« – Vite, vous deux ! Allez ouvrir les portes !
   – D'accord chef !
   – Tenez bien le bouclier chef ! » (Astérix)
Re: Moving to INN, large spools
#88119
Author: Julien ÉLIE
Date: Sun, 12 Jan 2020 11:14
16 lines
1693 bytes
Hi Neodome,

>> Is invalid e-mail format in the From header field really rejected by
>> innd?  (using IHAVE)
> 
> I think it will be rejected by nnrpd (if connection is handled by nnrpd at
> the moment.)

Indeed, nnrpd does the check.
innd should be preferred for article re-injection.

-- 
Julien ÉLIE

« Être en vacances, c'est n'avoir rien à faire et avoir toute la
   journée pour le faire. » (Robert Orben)
Re: Moving to INN, large spools
#88120
Author: Julien ÉLIE
Date: Sun, 12 Jan 2020 11:17
17 lines
1787 bytes
Hi Neodome,
> What I would be watching is Date header. Innd currently is rejecting
> articles with invalid Date header regardless of what date they actually
> represent. I was looking at some old Usenet archives and noticed that back
> in the days it was quite normal to see in headers something like “Date:
> 12-10-1999”

It may be a check to lighten (we now have a syntaxchecks inn.conf 
parameter, currently only used for message-IDs).
Yet, are we sure current newsreaders properly parse such Date header 
fields to display them?

-- 
Julien ÉLIE

« Être en vacances, c'est n'avoir rien à faire et avoir toute la
   journée pour le faire. » (Robert Orben)
Re: Moving to INN, large spools
#88121
Author: Neodome Admin
Date: Sun, 12 Jan 2020 16:49
24 lines
2041 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
> Hi Neodome,
>> What I would be watching is Date header. Innd currently is rejecting
>> articles with invalid Date header regardless of what date they actually
>> represent. I was looking at some old Usenet archives and noticed that back
>> in the days it was quite normal to see in headers something like “Date:
>> 12-10-1999”
> 
> It may be a check to lighten (we now have a syntaxchecks inn.conf 
> parameter, currently only used for message-IDs).

That might be good idea. AFAIK commercial Usenet providers already doing it
with their implementations of server software. Actually, the only reason
I’m aware that innd is rejecting articles with invalid Date header is
because my server is receiving such articles from other servers. I don’t
have Message-IDs handy but I can find them if you are interested.

> Yet, are we sure current newsreaders properly parse such Date header 
> fields to display them?

Well, some of them definitely can parse and insert invalid dates.

-- 
Neodome
Re: Moving to INN, large spools
#88122
Author: Russ Allbery
Date: Sun, 12 Jan 2020 18:41
37 lines
2704 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Hi Neodome,

>> What I would be watching is Date header. Innd currently is rejecting
>> articles with invalid Date header regardless of what date they actually
>> represent. I was looking at some old Usenet archives and noticed that
>> back in the days it was quite normal to see in headers something like
>> “Date: 12-10-1999”

> It may be a check to lighten (we now have a syntaxchecks inn.conf
> parameter, currently only used for message-IDs).
> Yet, are we sure current newsreaders properly parse such Date header
> fields to display them?

A lot of older newsreaders don't parse the Date header at all, just
display it verbatim.

parsedate_rfc5322_lax supports every Date format that I could find in a
fairly old news spool at Stanford and that I thought the old parsedate
code could handle.  It won't deal with Date: 12-10-1999, though.

INN is fairly resistant to accepting articles with dates that it can't
parse because it wants to know the posted date to compare to the cutoff
date to know whether the article is a possible duplicate.  It might make
sense to disable that code if artcutoff is set to 0, though.  You would
lose the check for articles posted in the future, but that may be
acceptable.

I'm not sure if the rest of the storage system deals with an unknown
posting date.  It's also stored in history, which may assume that it's
valid.

-- 
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.
Re: Moving to INN, large spools
#88130
Author: Julien ÉLIE
Date: Mon, 13 Jan 2020 17:19
34 lines
2810 bytes
Hi Neodome,

>>> What I would be watching is Date header. Innd currently is rejecting
>>> articles with invalid Date header regardless of what date they actually
>>> represent. I was looking at some old Usenet archives and noticed that back
>>> in the days it was quite normal to see in headers something like “Date:
>>> 12-10-1999”
>>
>> It may be a check to lighten (we now have a syntaxchecks inn.conf
>> parameter, currently only used for message-IDs).
> 
> That might be good idea. AFAIK commercial Usenet providers already doing it
> with their implementations of server software.

Too bad enforcing a stricter syntax is not done at *injection* time. 
Posting agents should generate valid header fields (for current articles).


> Actually, the only reason
> I’m aware that innd is rejecting articles with invalid Date header is
> because my server is receiving such articles from other servers. I don’t
> have Message-IDs handy but I can find them if you are interested.

Yes, please, I would be interested in such Message-IDs (or samples of 
Date header fields).  Maybe there is only one missing pattern that INN 
does not currently know how to parse.  If that's the case, it could be 
"easily" fixed.  Article *relaying* should not be refused because of that.

-- 
Julien ÉLIE

« En fait, je n'ai qu'une prétention, c'est de ne pas plaire à tout
   le monde. Plaire à tout le monde, c'est plaire à n'importe qui. »
   (Sacha Guitry)
Re: Moving to INN, large spools
#88135
Author: Neodome Admin
Date: Tue, 14 Jan 2020 11:11
27 lines
2318 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:

>> Actually, the only reason
>> I’m aware that innd is rejecting articles with invalid Date header is
>> because my server is receiving such articles from other servers. I don’t
>> have Message-IDs handy but I can find them if you are interested.
> 
> Yes, please, I would be interested in such Message-IDs (or samples of 
> Date header fields).  Maybe there is only one missing pattern that INN 
> does not currently know how to parse.  If that's the case, it could be 
> "easily" fixed.  Article *relaying* should not be refused because of that.
> 

Unfortunately, I keep only three days of logs so right now I can’t find
good examples. I just checked logs and I found few articles rejected by
innd because they were posted in the future, and many more articles
rejected because of empty headers. I saved Message-IDs in case if anyone
want to look at them.

What’s the rule of thumb should be in these cases? Pass such articles to
the peers because if it was good enough for one peer it might be good
enough for the other ones? I agree that INN should not accept such articles
if they are being posted, but relaying is different story. Currently INN is
dropping them without relaying.

-- 
Neodome
Re: Moving to INN, large spools
#88134
Author: yamo'
Date: Tue, 14 Jan 2020 12:33
30 lines
2324 bytes
Hi,

Neodome Admin a tapoté le 14/01/2020 12:11:
> Unfortunately, I keep only three days of logs so right now I can’t find
> good examples. I just checked logs and I found few articles rejected by
> innd because they were posted in the future, and many more articles
> rejected because of empty headers. I saved Message-IDs in case if anyone
> want to look at them.


Maybe that was this posts :

<BqWdna8JxZvHgYDDnZ2dnUU7-KGdnZ2d@giganews.com> 439 Article injected or
posted in the future -- "Mon, 20 Jan 2020 16:45:30 -0000"

<BqWdna4JxZt6gYDDnZ2dnUU7-KGdnZ2d@giganews.com> 439 Article injected or
posted in the future -- "Mon, 20 Jan 2020 16:45:30 -0000"

<BqWdnakJxZt5gIDDnZ2dnUU7-KGdnZ2d@giganews.com> 439 Article injected or
posted in the future -- "Mon, 20 Jan 2020 16:45:30 -0000"

<AbSdnbMSVoGNxITDnZ2dnUU7-a2dnZ2d@giganews.com> 439 Article injected or
posted in the future -- "Sat, 18 Jan 2020 05:09:49 -0000"

<AbSdna0SVoEiwITDnZ2dnUU7-a2dnZ2d@giganews.com> 439 Article injected or
posted in the future -- "Sat, 18 Jan 2020 00:30:53 -0500"


-- 
Stéphane
Re: Moving to INN, large spools
#88136
Author: Neodome Admin
Date: Tue, 14 Jan 2020 14:09
34 lines
2477 bytes
yamo' <yamo@beurdin.invalid> wrote:
> Hi,
> 
> Neodome Admin a tapoté le 14/01/2020 12:11:
>> Unfortunately, I keep only three days of logs so right now I can’t find
>> good examples. I just checked logs and I found few articles rejected by
>> innd because they were posted in the future, and many more articles
>> rejected because of empty headers. I saved Message-IDs in case if anyone
>> want to look at them.
> 
> 
> Maybe that was this posts :
> 
> <BqWdna8JxZvHgYDDnZ2dnUU7-KGdnZ2d@giganews.com> 439 Article injected or
> posted in the future -- "Mon, 20 Jan 2020 16:45:30 -0000"
> 
> <BqWdna4JxZt6gYDDnZ2dnUU7-KGdnZ2d@giganews.com> 439 Article injected or
> posted in the future -- "Mon, 20 Jan 2020 16:45:30 -0000"
> 
> <BqWdnakJxZt5gIDDnZ2dnUU7-KGdnZ2d@giganews.com> 439 Article injected or
> posted in the future -- "Mon, 20 Jan 2020 16:45:30 -0000"
> 
> <AbSdnbMSVoGNxITDnZ2dnUU7-a2dnZ2d@giganews.com> 439 Article injected or
> posted in the future -- "Sat, 18 Jan 2020 05:09:49 -0000"
> 
> <AbSdna0SVoEiwITDnZ2dnUU7-a2dnZ2d@giganews.com> 439 Article injected or
> posted in the future -- "Sat, 18 Jan 2020 00:30:53 -0500"

Yes, those are the ones that were rejected by my server, too. But it’s not
the example I was looking for, because technically date format is correct.
Just will have to keep an eye on logs in the future.

-- 
Neodome
Re: Moving to INN, large spools
#88139
Author: Grant Taylor
Date: Tue, 14 Jan 2020 22:29
23 lines
2101 bytes
On 1/14/20 4:11 AM, Neodome Admin wrote:
> What’s the rule of thumb should be in these cases? Pass such articles 
> to the peers because if it was good enough for one peer it might be 
> good enough for the other ones?

My opinion is — feel free to stop reading now — that peers get a copy of 
what is accepted into my spool.  If I don't accept it, they don't get it.

I strongly believe that what I accept into my spool is up to me, myself, 
and I.  Nobody else can mandate anything.

If peers complain that they aren't getting something, I'll:

1)  Remind them of the value of multiple peers to flood fill articles 
that I don't feed them.
2)  Engage in a discussion about what filters are in place, and if they 
should be or not.



-- 
Grant. . . .
unix || die
Re: Moving to INN, large spools
#88145
Author: Neodome Admin
Date: Wed, 15 Jan 2020 12:58
26 lines
2424 bytes
Grant Taylor <gtaylor@tnetconsulting.net> wrote:
> On 1/14/20 4:11 AM, Neodome Admin wrote:
>> What’s the rule of thumb should be in these cases? Pass such articles 
>> to the peers because if it was good enough for one peer it might be 
>> good enough for the other ones?
> 
> My opinion is — feel free to stop reading now — that peers get a copy of 
> what is accepted into my spool.  If I don't accept it, they don't get it.

I see your point. You’re thinking of filtered feed, and I agree with you on
that.

I filter outgoing articles, so everything is accepted into the pool and
filtering is applied to outgoing feeds instead of incoming. This way, peers
can choose if they wish to receive filtered or unfiltered feed. I actually
do have some peers who requested to send them everything. And I know that
in a real life none of them will ever ask me why my server didn’t propagate
article with three empty headers and two References headers, because the
answer is obvious. However if I had a choice I probably would propagate
such articles. Or the articles with invalid Date header. Actually, pretty
much anything, regardless if I will decide to put it in spool after
validation process or not. I would not allow *posting* of such articles but
that’s different story.

-- 
Neodome
Re: Moving to INN, large spools
#88148
Author: Julien ÉLIE
Date: Wed, 15 Jan 2020 21:34
34 lines
2544 bytes
Bonjour Stéphane,

All these posts were sent by the WinVN news reader.
There are 3 different dates for NNTP-Posting-Date, Date and 
Injection-Date header fields.

And of course very weird for the Injection-Date header field, the only 
one in the future.  Giganews should not have allowed its injection... 
(I doubt Giganews itself added it.)


> <BqWdna8JxZvHgYDDnZ2dnUU7-KGdnZ2d@giganews.com> 439 Article injected or
> posted in the future -- "Mon, 20 Jan 2020 16:45:30 -0000"

NNTP-Posting-Date: Mon, 13 Jan 2020 19:41:46 -0600
Date: Mon, 13 Jan 2020 11:45:30 -0500
Injection-Date: Mon, 20 Jan 2020 16:45:30 -0000
X-Newsreader: WinVN 0.99.12N (x86 32bit)



> <AbSdna0SVoEiwITDnZ2dnUU7-a2dnZ2d@giganews.com> 439 Article injected or
> posted in the future -- "Sat, 18 Jan 2020 00:30:53 -0500"

NNTP-Posting-Date: Fri, 10 Jan 2020 23:31:43 -0600
Date: Sat, 11 Jan 2020 00:30:53 -0500
Injection-Date: Sat, 18 Jan 2020 00:30:53 -0500
Newsgroups: rec.arts.tv
X-Newsreader: WinVN 0.99.12N (x86 32bit)

-- 
Julien ÉLIE

« Audaces fortuna iuvat. » (inspiré de Virgile, pour les chauves)
Re: Moving to INN, large spools
#88149
Author: Julien ÉLIE
Date: Wed, 15 Jan 2020 21:47
56 lines
3274 bytes
Hi Neodome,
> I just checked logs and I found few articles rejected by
> innd because they were posted in the future, and many more articles
> rejected because of empty headers. I saved Message-IDs in case if anyone
> want to look at them.
> 
> What’s the rule of thumb should be in these cases? Pass such articles to
> the peers because if it was good enough for one peer it might be good
> enough for the other ones? I agree that INN should not accept such articles
> if they are being posted, but relaying is different story. Currently INN is
> dropping them without relaying.

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?

-- 
Julien ÉLIE

« Audaces fortuna iuvat. » (inspiré de Virgile, pour les chauves)
Re: Moving to INN, large spools
#88152
Author: 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.
Re: Moving to INN, large spools
#88153
Author: Julien ÉLIE
Date: Mon, 20 Jan 2020 20:39
63 lines
4454 bytes
Hi Russ,

>> 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?

Many thanks for your thorough explanation.  It totally makes sense.
And indeed, Section 3.3 mentions the recording of history to reject 
duplicates as a MUST only for relaying and serving agents.

    Relaying and serving agents therefore MUST keep a record of articles
    they have already seen and use that record to reject additional
    offers of the same article.

Injecting agents are not required to do that.



> 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 document ever be revised.

More clarification may be useful indeed for better understanding. 
Current wording looks OK with that clarification in mind.

-- 
Julien ÉLIE

« Aliquis non debet esse iudex in propria causa, quia non potest esse
   iudex et pars. »
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