🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84239

Re: Call for inncheck testing (INN 2.5.0 and above)

#84239
From: Florian Schlichting
Date: Mon, 08 Aug 2011 13:21
65 lines
3934 bytes
On 2011-07-14, Jeffrey M. Vinocur wrote:
> Florian Schlichting  <Florian.Schlichting@fu-berlin.de> wrote:
>>
>>Regarding patterns that span multiple lines: I decided not to support
>>strings spanning several lines, with or without backslashes, in
>>inncheck. The reason is that the different parsers deal with them in
>>different ways; it's next to impossible to support every quirk, and then
>>there are distant plans to standardize on a common config parser for all
>>of INN with yet a little different syntax, so I felt inncheck should
>>settle on the least common denominator ("if inncheck says it's correct,
>>it is correct, and it will be correct in the future").
>
> Fair enough.
>
> How about revising the warning message for unmatched
> double-quotes to note that inncheck may be producing a false
> positive?

I feel a bit at a loss on how to put this concisely but clearly.
Currently, inncheck complains like this:

/server/devel/server/etc/innfeed.conf:110: malformed line (runaway quote / empty pair of quotes?)

Would it be better (or way too verbose) to do it like this:

/server/devel/server/etc/innfeed.conf:110: possibly malformed line (runaway quote / empty pair of quotes? This might be ok for a value spanning multiple lines!)

Or should we rather leave the message as-is and put a note in the BUGS
section of the inncheck manpages?

Note that in cases where an option value spans more than two lines, i.e.
there is at least one line that doesn't even contain a single
double-quote, there will also be an error messages about an invalid option
name as well as one about a missing colon... So I think I tend to the
latter "solution" until INN one day transitions to the new config syntax
format:


--- a/doc/pod/inncheck.pod
+++ b/doc/pod/inncheck.pod
@@ -132,6 +132,11 @@ If the B<-f> and B<--perm> options are used together, along with B<-a> or
 some I<file> or I<file>B<=>I<path> arguments that refer to a file with
 a syntax problem, then the output will no longer be valid input for a shell.
 
+B<inncheck> currently does not correctly understand option values spanning
+multiple lines. If you get error messages about runaway quotes, you either have
+to ignore them and check the correctness of the relevant lines yourself, or
+merge the value into a single line.
+
 =head1 HISTORY
 
 Written by Brendan Kehoe <brendan@cygnus.com> and Rich Salz
--- a/scripts/inncheck.in
+++ b/scripts/inncheck.in
@@ -148,7 +148,7 @@ get_config_word
                     if (!@res);
 
                 if (!@res) {
-                    eprint "$file:$line: malformed line (runaway quote / empty pair of quotes?)\n";
+                    eprint "$file:$line: possibly malformed line (runaway quote / empty pair of quotes?)\n";
                     last;
                 }
 

Florian
Technical Details
Message-ID: <9aa67aF9d2U2@mid.uni-berlin.de>
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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin2!goblin.stu.neva.ru!xlned.com!feeder3.xlned.com!feeder.news-service.com!fu-berlin.de!uni-berlin.de!not-for-mail
References: <iv2io4$56g$1@news.trigofacile.com> <iv5ts8$n4e$1@puck.litech.org> <97pl66Fo8dU1@mid.uni-berlin.de> <ivlgfi$n2d$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <9aa67aF9d2U2@mid.uni-berlin.de>
Subject: Re: Call for inncheck testing (INN 2.5.0 and above)
Date: Mon, 08 Aug 2011 13:21:46 +0000
From: Florian Schlichting <Florian.Schlichting@fu-berlin.de>
References: <iv2io4$56g$1@news.trigofacile.com> <iv5ts8$n4e$1@puck.litech.org> <97pl66Fo8dU1@mid.uni-berlin.de> <ivlgfi$n2d$1@puck.litech.org>
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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin2!goblin.stu.neva.ru!xlned.com!feeder3.xlned.com!feeder.news-service.com!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.nntp
Organization: Freie Universitaet Berlin
Lines: 65
X-Trace: news.uni-berlin.de
 mQ90iUG+oqcFJ68TT6FFUgTCNEiHf2eL4vWLuY6MIypLArhUqQyrO3
User-Agent: slrn/pre1.0.0-18 (Linux)