🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
14 messages
14 total messages Started by Michael Grimm Fri, 06 Feb 2009 23:08
[INN/slrn] can't cancel my articles
#80104
Author: Michael Grimm
Date: Fri, 06 Feb 2009 23:08
17 lines
1480 bytes
[xposted & fup2 nsn]

After upgrading from INN 2.4.3 to 2.4.5 I can't cancel my articles
anymore (with an uptodate slrn):

#v+
Article rejected: 441 437 Body of header is all blanks in "User-Agent" header
#v-

Very odd: I can supersede the very same articles.

Any hint is highly welcome.

Regards,
Michael
-- 
to let
Re: [INN/slrn] can't cancel my articles
#80113
Author: Peter J Ross
Date: Tue, 10 Feb 2009 00:36
40 lines
2695 bytes
In news.software.readers on Fri, 6 Feb 2009 23:08:54 +0000 (UTC),
Michael Grimm <trashcan@odo.in-berlin.de> wrote:

> [xposted & fup2 nsn]

I don't currently read nsn, so I'm maintaining the crosspost.

> After upgrading from INN 2.4.3 to 2.4.5 I can't cancel my articles
> anymore (with an uptodate slrn):
>
> #v+
> Article rejected: 441 437 Body of header is all blanks in "User-Agent" header
> #v-
>
> Very odd: I can supersede the very same articles.
>
> Any hint is highly welcome.

Somewhere in slrn, there seems to be something that's generating an
empty User-Agent header for Cancels, though I'm damned if I can see it
anywhere in the source code after extensive grepping.

Since John E Davis (the author of slrn) seems not to have noticed this
thread, I suggest emailing him. jed AT-THING jedsoft DOT-THING org
ought to work.

The reason you don't have a problem with Supersedes is that headers
are generated the same way as for ordinary articles, including the
User-Agent line, which ought to be absent in its entirety from
Cancels. Similarly, user settings for Message-ID FQDN are ignored.

Thanks for mentioning this problem.



-- 
PJR :-)
slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: [INN/slrn] can't cancel my articles
#80115
Author: John E. Davis
Date: Tue, 10 Feb 2009 04:33
17 lines
1650 bytes
On Tue, 10 Feb 2009 00:36:28 +0000, Peter J Ross <pjr@example.invalid>
wrote:
> Since John E Davis (the author of slrn) seems not to have noticed this
> thread, I suggest emailing him. jed AT-THING jedsoft DOT-THING org
> ought to work.

The best thing to do is to run slrn using the --debug option:

   slrn --debug /tmp/slrn.log

Then after reproducing the error, exit slrn and look at /tmp/slrn.log
to verify that slrn is sending an empty User-Agent header.
Finally, make sure that there are no hooks that are stripping the
header.

Thanks,
--John
Re: [INN/slrn] can't cancel my articles
#80114
Author: Peter J Ross
Date: Tue, 10 Feb 2009 05:28
66 lines
2927 bytes
In news.software.readers on 10 Feb 2009 04:33:42 GMT, John E. Davis
<jed@jedsoft.org> wrote:

> On Tue, 10 Feb 2009 00:36:28 +0000, Peter J Ross <pjr@example.invalid>
> wrote:
>> Since John E Davis (the author of slrn) seems not to have noticed this
>> thread, I suggest emailing him. jed AT-THING jedsoft DOT-THING org
>> ought to work.
>
> The best thing to do is to run slrn using the --debug option:
>
>    slrn --debug /tmp/slrn.log
>
> Then after reproducing the error, exit slrn and look at /tmp/slrn.log
> to verify that slrn is sending an empty User-Agent header.
> Finally, make sure that there are no hooks that are stripping the
> header.

slrn is *not* sending a User-Agent header, empty or otherwise, for me.

#v+
===[begin_verbatim_text]==============================================

>POST
>

<340 Ok, recommended ID <99f766xjgd.ln2@pjr.gotdns.org>
>From: Peter J Ross <pjr@example.invalid>
>

>Newsgroups: pjr.test
>

>Subject: cmsg cancel <slrngp23fv.dgi.pjr@pjr.gotdns.org>
>

>Control: cancel <slrngp23fv.dgi.pjr@pjr.gotdns.org>
>

>
>
>

>ignore
>

>Article cancelled by slrn pre1.0.0-2/mm
>

>
>.
>

<240 Article posted, now be patient

===[end_verbatim_text]================================================
#v-

(the server is leafnode 2.0.0.alpha20081229a)


-- 
PJR :-)
slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: [INN/slrn] can't cancel my articles
#80116
Author: John E. Davis
Date: Tue, 10 Feb 2009 05:56
15 lines
1711 bytes
On Tue, 10 Feb 2009 05:28:58 +0000, Peter J Ross <pjr@example.invalid>
wrote:
> slrn is *not* sending a User-Agent header, empty or otherwise, for me.

Right.  It does not send the User-Agent header in a cancel message.
Has something changed that now requires it?

I understood the original message to be that INN was either seeing a
User-Agent header with a blank field, or an empty body after a
User-Agent header.  This is why I would like to see the debug output
to see exactly what slrn is sending the server.

Thanks,
--John
Re: [INN/slrn] can't cancel my articles
#80117
Author: Peter J Ross
Date: Tue, 10 Feb 2009 06:16
28 lines
2581 bytes
In news.software.readers on 10 Feb 2009 05:56:12 GMT, John E. Davis
<jed@jedsoft.org> wrote:

> On Tue, 10 Feb 2009 05:28:58 +0000, Peter J Ross <pjr@example.invalid>
> wrote:
>> slrn is *not* sending a User-Agent header, empty or otherwise, for me.
>
> Right.  It does not send the User-Agent header in a cancel message.
> Has something changed that now requires it?
>
> I understood the original message to be that INN was either seeing a
> User-Agent header with a blank field, or an empty body after a
> User-Agent header.  This is why I would like to see the debug output
> to see exactly what slrn is sending the server.

I posted the relevant part of the debug output. There's no User-Agent
header, and the body isn't empty.

My slrn is compiled without support for inews, which I suppose might
make a difference to the OP's problem. An external inews may be adding
or changing something.


-- 
PJR :-)
slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: [INN/slrn] can't cancel my articles
#80119
Author: Michael Grimm
Date: Tue, 10 Feb 2009 06:39
66 lines
2826 bytes
John E. Davis <jed@jedsoft.org> wrote:
> On Tue, 10 Feb 2009 05:28:58 +0000, Peter J Ross <pjr@example.invalid> wrote:

>> slrn is *not* sending a User-Agent header, empty or otherwise, for me.
>
> Right.  It does not send the User-Agent header in a cancel message.
> Has something changed that now requires it?

Recently I upgraded from INN 2.4.3 to 2.4.5; it must have happened in
between, because I never had difficulties in canceling my articles with
that very same slrn I'm using right now.

(BTW: 2.4.5 seems to be much more sensible to empty headers than 2.4.3.
I see error messages regarding some more empty headers of articles that
have been accepted by 2.4.3 previously, while I was migrating to that
new server.)

> I understood the original message to be that INN was either seeing a
> User-Agent header with a blank field, or an empty body after a
> User-Agent header.  This is why I would like to see the debug output
> to see exactly what slrn is sending the server.

Ok, here is the relevant part:

#v+
>From: Michael Grimm <trashcan@odo.in-berlin.de>
>

>Newsgroups: local.junk
>

>Subject: cmsg cancel <gmr6ld$12tt$1@de-l.enfer-du-nord.net>
>

>Control: cancel <gmr6ld$12tt$1@de-l.enfer-du-nord.net>
>

>
>Cancel-Key: sha1:0urHo8L2WaTmaU3RufFx3R7mhoc=
>

>
>
>

>ignore
>

>Article cancelled by slrn 0.9.9p1/mm/ao
>

>
>.
>

<441 437 Body of header is all blanks in "User-Agent" header
>QUIT
>

!Closing the server connection.
#v-

Regards,
Michael
-- 
to let
Re: [INN/slrn] can't cancel my articles
#80118
Author: Ray Banana
Date: Tue, 10 Feb 2009 06:55
22 lines
2752 bytes
Thus spake Michael Grimm <trashcan@odo.in-berlin.de>
 
> Recently I upgraded from INN 2.4.3 to 2.4.5; it must have happened in
> between, because I never had difficulties in canceling my articles with
> that very same slrn I'm using right now.
> (BTW: 2.4.5 seems to be much more sensible to empty headers than 2.4.3.
> I see error messages regarding some more empty headers of articles that
> have been accepted by 2.4.3 previously, while I was migrating to that
> new server.)

Starting with INN 2.4.5, more headers are defined as standard,
meaning that they require a body if they are present. This explains why
you are seeing this error after updating to 2.4.5, but not before.

As slrn does not send the User-Agent header, do you use a filter_nnrpd
that might interfere with headers? I remember Paolo's Postfilter
creating empty In-Reply-To: headers, which caused most articles
from aioe to be rejected by Motzarella when I upgraded to INN 2.4.5.

-- 
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: [INN/slrn] can't cancel my articles
#80120
Author: Michael Grimm
Date: Tue, 10 Feb 2009 17:15
23 lines
2118 bytes
Ray Banana <rayban@banana.shacknet.nu> wrote:
  
> As slrn does not send the User-Agent header, do you use a filter_nnrpd
> that might interfere with headers? 

Sigh. I had had an entry modifying $hdr{"User-Agent"} *without* checking
the presence of that given header resulting in *adding* an empty User-
Agent header instead :-(

Removing that no longer needed modification now enables me to cancel my
articles. 

> I remember Paolo's Postfilter creating empty In-Reply-To: headers,
> which caused most articles from aioe to be rejected by Motzarella when
> I upgraded to INN 2.4.5.

Those were the articles that didn't make it during my recent move to a
new server as well.

Thanks for pointing me to filter_nnrpd.pl
Michael
-- 
to let
Re: [INN/slrn] can't cancel my articles
#80121
Author: Julien ÉLIE
Date: Tue, 10 Feb 2009 19:52
30 lines
2546 bytes
Hi Ray,

> Starting with INN 2.4.5, more headers are defined as standard,
> meaning that they require a body if they are present. This explains why
> you are seeing this error after updating to 2.4.5, but not before.

The list of headers available to Perl and Python hooks contains more
entries in INN 2.4.5.  Otherwise, such headers were not accessible
by these innd filters.  The list is here:
    http://www.eyrie.org/~eagle/software/inn/docs/hook-perl.html



According to USEFOR:

   General rules which apply to all header fields (even those documented
   in [RFC2822] and [RFC2045]) [...]

   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.

-- 
Julien ÉLIE

« C'est une forêt vierge où la main de l'homme n'a jamais mis le pied. » 
Re: [INN/slrn] can't cancel my articles
#80123
Author: Ray Banana
Date: Tue, 10 Feb 2009 20:38
32 lines
3066 bytes
Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
 
> Hi Ray,

>> Starting with INN 2.4.5, more headers are defined as standard,
>> meaning that they require a body if they are present. This explains why
>> you are seeing this error after updating to 2.4.5, but not before.

> The list of headers available to Perl and Python hooks contains more
> entries in INN 2.4.5.  Otherwise, such headers were not accessible
> by these innd filters.  The list is here:
>    http://www.eyrie.org/~eagle/software/inn/docs/hook-perl.html

>From the filter_nnrpd perspective these headers *were* available in
earlier versions of INN, as you were able to read and change them.
The difference is that, before INN 2.4.5, these headers were removed
when the body was empty.  

With INN 2.4.5 you can still remove the body of these headers
(using $hdr{'User-Agent'} = ''};), but innd will subsequently reject
them. In order to remove these headers you will have to use 

delete $hdr{'User-Agent'}; 

with INN 2.4.5 and later.

This is in compliance with the relevant RFCs, but it's still a
potential pitfall when updating to INN 2.4.5. 

-- 
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: [INN/slrn] can't cancel my articles
#80122
Author: Aioe
Date: Tue, 10 Feb 2009 21:06
11 lines
1638 bytes
Ray Banana wrote:

>  I remember Paolo's Postfilter
> creating empty In-Reply-To: headers, which caused most articles
> from aioe to be rejected by Motzarella when I upgraded to INN 2.4.5.
> 

it was fixed in 0.7.5
all releases >= 0.7.5 are tested before being published with both inn 2.4
and 2.5
Re: [INN/slrn] can't cancel my articles
#80124
Author: Julien ÉLIE
Date: Tue, 10 Feb 2009 21:16
18 lines
2181 bytes
Hi Ray,

> The difference is that, before INN 2.4.5, these headers were removed
> when the body was empty.

I see that the handling of empty headers has changed in INN 2.5.0;
as a matter of fact, they are now accepted:

    http://inn.eyrie.org/trac/changeset/6920/trunk/innd/art.c
    http://inn.eyrie.org/trac/changeset/6921/trunk/innd/art.c

-- 
Julien ÉLIE

« PowerPoint allows speakers to pretend that they are giving
  a real talk, and audiences to pretend that they are listening. »
  (Edward R. Tufte, _The Cognitive Style of PowerPoint_)
Re: [INN/slrn] can't cancel my articles
#80129
Author: Julien ÉLIE
Date: Wed, 18 Feb 2009 21:29
23 lines
2347 bytes
Hi Ray,

>> #v+
>> Article rejected: 441 437 Body of header is all blanks in "User-Agent" header
>> #v-
>
>> Recently I upgraded from INN 2.4.3 to 2.4.5; it must have happened in
>> between, because I never had difficulties in canceling my articles with
>> that very same slrn I'm using right now.
>
> Starting with INN 2.4.5, more headers are defined as standard,
> meaning that they require a body if they are present. This explains why
> you are seeing this error after updating to 2.4.5, but not before.

Hmm...  I believe the issue comes from elsewhere because User-Agent: has
been defined as a standard header since May, 6th 2001...  The 2.4 branch
has always had it defined.

-- 
Julien ÉLIE

« Ils se souviendront de la marmite de poisson ! » (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