Thread View: news.software.nntp
6 messages
6 total messages
Started by Julien ÉLIE
Thu, 02 Apr 2009 11:05
Broken headers and rejects
Author: Julien ÉLIE
Date: Thu, 02 Apr 2009 11:05
Date: Thu, 02 Apr 2009 11:05
25 lines
1882 bytes
1882 bytes
Hi, Is it OK to accept articles containing empty headers fields when IHAVE/TAKETHIS is used? It is currently that reject for INN: Apr 2 12:21:30.921 - ? (null) 439 No colon-space in "Distribution:" header Apr 2 12:49:42.412 - localhost <a2@33> 439 No colon-space in "Cc:" header Such articles are not valid according to USEFOR but maybe we should not reject them as USEPRO suggests for relaying agents. Any thoughts about that? Another question: when a similar reject occurs, should its message-ID be remembered? (or should a chance be let for another copy, maybe well-formed, of the article to be received?) -- Julien ÉLIE « Oublie les injures, n'oublie jamais les bienfaits. »
Re: Broken headers and rejects
Author: Russ Allbery
Date: Thu, 02 Apr 2009 17:00
Date: Thu, 02 Apr 2009 17:00
30 lines
2247 bytes
2247 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Is it OK to accept articles containing empty headers fields when
> IHAVE/TAKETHIS is used?
>
> It is currently that reject for INN:
>
> Apr 2 12:21:30.921 - ? (null) 439 No colon-space in "Distribution:" header
> Apr 2 12:49:42.412 - localhost <a2@33> 439 No colon-space in "Cc:" header
>
> Such articles are not valid according to USEFOR but maybe we should not
> reject them as USEPRO suggests for relaying agents.
>
> Any thoughts about that?
Such articles are syntactically invalid. I would tend to reject them.
> Another question: when a similar reject occurs, should its message-ID
> be remembered? (or should a chance be let for another copy, maybe
> well-formed, of the article to be received?)
I can't think of a case where we'd get a complete article with that syntax
error and there was any real chance that we'd later get a copy of the
exact same article without a syntax error, so I'd tend to remember it.
--
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: Broken headers and rejects
Author: Julien ÉLIE
Date: Thu, 02 Apr 2009 17:48
Date: Thu, 02 Apr 2009 17:48
55 lines
3217 bytes
3217 bytes
Hi Russ,
>> Is it OK to accept articles containing empty headers fields when
>> IHAVE/TAKETHIS is used?
>>
>> It is currently that reject for INN:
>>
>> Apr 2 12:21:30.921 - ? (null) 439 No colon-space in "Distribution:" header
>> Apr 2 12:49:42.412 - localhost <a2@33> 439 No colon-space in "Cc:" header
>>
>> Such articles are not valid according to USEFOR but maybe we should not
>> reject them as USEPRO suggests for relaying agents.
>
> Such articles are syntactically invalid. I would tend to reject them.
An article containing "Distribution:\r\n" should then be rejected.
Is it the same for "Distribution: \r\n" and "Distribution: \r\n"?
What worries me most is that such checks should be done by injecting
and posting agents, not by relaying agents. Should they really be
rejected once in general circulation?
Hmm... Maybe an option should be provided. For instance:
compliance-nochecks = [ "empty-headers" ]
to allow them?
Or is it worthless doing?
>> Another question: when a similar reject occurs, should its message-ID
>> be remembered? (or should a chance be let for another copy, maybe
>> well-formed, of the article to be received?)
>
> I can't think of a case where we'd get a complete article with that syntax
> error and there was any real chance that we'd later get a copy of the
> exact same article without a syntax error, so I'd tend to remember it.
Well, Petr has examples of Cyclone's removing headers ("Distribution:\r\n"
disappears and the article previously rejected from a Diablo peer is
now valid from a Cyclone peer).
We also had examples of DNews' adding a blank line in empty bodies when
they relay the article.
And similar other *bad* behaviours which modify articles...
--
Julien ÉLIE
« Vita breuis, ars longa, occasio praeceps,
experimentum pericolosum, iudicium difficile. » (Hippocrate)
Re: Broken headers and rejects
Author: Russ Allbery
Date: Thu, 02 Apr 2009 18:48
Date: Thu, 02 Apr 2009 18:48
32 lines
2616 bytes
2616 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> An article containing "Distribution:\r\n" should then be rejected.
>
> Is it the same for "Distribution: \r\n" and "Distribution: \r\n"?
Those currently we should be allowing (and should fix the distribution
parsing code). They're also not allowed by USEFOR, but they're not as
clearly a syntactic error (and are a lot easier to allow).
> What worries me most is that such checks should be done by injecting and
> posting agents, not by relaying agents. Should they really be rejected
> once in general circulation?
Looking at the code, I think you're right and we can go ahead and accept
them. It doesn't look like the modifications required will be that
significant.
> Well, Petr has examples of Cyclone's removing headers
> ("Distribution:\r\n" disappears and the article previously rejected from
> a Diablo peer is now valid from a Cyclone peer).
Oh, gah.
It seems weird to hope that one of our peers performs a modification that
isn't permitted and that we won't do, though.
--
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: Broken headers and rejects
Author: D. Stussy
Date: Thu, 02 Apr 2009 22:55
Date: Thu, 02 Apr 2009 22:55
65 lines
3488 bytes
3488 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gr2tt5$v1o$1@news.trigofacile.com...
> >> Is it OK to accept articles containing empty headers fields when
> >> IHAVE/TAKETHIS is used?
> >>
> >> It is currently that reject for INN:
> >>
> >> Apr 2 12:21:30.921 - ? (null) 439 No colon-space in "Distribution:"
header
> >> Apr 2 12:49:42.412 - localhost <a2@33> 439 No colon-space in "Cc:"
header
> >>
> >> Such articles are not valid according to USEFOR but maybe we should
not
> >> reject them as USEPRO suggests for relaying agents.
> >
> > Such articles are syntactically invalid. I would tend to reject them.
>
> An article containing "Distribution:\r\n" should then be rejected.
>
> Is it the same for "Distribution: \r\n" and "Distribution: \r\n"?
>
>
> What worries me most is that such checks should be done by injecting
> and posting agents, not by relaying agents. Should they really be
> rejected once in general circulation?
I disagree. Then again, I reject syntactically invalid (per RFC 2821) mail
messages being sent or relayed to my mail server too. We have enough spam
on the internet. Usually, only spammers are the ones to generate invalid
messages.
Being liberal in what one accepts can only go so far. ;-)
> Hmm... Maybe an option should be provided. For instance:
>
> compliance-nochecks = [ "empty-headers" ]
>
> to allow them?
> Or is it worthless doing?
>
>
> >> Another question: when a similar reject occurs, should its message-ID
> >> be remembered? (or should a chance be let for another copy, maybe
> >> well-formed, of the article to be received?)
> >
> > I can't think of a case where we'd get a complete article with that
syntax
> > error and there was any real chance that we'd later get a copy of the
> > exact same article without a syntax error, so I'd tend to remember it.
>
> Well, Petr has examples of Cyclone's removing headers
("Distribution:\r\n"
> disappears and the article previously rejected from a Diablo peer is
> now valid from a Cyclone peer).
>
> We also had examples of DNews' adding a blank line in empty bodies when
> they relay the article.
>
> And similar other *bad* behaviours which modify articles...
Other than for specifically designated TRACE fields, isn't message
alteration a "no no?"
Re: Broken headers and rejects
Author: Julien ÉLIE
Date: Sat, 04 Apr 2009 11:02
Date: Sat, 04 Apr 2009 11:02
31 lines
2351 bytes
2351 bytes
Hi D. Stussy, >> An article containing "Distribution:\r\n" should then be rejected. >> Is it the same for "Distribution: \r\n" and "Distribution: \r\n"? >> >> What worries me most is that such checks should be done by injecting >> and posting agents, not by relaying agents. Should they really be >> rejected once in general circulation? > > I disagree. Then again, I reject syntactically invalid (per RFC 2821) mail > messages being sent or relayed to my mail server too. We have enough spam > on the internet. Usually, only spammers are the ones to generate invalid > messages. > > Being liberal in what one accepts can only go so far. ;-) OK, done: "A-header-without-space-after-colon:\r\n" is rejected. >> And similar other *bad* behaviours which modify articles... > > Other than for specifically designated TRACE fields, isn't message > alteration a "no no?" Sure. -- Julien ÉLIE « J'aurais pu faire forêt comble. » (Astérix)
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