🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55468

Corrupted articles from t-online.de - LF in headers issues

#55468
From: Curt Welch
Date: Tue, 04 Dec 2001 20:24
128 lines
7303 bytes
I've noticed my server has been rejecting some messages because they didn't
have a Message-ID when I received them.  When I added some debug code
to dump the article as received, I found the problem wasn't with the
Message-ID: header, but with the Lines: header that came before it which
  was terminated with only a LF instead of a CR LF.

Here's an example of what I've been receiving: (Path folded by me,
and ^M added to show which lines have CR LF pairs and which don't).

  Path: netnews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!
        newsfeed01.sul.t-online.de!t-online.de!news.netobjects.com!
        subtronics.com^M
  From: "turtle - <TNO>" <newsgroupsupport@gotfusion.com>^M
  Newsgroups: netobjects.fusionmx.gen-discuss^M
  Subject: Re: did ya miss me?^M
  Date: Mon, 3 Dec 2001 15:02:55 -0500^M
  Organization: --^M
  Lines: 191
  Message-ID: <3c0bdae6@subtronics.com>^M

That was from a peer running NNTPRelay which passed me the article
with a Lines: header that was terminated with only a line feed instead
of a CR LF pair.  My server requires a CR LF to end the header, so my
server thought the Message-ID was really part of the Lines: header,
so it rejected the article because it had no Message-ID: header.

A second version of the same article was passed to me from a peer runing
Diablo:

  Path: news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!
        newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!
        t-online.de!news.netobjects.com!subtronics.com^M
  From: "turtle - <TNO>" <newsgroupsupport@gotfusion.com>^M
  Newsgroups: netobjects.fusionmx.gen-discuss^M
  Subject: Re: did ya miss me?^M
  Date: Mon, 3 Dec 2001 15:02:55 -0500^M
  Organization: --^M
  Lines: 191^M
  essage-ID: <3c0bdae6@subtronics.com>^M

In this version of the article, the Lines: header has both a CR and a LF,
but the M from the Message-ID: header has been removed.  I'm guessing that
is a bug in the code which tried to fix the LF problem but ended up
overwriting the M in the processes.  I'm assuming this is a Diablo bug
because the diablo server that offered me the article "knew" it's correct
Message-ID, and if the Message-ID header had been corrupted by some other
server, diablo would never had offered me the article.

I then received a good copy of the article from this rather long path:

  Path: news2.newsreader.com!feed1.newsreader.com!portc03.blue.aol.com!
        uunet!dca.uu.net!ash.uu.net!npeer.kpnqwest.net!
        lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!
        newsfeed01.sul.t-online.de!t-online.de!
        news.netobjects.com!subtronics.com

I'm assuming that some server in that path managed to add the missing CR to
the Lines: header, or maybe the newsfeed00.sul.t-online.de server is the
one corrupting the articles since the above "good" version of the article
didn't pass though it.

I've received maybe 40 articles like this in the past few days, and the
only thing they seem to have in common is that they all share this segment
of path:

   newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de

They all have come from different servers, and were posted with different
newsreaders.  The only ones I'm seeing rejected are the ones where the
Message-ID follows the Lines: header, but I suspect more articles are
comming though with problems with the Lines: header as well, but the header
after it isn't as important, so it's not being rejected.

This points to multiple problems.

First, some server, probably something at t-oneline.de is messing up Lines:
headers as article pass though them.  That of course is not good.  I'm
guessing it's a bug in some code which is attempting to fix Lines: headers.
Anyone know the people that run the t-online.de servers? Anybody know what
software they use?

Second, it looks like the visi Diablo servers have a nasty little bug
in them where the first character from the next line is lost.  Is this
a general Diablo bug or just one in the version that visi is running? Joe?
Mike?

Second, what is the correct thing to do with these articles?  As it is,
with some servers passing these articles and some rejecting, and some
cleaning up the headers incorrectly, and some fixing the headers, there's a
lot of bandwidth being wasted as N copies of these articles are being
passed around and rejected.  I received at least 3 copies of the above
article for example.  For small text articles (which seems to be mostly
what I've seen this bug in so far), it's not all that much of a problem,
but if it starts to happen to huge multipart binary posts, that will waste
a lot of bandwidth.

There are multiple ways in which I could change my server to fix my
problem, but what is correct?  I can for example change the code for
parsing headers to allow them to end with only an LF.  I would then stop
rejecting the articles above and that would prevent me from getting
multiple copies of the same article sent to me.  But if I pass them along
un-changed to my peers, I would risk wasting bandwidth sending stuff that
they would then reject.  I could accept the article, but then not pass it
along.  But then my readers would not get to see any version of the
article.  Currently, they end up seeing the version which someone along the
path "fixed".  Or I could write code to "fix" these articles - which would
have the best results for this example, but which is clearly not the
"right" thing to do.

I wonder how all the other servers of the world deal with these?

It looks like NNTPRelay considers headers to end with an LF and is able to
pass the articles unchanged with LF or CR LF at the end of each header.
And the maxwell.syr.edu server seems to do the same.

I would have expected Diablo to change the LF to a CR LF but in this case,
it looks likes it's even more broken than that.

I haven't noticed any of these broken articles from my Cyclone peers, so
I'm guessing Cyclone is rejecting these articles.  But it might be fixing
them instead by changing the LF to a CR LF.  Anybody know?

What does INN do with these?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20011204152437.729$ch@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <20011204152437.729$ch@newsreader.com>
Subject: Corrupted articles from t-online.de - LF in headers issues
Date: Tue, 04 Dec 2001 20:24:37 +0000
From: curt@kcwc.com (Curt Welch)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com P5cogEs-dnxr0FLwQvgO_hB2=atQw+2geOYm@syeGC8hxqz2w=
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 127