[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Re: 423 Bad article number, was Re: leafnode-2.0.0.alpha20061010a snapshot available



On Fri, Dec 01, 2006 at 09:16:19PM +0100, clemens fischer wrote:
> On Fri, 13 Oct 2006 21:08:42 +0200 Martin wrote:
> 
> > |sent ARTICLE 1692 command, in pipe: 1
> > |Wrong reply to ARTICLE command: "423 No such article number in this group"
> 
> i'm getting lots of these lately, most of them related to gmane.org.

I first and only saw this on gmane.org.

> the situation on the wire is weird, as the server seems to offer
> overview data but won't hand out the articles:

Who cares? fetchnews does not. The problem is: The only article to be
fetched is not sent by the server.

> 2006-12-01_16:35:32.98216 GROUP gmane.comp.sysutils.supervision.general
> 2006-12-01_16:35:33.02053 211 1304 46 1349 gmane.comp.sysutils.supervision.general
> 2006-12-01_16:35:33.02871 XOVER 1349-1349

Only one article to fetch.

> 2006-12-01_16:35:33.06564 224 1349-1349 fields follow
> 2006-12-01_16:35:33.22213 1349  Fw: Something to get your lady  "Sterling Kraft" <SterlingKraftHP@xxxxxxx>      S
> un, 26 Nov 2006 16:04:45 -0500 <000926c1117a$eeee5eb0$7575a8c0@ACERLAPTOP>             21826   280     Xref: news
> .gmane.org gmane.comp.sysutils.supervision.general:1349

To be honest: All of these before do no harm at all.

> 2006-12-01_16:35:33.24048 ARTICLE 1349
> 2006-12-01_16:35:33.33657 423 Bad article number

Here's the problem: 1 article to fetch, one article failed. So fetchnews
received a total of 0 articles. This result (zero) is the return value
of getarticles().

I guess in former times there was no possibility of returning zero
articles without a severe problem. So the return value of getarticles()
is checked for being zero or not. In case of being zero there's supposed
to be some severe error, so fetchnews stops getting articles from the
server:

> 2006-12-01_16:35:33.34552 QUIT
> 
> > The patch follows:
> > 
> > diff -rN -u leafnode-2.0.0.alpha20061010a/fetchnews.c leafnode-2.0.0.alpha20061011/fetchnews.c
> > --- leafnode-2.0.0.alpha20061010a/fetchnews.c   2006-08-15 13:31:26.000000000 +0200
> > +++ leafnode-2.0.0.alpha20061011/fetchnews.c    2006-10-13 20:48:21.000000000 +0200
> > @@ -1122,6 +1122,7 @@
> >            }
> >        }
> >     }
> > +if (artno_server == 0) artno_server = -1;
> >     return artno_server;
> > }
> 
> should i try this patch or what else?

This is a quick && dirty hackaround. Since then I had no other side
effects, everything seems to work well. Be aware: There is the
possibility of being "-1 articles fetched" or other strange occurences.

Another way to solve this problem could be: Write to the mailing list.
Then there are two articles to be fetched, one article is returned by
getarticles(), the error-checking does not recognise some non-existing
error, fetchnews continues its work.

HTH, Martin
-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/