🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by D. Stussy Tue, 02 Dec 2008 07:58
Bug in INN support script mod-active
#79796
Author: D. Stussy
Date: Tue, 02 Dec 2008 07:58
13 lines
1558 bytes
In Mod-active, shouldn't the second "/S" in the lines with the literal
"newgroup" and "changegroups" be "/S+"?

Why?  In case an alias is given (i.e. "=some.group").  Otherwise, the
equals sign is put into the file by itself, making that group's entry
invalid.  There is no comment in the man-page indicating that the alias
directive is not acceptable for batch processing through this script.  I do
note that all other directives are a single character in length and are
thus unaffected.

(Lines 47 and 51 of the script - INN 2.4.5).

Re: Bug in INN support script mod-active
#79801
Author: Julien ÉLIE
Date: Tue, 02 Dec 2008 17:19
13 lines
1573 bytes
Hi D. Stussy,

> In Mod-active, shouldn't the second "/S" in the lines with the literal
> "newgroup" and "changegroups" be "/S+"?

Sure.  Thanks!

-- 
Julien ÉLIE

« Un sourire coûte moins cher que l'électricité
  mais donne autant de lumière. » (Abbé Pierre) 
Re: Bug in INN support script mod-active
#79864
Author: D. Stussy
Date: Thu, 11 Dec 2008 20:16
34 lines
2393 bytes
I don't know if this is a defect or intentional:  It is possible to
add groups via the mod-active script that have invalid characters in
their names.

I can see the merit of accepting invalid group names by the script
itself - for the rmgroup (and perhaps the changegroups) operation(s).
However, should this be allowed for the newgroup operation?  I have
noted bogus group names that contain "&", ";", and "@" showing up in
my $pathlog"/unwanted.log" file, so apparently people are also using
such bad groups.

About line 69-70:

for (sort keys %toadd) {
  $add = "$_ 0000000000 0000000001 $toadd{$_}\n";

Insert this somewhere near there (inside the loop):

  next if $_ != ~/[a-z0-9._+-]*/;  (or ending "*/i;" to add A-Z)

I think that's what we want; I'm not perl proficient.  I don't know if
we should allow capital letters too (since some groups do use them).
Of course, this doesn't check for other invalid issues (e.g. all
numeric component).

Maybe mod-active is only meant to take actsync output (and actsync
already filters for bad names) or checkgroups output (does checkgroups
filter for this?).

If the script is left "as is," then let's warn people in the manual
page that no syntax checking is performed on group names by the
script.

Re: Bug in INN support script mod-active
#79907
Author: Julien ÉLIE
Date: Sun, 21 Dec 2008 19:06
16 lines
1851 bytes
Hi D. Stussy,

> If the script is left "as is," then let's warn people in the manual
> page that no syntax checking is performed on group names by the
> script.

I have just mentioned it in the man page.  Thanks for having pointed
out that fact.
I do not think mod-active should do syntax checking.

-- 
Julien ÉLIE

« Un ami fidèle qui parle très bien votre langue et toutes
  les langues vivantes : le latin, le grec, le celte, etc. » (Astérix) 
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