🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79132

Re: inn-STABLE-20080614: Body of header is all blanks

#79132
From: Julien ÉLIE
Date: Tue, 17 Jun 2008 17:14
88 lines
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)
Technical Details
Message-ID: <g38reh$avi$1@news.trigofacile.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.trigofacile.com!not-for-mail
References: <80abhmh7zw.fsf@banana.shacknet.nu><80wskq4idn.fsf@banana.shacknet.nu><g36fft$vui$1@news.trigofacile.com><807icpdr7j.fsf@banana.shacknet.nu><g36m4r$9l8$1@news.trigofacile.com><80prqgmxq7.fsf@banana.shacknet.nu><g37knr$l4n$1@news.trigofacile.com> <80iqw81b4c.fsf@banana.shacknet.nu>

Show Full Headers
Complete Article Headers
Message-ID: <g38reh$avi$1@news.trigofacile.com>
Subject: Re: inn-STABLE-20080614: Body of header is all blanks
Date: Tue, 17 Jun 2008 19:14:52 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <80abhmh7zw.fsf@banana.shacknet.nu><80wskq4idn.fsf@banana.shacknet.nu><g36fft$vui$1@news.trigofacile.com><807icpdr7j.fsf@banana.shacknet.nu><g36m4r$9l8$1@news.trigofacile.com><80prqgmxq7.fsf@banana.shacknet.nu><g37knr$l4n$1@news.trigofacile.com> <80iqw81b4c.fsf@banana.shacknet.nu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 88
NNTP-Posting-Host: aaubervilliers-151-1-39-41.w83-112.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-15";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1213722898 11250 83.112.150.41 (17 Jun 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Tue, 17 Jun 2008 17:14:58 +0000 (UTC)
In-Reply-To: <80iqw81b4c.fsf@banana.shacknet.nu>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000