Thread View: news.software.nntp
10 messages
10 total messages
Started by Juergen Helbing
Sun, 08 Sep 2002 21:00
Delivery of wrong articles by some news-hosts
Author: Juergen Helbing
Date: Sun, 08 Sep 2002 21:00
Date: Sun, 08 Sep 2002 21:00
63 lines
3286 bytes
3286 bytes
Hi again, I'm watching a strage effect on a bunch of news-servers which affect my own tools: Retrieval of articles with the NNTP-Command: ARTICLE <msgid> results sometimes in such log-entries: 08.09.2002 17:51:17:(1) Server (news.newsfeeds.com) delivered wrong message: (<oualnu4kfmu87vb167171gi9nh4asb73f9@4ax.com>) --> (<hualnu40tov5hij236pbtd326c92agvn42@4ax.com>) 08.09.2002 17:58:36:(2) Server (goliath2.newsfeeds.com) delivered wrong message: (<sa8lnuk1da72kkmdeidrgr82m32rvp01j8@4ax.com>) --> (<ma8lnug93km84kdduf3i9rbmrefjk3q9ru@4ax.com>) This means that the server did not deliver the requested article but an article with a different message-id. :-(( This effect is not limited to these two hosts but was also seen earlier at newshosting.com and enewsguy.com. The effect seems to appear almost if 'old' articles are fetched which are perhaps already expired. My own toy (MyNews) is using download by MsgId because I dont want to store the article-number together with the newsgroup name/code for each of the 150 news-servers where I found it. This is one of my "final troubles" on my buglist to create a really good program. The effect seems to appear only in "manual mode" when a newsgroup is added the first time or messages are retrieved manually by request. "Automatic" MyNews which fetch articles as soon as they appear seems to work better. So my assumption would be that it has something to do with expiry (or cancelling, or .....). Question: Is it a known effect that some server-softs are having problems with recognizing properly that an article-ID is already expired/cancelled ? Is it possible that the msgid-hashing (or other kind of msg-id database) is corrupt on such hosts ? Is there anything what can be done to avoid such effects ? (more than detecting them on my side - and request the message from another host - what I'm doing already) ? Would it be helpful to notify the admins of such hosts - or do they have no options to "fix" it (I see no reason to annoy them if they can't react properly). This "effect" might be also a reason for incompleteness on some hosts - because a corrupt message-id database would prevent a server from deciding properly what messages it already has. Perhaps some of these servers are rejecting messages simply because they believe that they have it already. Then this "case" might be of general interest here. (For improvement of Usenet Completeness :-). TIA for tips. -- Juergen
Re: Delivery of wrong articles by some news-hosts
Author: Curt Welch
Date: Mon, 09 Sep 2002 00:06
Date: Mon, 09 Sep 2002 00:06
88 lines
5106 bytes
5106 bytes
archiver@i3w.com (Juergen Helbing) wrote: > Hi again, > > I'm watching a strage effect on a bunch of news-servers which > affect my own tools: > Retrieval of articles with the NNTP-Command: ARTICLE <msgid> > results sometimes in such log-entries: > > 08.09.2002 17:51:17:(1) Server (news.newsfeeds.com) delivered wrong > message: (<oualnu4kfmu87vb167171gi9nh4asb73f9@4ax.com>) > --> (<hualnu40tov5hij236pbtd326c92agvn42@4ax.com>) > 08.09.2002 17:58:36:(2) Server (goliath2.newsfeeds.com) delivered wrong > message: (<sa8lnuk1da72kkmdeidrgr82m32rvp01j8@4ax.com>) --> > (<ma8lnug93km84kdduf3i9rbmrefjk3q9ru@4ax.com>) > > This means that the server did not deliver the requested article > but an article with a different message-id. :-(( > > This effect is not limited to these two hosts but was also seen earlier > at newshosting.com and enewsguy.com. > The effect seems to appear almost if 'old' articles are fetched > which are perhaps already expired. Did you double check to make sure the problem is in those servers and not your own code? If you haven't, you should try to telnet to the "broken" server, and do a HEAD <xxx> and see for yourself what article shows up. > Question: > > Is it a known effect that some server-softs are having problems with > recognizing properly that an article-ID is already expired/cancelled ? I've never heard of a bug like that. But maybe there is some software which does that on a regular basis if you are asking for articles which have just expired. > Is it possible that the msgid-hashing (or other kind of msg-id database) > is corrupt on such hosts ? Yes. History files can become corrupted. Sometimes article spools can be corrupted as well causing the wrong articles to be returned. But in all cases, the server is seriously broken if this is happening. The other thing I've seen happen to cause this is articles with multiple Message-IDs. My memory is not real clear, but I think I saw a case where the line before the Message-ID ID header was terminated with only LF instead of CR LF. Some servers saw that LF as a valid end-of-line marker for the header and then parsed the following Message-ID correctly. Then some other server decided (correctly) that the LF was not the end of line, so they considered the Message-ID missing. But others did that, and then decided a new Message-ID since the article didn't have one of it's own. That left a corrupted header with two Message-IDs (of a sort). And that caused some servers to use the first Message-ID, and others to use the second. So, be sure to check the real articles for both the Message-IDs you have and make sure that neither of them is corrupted in some way like that. > Is there anything what can be done to avoid such effects ? > (more than detecting them on my side - and request the message > from another host - what I'm doing already) ? If you can document as a fact that it is happening, then report it to whoever is in control of the software and get them to fix it. > Would it be helpful to notify the admins of such hosts > - or do they have no options to "fix" it (I see no reason to annoy > them if they can't react properly). It wouldn't hurt. But if it's just a bug in the server code, then the admin isn't likely going to be able to do much on their own. > This "effect" might be also a reason for incompleteness on some > hosts - because a corrupt message-id database would prevent > a server from deciding properly what messages it already has. > Perhaps some of these servers are rejecting messages simply > because they believe that they have it already. > Then this "case" might be of general interest here. > (For improvement of Usenet Completeness :-). Possible, but you are drawing conclusions with far too little facts. Find out for sure what's going on first. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Delivery of wrong articles by some news-hosts
Author: Martin Kotulla
Date: Mon, 09 Sep 2002 09:21
Date: Mon, 09 Sep 2002 09:21
26 lines
2234 bytes
2234 bytes
Curt Welch wrote: > > I've never heard of a bug like that. But maybe there is some software > which does that on a regular basis if you are asking for articles > which have just expired. > It happens from time to time at Newsguy (maybe once a week in the non-binary groups I am interested in), and I don't think it's related to expiry. My software retrieves by article number and then checks if the Message-ID in the article matches the one in XOVER. At Newsguy, sometimes it doesn't. Also, related to that, Newsguy sometimes (once a month) doesn't separate messages correctly. Requesting one article gives you two, separated by a TAKETHIS (IIRC) command. Of course, you get two Message-IDs this way, and your software might or might not notice, depending whether you stop searching for the Message-ID as soon as you have the first one. Have never seen this bug with Supernews, Freenet, CIS-DFN, or Arcor/Nexgo. I don't have any experience with Newsfeeds (and I don't think I would want to). -Martin
Re: Delivery of wrong articles by some news-hosts
Author: BOUWSMA Beery
Date: Tue, 10 Sep 2002 15:38
Date: Tue, 10 Sep 2002 15:38
44 lines
3400 bytes
3400 bytes
Hail Cabal. %s wrote on %.3s, %lld Sep 1993 > Also, related to that, Newsguy sometimes (once a month) doesn't separate > messages correctly. Requesting one article gives you two, separated by a > TAKETHIS (IIRC) command. Of course, you get two Message-IDs this way, > and your software might or might not notice, depending whether you stop > searching for the Message-ID as soon as you have the first one. This is unrelated. If you see a `TAKETHIS' followed by headers of a new article, this is a problem which originated in transit upstream (or at worst into the box you read from). The site that bears responsibility for this would be the first one in the Path: header of the second part of the article. The site you read it from (Newsguy) bears no responsibility for this, and more than likely, will have the second article as well. This happens probably due to software that fails to re-insert the terminator (CRLF.CRLF) in stored articles, or which have their articles with embedded binary NULs truncated before being written to storage, or something. It can also happen if a site trying to feed is sending out an article in cyclical storage which gets overwritten as it's being sent (though in this case I don't think you'd see the `TAKETHIS'). The precise reason for this can probably be determined by whether the first article is present in its entirety or not, and I believe it's limited to one particular early version of software that is probably still in use at a site or two (the software I've used for transit is also based on this, though I've worked around this known problem by two methods). You don't get two message-IDs -- you get a message body that is longer than it should be. If you're parsing the whole body -- the only way to get the second as a candidate for a message ID -- for any occurrence of ``^Message-ID: <...'' then you are bound to be fooled by body text. Don't do that. Message-ID: <this.is.not.a.REAL.Mess@ge-ID.dammit> barry bouwsma, pedophile
Re: Delivery of wrong articles by some news-hosts
Author: Martin Kotulla
Date: Tue, 10 Sep 2002 16:25
Date: Tue, 10 Sep 2002 16:25
32 lines
2711 bytes
2711 bytes
BOUWSMA Beery wrote: > > This happens probably due to software that fails to re-insert > the terminator (CRLF.CRLF) in stored articles, or which have > their articles with embedded binary NULs truncated before being > written to storage, or something. It can also happen if a site > trying to feed is sending out an article in cyclical storage > which gets overwritten as it's being sent (though in this case > I don't think you'd see the `TAKETHIS'). Ah, thanks. That clears up things quite a bit for me. > You don't get two message-IDs -- you get a message body that is > longer than it should be. If you're parsing the whole body -- > the only way to get the second as a candidate for a message ID -- > for any occurrence of ``^Message-ID: <...'' then you are bound > to be fooled by body text. Don't do that. > Message-ID: <this.is.not.a.REAL.Mess@ge-ID.dammit> If it were only that easy ... I have seen too many messages with empty lines in the header, so my algorithm takes an empty line only as a message separator if it has already passed over Xref:, Path:, and Message-ID:. It is also prepared for the fact that Xref: and Path: might not appear at all in the message. Also, it always takes the first occurance of said tokens as the valid instances. This means that theoretically my method parses *a bit* into body text in extremely rare cases, but only for messages that are malformed anyway. -Martin
Re: Delivery of wrong articles by some news-hosts
Author: Curt Welch
Date: Tue, 10 Sep 2002 17:17
Date: Tue, 10 Sep 2002 17:17
24 lines
2286 bytes
2286 bytes
Martin Kotulla <mk999@gmx.de> wrote: > If it were only that easy ... I have seen too many messages with empty > lines in the header There's no such thing. A line with only spaces or tabs is not an empty line and is part of the header. A line with nothing on it is the end of the header. Always. It's impossible for it to "be in the header". Maybe the articles you are trying to parse have been corrupted by a newsreader which saves it in a bogus fashion? In that case, I can understand why your code is trying to reverse the corruption. But for real articles sent over an NNTP connection, there is no doubt or confusion about where the header ends. The first CR LF CR LF sequence marks the end of the header. The first CR LF is the last line of the header, and the next CR LF is the blank line between the header and the body. The rest of the article is body even if it "looks" like header and it would be very wrong to parse it as if it were a header. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Delivery of wrong articles by some news-hosts
Author: Curt Welch
Date: Tue, 10 Sep 2002 17:20
Date: Tue, 10 Sep 2002 17:20
20 lines
1986 bytes
1986 bytes
BOUWSMA Beery <usenet-pedophile@news.netscum.dyndns.dk> wrote: > Hail Cabal. > %s wrote on %.3s, %lld Sep 1993 > > > Also, related to that, Newsguy sometimes (once a month) doesn't > > separate messages correctly. Requesting one article gives you two, > > separated by a TAKETHIS (IIRC) command. > This is unrelated. If you see a `TAKETHIS' followed by headers > of a new article, this is a problem which originated in transit > upstream (or at worst into the box you read from). I believe I remeber tracking this bug back to them in the past. I think it is part of the software which newsguy uses for transit that's doing it. It might be a bug related to incorrect handling of NULs. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Delivery of wrong articles by some news-hosts
Author: Martin Kotulla
Date: Tue, 10 Sep 2002 17:45
Date: Tue, 10 Sep 2002 17:45
26 lines
2025 bytes
2025 bytes
Curt Welch wrote: > Martin Kotulla <mk999@gmx.de> wrote: > >>If it were only that easy ... I have seen too many messages with empty >>lines in the header > > > There's no such thing. > > A line with only spaces or tabs is not an empty line and is part of the > header. A line with nothing on it is the end of the header. Always. It's > impossible for it to "be in the header". Curt: Yes, of course, the articles are broken, and it seems this is nearly always an issue with broken newsreaders. The favorite, recurring theme seems to be line folding done wrong. My approach recovers nearly all these articles, with only artificially constructed articles being able to fool it. (so far, after 300 million messages parsed) -Martin
Re: Delivery of wrong articles by some news-hosts
Author: Russ Allbery
Date: Tue, 10 Sep 2002 17:56
Date: Tue, 10 Sep 2002 17:56
26 lines
2268 bytes
2268 bytes
Martin Kotulla <mk999@gmx.de> writes:
> If it were only that easy ... I have seen too many messages with empty
> lines in the header, so my algorithm takes an empty line only as a
> message separator if it has already passed over Xref:, Path:, and
> Message-ID:.
What do you mean by "empty line"?
If you mean a completely blank line, just a CRLF pair, then that's the end
of the headers. Period, full stop. You're not doing anyone any favors by
trying to parse beyond that point; you're just mangling articles for the
next person and allowing unparsable junk into your server.
If you mean a line that contains some whitespace but no non-whitespace
characters, that's legal RFC 822 syntax but illegal under RFC 2822 except
with the obsolete rules, so you may have to parse that as a continuation
line, depending on how generous you're willing to be in accepting some of
the more bizarre RFC 822 formations.
--
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: Delivery of wrong articles by some news-hosts
Author: Martin Kotulla
Date: Tue, 10 Sep 2002 18:53
Date: Tue, 10 Sep 2002 18:53
57 lines
3231 bytes
3231 bytes
Russ Allbery wrote:
>
> What do you mean by "empty line"?
>
A completely empty line, not something that contains whitespace.
Something like that:
From: dobos@ccsun.tuke.sk (Jozef Dobos)
Newsgroups: cz.comp.cstex
Subject: of Windows help system demo
Date: Mon, 2 Jul 2001 13:05:25 +0000 (UTC)
Organization: Czech Technical University
Lines: 1705
Sender: daemon@ns.felk.cvut.cz
Message-ID: <200107021305.f62D5NG31281@ns.felk.cvut.cz>
NNTP-Posting-Host: ns.felk.cvut.cz
X-Trace: ns.felk.cvut.cz 994079126 31296 147.32.80.9 (2 Jul 2001
13:05:26 GMT)
X-Complaints-To: usenet@ns.felk.cvut.cz
NNTP-Posting-Date: Mon, 2 Jul 2001 13:05:26 +0000 (UTC)
X-Received: from cs.felk.cvut.cz (cs.felk.cvut.cz [147.32.80.1])
by ns.felk.cvut.cz (8.11.3/8.9.3) with SMTP id f62D5NG31281
for <cz.comp.cstex.usenet@news.felk.cvut.cz>; Mon, 2 Jul 2001 15:05:23
+0200 (MET DST)
(envelope-from owner-csTeX@cs.felk.cvut.cz)
X-Received: by cs.felk.cvut.cz (MX V4.2 AXP) with SITE; Mon, 02 Jul 2001
15:05:21
EDT
X-Errors-To: owner-csTeX@cs.felk.cvut.cz
X-Listname: Czech and Slovak TeX-related mailing list
<csTeX@cs.felk.cvut.cz>
X-Precedence: bulk
X-To: csTeX@cs.felk.cvut.cz
Xref: spln cz.comp.cstex:8612
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Outlook Express 5.00.2014.211
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0056_01D0CCDD.B3CCDDE0"
Content-Transfer-Encoding: 7bit
To: undisclosed-recipients:;
> If you mean a completely blank line, just a CRLF pair, then that's the end
> of the headers. Period, full stop. You're not doing anyone any favors by
> trying to parse beyond that point; you're just mangling articles for the
> next person and allowing unparsable junk into your server.
>
No need to sweat. I'm not feeding anyone, this is an endpoint, and it's
not going into any NNTP server.
-Martin
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