Thread View: news.software.nntp
13 messages
13 total messages
Started by Ray Banana
Sun, 15 Jun 2008 18:24
inn-STABLE-20080614: Body of header is all blanks
Author: Ray Banana
Date: Sun, 15 Jun 2008 18:24
Date: Sun, 15 Jun 2008 18:24
12 lines
1668 bytes
1668 bytes
Today I tried inn-STABLE-20080614 and noticed that articles containing a valid In-Reply-To: header were rejected with 437 Body of header is all blanks in "In-Reply-To" header I checked the the articles in question and they all contained a M-ID in the In-Reply-To: header. -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Re: inn-STABLE-20080614: Body of header is all blanks
Author: Ray Banana
Date: Sun, 15 Jun 2008 19:18
Date: Sun, 15 Jun 2008 19:18
14 lines
1905 bytes
1905 bytes
Thus spake Ray Banana <rayban@banana.shacknet.nu> > Today I tried inn-STABLE-20080614 and noticed that articles containing a > valid In-Reply-To: header were rejected with > 437 Body of header is all blanks in "In-Reply-To" header > I checked the the articles in question and they all contained a M-ID in > the In-Reply-To: header. Additional info: I get this error on a Debian Etch system and on an Ubuntu 8.04 system, but *not* on a FreeBSD 7.0 system. -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Re: inn-STABLE-20080614: Body of header is all blanks
Author: Julien ÉLIE
Date: Mon, 16 Jun 2008 19:38
Date: Mon, 16 Jun 2008 19:38
27 lines
2258 bytes
2258 bytes
Hi Ray, >> Today I tried inn-STABLE-20080614 and noticed that articles containing a >> valid In-Reply-To: header were rejected with >> 437 Body of header is all blanks in "In-Reply-To" header >> I checked the the articles in question and they all contained a M-ID in >> the In-Reply-To: header. Do you have the Message-ID of these articles so that I can test to inject them on INN STABLE? Is it reproducible? (inews -h < article -- modifying its Message-ID and the newsgroups they are posted to, so as to test) I tried with an article to which I added an In-Reply-To: header and the article was correctly handled by inews. > Additional info: I get this error on a Debian Etch system and on an > Ubuntu 8.04 system, but *not* on a FreeBSD 7.0 system. Are all of them running 32-bit systems? -- Julien ÉLIE « Aux quatre coins de l'hexagone. »
Re: inn-STABLE-20080614: Body of header is all blanks
Author: Ray Banana
Date: Mon, 16 Jun 2008 21:07
Date: Mon, 16 Jun 2008 21:07
29 lines
2795 bytes
2795 bytes
Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> >>> 437 Body of header is all blanks in "In-Reply-To" header >>> I checked the the articles in question and they all contained a M-ID in >>> the In-Reply-To: header. > Do you have the Message-ID of these articles so that I can test to inject > them on INN STABLE? > Is it reproducible? (inews -h < article -- modifying its Message-ID and > the newsgroups they are posted to, so as to test) It can be easily reproduced by trying to reply to *any* article using Thunderbird 2.0.0.14 or slrn with a manually added In-Reply-To: header. That means that I am not able to post a followup to any article with Thunderbird. I tried inn-STABLE-20080615 and inn-STABLE-20080610 with the same result. With the 2.4.4 release version there is no problem. All four versions were built from the sources using the same configure script. > I tried with an article to which I added an In-Reply-To: header and > the article was correctly handled by inews. >> Additional info: I get this error on a Debian Etch system and on an >> Ubuntu 8.04 system, but *not* on a FreeBSD 7.0 system. > Are all of them running 32-bit systems? Yes, Debian, Ubuntu and FreeBSD are all 32 bit systems. -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Re: inn-STABLE-20080614: Body of header is all blanks
Author: Julien ÉLIE
Date: Mon, 16 Jun 2008 21:32
Date: Mon, 16 Jun 2008 21:32
21 lines
2067 bytes
2067 bytes
Hi Ray,
> That means that I am not able to post a followup to any article with
> Thunderbird. I tried inn-STABLE-20080615 and inn-STABLE-20080610 with
> the same result. With the 2.4.4 release version there is no problem.
I have just tried with last STABLE, with Thunderbird (2.0.0.6).
I have no problem with such headers.
Could you please try on my STABLE news server?
--> news.trigofacile.com on port 1190
(*not* SSL)
You can post to trigofacile.test (local newsgroup) or fr.test (widespread).
--
Julien ÉLIE
« Aux quatre coins de l'hexagone. »
Re: inn-STABLE-20080614: Body of header is all blanks
Author: Ray Banana
Date: Tue, 17 Jun 2008 05:33
Date: Tue, 17 Jun 2008 05:33
18 lines
2401 bytes
2401 bytes
Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> >> That means that I am not able to post a followup to any article with >> Thunderbird. I tried inn-STABLE-20080615 and inn-STABLE-20080610 with >> the same result. With the 2.4.4 release version there is no problem. > I have just tried with last STABLE, with Thunderbird (2.0.0.6). > I have no problem with such headers. I have now replaced my filter_nnrpd.pl with a dummy filter and the problem is gone. So I suspect a problem with modifying headers within filter_nnrpd.pl. As my filter has worked without any problem in INN 2.4.2 to 2.4.4 it might be a bug in the code that copies the headers back to the original article on return from the filter. I will do some debugging and report back to inn-workers. -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Re: inn-STABLE-20080614: Body of header is all blanks
Author: Julien ÉLIE
Date: Tue, 17 Jun 2008 06:14
Date: Tue, 17 Jun 2008 06:14
37 lines
2715 bytes
2715 bytes
Hi Ray,
> I have now replaced my filter_nnrpd.pl with a dummy filter and the
> problem is gone. So I suspect a problem with modifying headers within
> filter_nnrpd.pl. As my filter has worked without any problem in INN
> 2.4.2 to 2.4.4 it might be a bug in the code that copies the headers
> back to the original article on return from the filter.
In case it helps, the In-Reply-To: header has been accessible by filter_innd.pl
since 2008/06/05:
+ ARTHEADERINIT("In-Reply-To", HTstd),
+ /* #define HDR__IN_REPLY_TO 63 */
(innd/innd.c)
but it normally does not interact with filter_nnrpd.pl which receives
the whole %hdr hash.
You might also want to check with other added headers (like NNTP-Posting-Date:
or MIME-Version:).
Does your filter_nnrpd.pl change the In-Reply-To: header?
> I will do some debugging and report back to inn-workers.
All right, thanks!
We shall wait for it before releasing INN 2.4.5.
By the way, have you had the chance to test your filter_nnrpd.pl script
with CURRENT INN to see whether it is also affected by this issue?
--
Julien ÉLIE
« Aux quatre coins de l'hexagone. »
Re: inn-STABLE-20080614: Body of header is all blanks
Author: Ray Banana
Date: Tue, 17 Jun 2008 12:47
Date: Tue, 17 Jun 2008 12:47
20 lines
2494 bytes
2494 bytes
Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
> In case it helps, the In-Reply-To: header has been accessible by filter_innd.pl
> since 2008/06/05:
> + ARTHEADERINIT("In-Reply-To", HTstd),
> + /* #define HDR__IN_REPLY_TO 63 */
> (innd/innd.c)
One side effect of this seems to be that the In-Reply-To: header is now
checked for an empty value.
filter_nnrpd.pl tried to remove the In-Reply-To: header in certain
cases, but produced an empty value instead. This went unnoticed until
now. So the bug was in the filter but the empty header was not detected
by innd until now.
--
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: inn-STABLE-20080614: Body of header is all blanks
Author: Julien ÉLIE
Date: Tue, 17 Jun 2008 17:14
Date: Tue, 17 Jun 2008 17:14
88 lines
4678 bytes
4678 bytes
Hi Ray,
> One side effect of this seems to be that the In-Reply-To: header is now
> checked for an empty value.
According to son of 1036, it is allowed to have empty headers:
4.2.2. Undesirable Headers
A header whose content is empty is said to be an empty
header. [...] Posting agents
SHOULD delete empty headers from articles before posting
them. [...]
4.2.3. White Space and Continuations
The colon following the header name on the start-line MUST
be followed by white space, even if the header is empty.
However, USEFOR (still not adopted) does not allow such empty headers:
o Every line of a header field body (including the first and any
that are subsequently folded) MUST contain at least one non-
whitespace character.
NOTE: This means that no header field body defined by or
referenced by this document can be empty. As a result, rather
than using the <unstructured> syntax from Section 3.2.6 of
[RFC2822], this document uses a stricter definition:
unstructured = *WSP utext *( [FWS] utext ) *WSP
> filter_nnrpd.pl tried to remove the In-Reply-To: header in certain
> cases, but produced an empty value instead. This went unnoticed until
> now. So the bug was in the filter but the empty header was not detected
> by innd until now.
In June 2004, there was a patch for INN 2.5 in order not to check
empty headers. It removed the message you got.
But I am unsure whether it should be committed to INN 2.4.5:
===================================================================
--- C:/Users/Julien/Downloads/svn/INN/trunk/innd/art.c (revision 6919)
+++ C:/Users/Julien/Downloads/svn/INN/trunk/innd/art.c (revision 6920)
@@ -677,17 +677,9 @@
/* duplicated */
hc->Length = -1;
} else {
- for (p = colon + 1 ; (p < header + size - 2) &&
- (ISWHITE(*p) || *p == '\r' || *p == '\n'); p++);
- if (p < header + size - 2) {
- hc->Value = p;
- /* HDR_LEN() does not include trailing "\r\n" */
- hc->Length = header + size - 2 - p;
- } else {
- snprintf(cp->Error, sizeof(cp->Error),
- "%d Body of header is all blanks in \"%s\" header",
- NNTP_REJECTIT_VAL, MaxLength(hp->Name, hp->Name));
- }
+ hc->Value = colon + 2;
+ /* HDR_LEN() does not include trailing "\r\n" */
+ hc->Length = size - (hc->Value - header) - 2;
}
return;
}
Please have a look at what Christoph Biedl and Russ Allbery said:
http://marc.info/?t=108651622400002&r=1&w=2
By the way, why "USEFOR is not worth paying attention to"? "the relevant
standard in this case is RFC 2822", but isn't USEFOR aimed at specifying
the format of Usenet articles?
Well, maybe we should have that patch committed to STABLE?
--
Julien ÉLIE
« Il buvait toutes mes paroles, et comme je parlais beaucoup,
à un moment, je le vois qui titubait... » (Raymond Devos)
Re: inn-STABLE-20080614: Body of header is all blanks
Author: Ray Banana
Date: Wed, 18 Jun 2008 07:27
Date: Wed, 18 Jun 2008 07:27
37 lines
3480 bytes
3480 bytes
Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
>> One side effect of this seems to be that the In-Reply-To: header is now
>> checked for an empty value.
> According to son of 1036, it is allowed to have empty headers:
Son of 1036 was just a proposed draft and is now obsolete.
> However, USEFOR (still not adopted) does not allow such empty headers:
^^^^^^^^^^^^^^^^^^
[...]
> By the way, why "USEFOR is not worth paying attention to"? "the relevant
> standard in this case is RFC 2822", but isn't USEFOR aimed at specifying
> the format of Usenet articles?
USEFOR is a dead horse, at least it smells like it. All efforts to
set up a new standard have failed for 15 years and there is little
hope there will be a new standard in the near future. So it#s best
to stick to RFC2822, especially as RFC1036 explicitly refers to
RFC822, which has been superseded by RFC2822.
> Well, maybe we should have that patch committed to STABLE?
Right now I am primarily interested in a consistent behaviour of
nnrpd's and innd's header handling. From a first glance at the
code it appears to me that innd now treats In-Reply-To: as a
standard optional header and rejects it if it's empty whereas
nnrpd just ignores it. The problem with this behaviour is that
I am not able to delete this header in filter_nnrpd.
delete $hdr{'In-Reply-To'} is ignored by nnrpd and
$hdr{'In-Reply-To'} = undef will create an empty In-Reply-To:
header that will be rejected by innd.
--
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: inn-STABLE-20080614: Body of header is all blanks
Author: Russ Allbery
Date: Wed, 18 Jun 2008 17:02
Date: Wed, 18 Jun 2008 17:02
21 lines
2391 bytes
2391 bytes
Ray Banana <rayban@banana.shacknet.nu> writes:
> USEFOR is a dead horse, at least it smells like it. All efforts to
> set up a new standard have failed for 15 years and there is little
> hope there will be a new standard in the near future. So it#s best
> to stick to RFC2822, especially as RFC1036 explicitly refers to
> RFC822, which has been superseded by RFC2822.
I don't know of any news software that has ever fully implemented RFC 822
or RFC 2822, and if you're waiting for INN to do so, I think you're going
to be waiting for quite a long time. There are some requirements in RFC
822 that flatly contradict requirements in the NNTP standard. That's one
of the reasons why we put so much effort into writing the USEFOR document,
which for all its flaws is much closer to reality on Usenet than RFC 822
is.
--
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: inn-STABLE-20080614: Body of header is all blanks
Author: Julien ÉLIE
Date: Wed, 18 Jun 2008 18:05
Date: Wed, 18 Jun 2008 18:05
31 lines
2368 bytes
2368 bytes
Hi Ray,
> I am not able to delete this header in filter_nnrpd.
> delete $hdr{'In-Reply-To'} is ignored by nnrpd and
> $hdr{'In-Reply-To'} = undef will create an empty In-Reply-To:
> header that will be rejected by innd.
I do not understand what is going on.
I have just tried with STABLE to use:
sub filter_post {
delete $hdr{'In-Reply-To'};
$modify_headers = 1;
return '';
}
and the header was totally removed...
However,
$hdr{'In-Reply-To'} = undef;
and
$hdr{'In-Reply-To'} = '';
generate an empty header.
--
Julien ÉLIE
« L'atour est fiel aux Huns valides. »
Re: inn-STABLE-20080614: Body of header is all blanks
Author: Julien ÉLIE
Date: Sun, 22 Jun 2008 10:46
Date: Sun, 22 Jun 2008 10:46
31 lines
2434 bytes
2434 bytes
Hi Ray,
>> Well, maybe we should have that patch committed to STABLE?
>
> The problem with this behaviour is that
> I am not able to delete this header in filter_nnrpd.
> delete $hdr{'In-Reply-To'} is ignored by nnrpd and
> $hdr{'In-Reply-To'} = undef will create an empty In-Reply-To:
> header that will be rejected by innd.
Cannot you still delete the header with the following code?
sub filter_post {
delete $hdr{'In-Reply-To'};
$modify_headers = 1;
return '';
}
Or is it OK?
By the way, perhaps FreeBSD 7.0 has a different version of Perl
since you had no problem with it, contrary to Debian and Ubuntu.
--
Julien ÉLIE
« Pas question de faire voler un tapis volé ! » (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