🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
11 messages
11 total messages Started by Thomas Anderson Wed, 13 Jan 2010 15:47
body via article ID and current selected group
#82567
Author: Thomas Anderson
Date: Wed, 13 Jan 2010 15:47
61 lines
3443 bytes
I am having a problem with a particular server. I don't know server 
software, but here is the scenario.

clip from an nzb file:

<file poster="blabla@fake-emailaddress.tk.tk (Furby1203)" date="1262947938" 
subject="James Last [01/33] - &quot;James Last.par2&quot; yEnc (1/1)">
<groups>
	<group>alt.binaries.boneless</group>
	<group>alt.binaries.ftd</group>
</groups>
<segments>
	<segment bytes="19011" 
number="1">part1of1.QgWH3iJLSSJbDjKOKQ09@powerpost2000AA.local</segment>
</segments>
</file>



Here is a telnet log attempting to download article described in nzb:

------------------------------ Working, no group manually via telnet 
------------------------------------------

### Some authentication stuff first ###
281 Authentication Accepted, 49510276471 Bytes remaining                                                
MODE READER                                                                                             
200 Sure!                                                                                               
body <part1of1.QgWH3iJLSSJbDjKOKQ09@powerpost2000AA.local>                                              
222 0 <part1of1.QgWH3iJLSSJbDjKOKQ09@powerpost2000AA.local> body                                        

=ybegin part=1 line=128 size=17572 name=James Last.par2
=ypart begin=1 end=17572 
### Lots of data ###

------------------------------ Not working, ftd group manually via telnet 
------------------------------------------

281 Authentication Accepted, 49510238251 Bytes remaining
MODE READER
200 Sure!
group alt.binaries.ftd
211 2311981 12146185 114659113 alt.binaries.ftd
body <part1of1.QgWH3iJLSSJbDjKOKQ09@powerpost2000AA.local>
430 No such article

note: works if the group is set to the other one from 
nzb(alt.binaries.boneless)




So what I am guessing is going on here is that the post has not made it 
completely or has been removed from the "ftd" group. Reading RFC 3977 has 
made me think that because the post is in the currently selected group that 
the server is trying to return the article number of a post that has a 
messed up entry in the current group. Is this reasonable? Server is broken 
right? Is there a way to unset the current group, make it invalid like right 
at connection without disconnecting and reconnecting? Maybe I need to group 
to some obscure group before getting a body via article ID. I don't like 
that either. Any suggestions?
Re: body via article ID and current selected group
#82572
Author: Julien ÉLIE
Date: Wed, 13 Jan 2010 18:23
37 lines
2484 bytes
Hi Thomas,

> group alt.binaries.ftd
> 211 2311981 12146185 114659113 alt.binaries.ftd
> body <part1of1.QgWH3iJLSSJbDjKOKQ09@powerpost2000AA.local>
> 430 No such article
>
> Server is broken right?

Yes.


> Is there a way to unset the current group, make it invalid like right
> at connection without disconnecting and reconnecting?

There is only one way to make the current group invalid:  negotiating
a security layer.
It can be done via authentication (AUTHINFO SASL using a mechanism
with a security layer) or encryption (STARTTLS).
However, STARTTLS cannot be used after AUTHINFO.

As you are already authenticated, you cannot make the current group
invalid without disconnecting and reconnecting.


> Maybe I need to group
> to some obscure group before getting a body via article ID.

Don't you have the possibility to never use GROUP?  Only requests
by message-IDs?

-- 
Julien ÉLIE

« Il n'y a pas moyen de contenter ceux qui veulent savoir le pourquoi
  des pourquoi. » (Leibniz) 
Re: body via article ID and current selected group
#82571
Author: D. Stussy
Date: Wed, 13 Jan 2010 21:51
38 lines
2523 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:hil32h$hqc$1@news.trigofacile.com...
> Hi Thomas,
> > group alt.binaries.ftd
> > 211 2311981 12146185 114659113 alt.binaries.ftd
> > body <part1of1.QgWH3iJLSSJbDjKOKQ09@powerpost2000AA.local>
> > 430 No such article
> >
> > Server is broken right?
>
> Yes.

Are you certain?  The article could have been cancelled or expired.

> > Is there a way to unset the current group, make it invalid like right
> > at connection without disconnecting and reconnecting?
>
> There is only one way to make the current group invalid:  negotiating
> a security layer.
> It can be done via authentication (AUTHINFO SASL using a mechanism
> with a security layer) or encryption (STARTTLS).
> However, STARTTLS cannot be used after AUTHINFO.
>
> As you are already authenticated, you cannot make the current group
> invalid without disconnecting and reconnecting.

Changing groups doesn't do it?  ;-)

Such does make the current group before the command invalid.  Granted,
there's a new current group after the command (if it succeeds).

> > Maybe I need to group
> > to some obscure group before getting a body via article ID.
>
> Don't you have the possibility to never use GROUP?  Only requests
> by message-IDs?

Re: body via article ID and current selected group
#82573
Author: Julien ÉLIE
Date: Wed, 13 Jan 2010 22:35
41 lines
2705 bytes
Hi D. Stussy,

>> > group alt.binaries.ftd
>> > 211 2311981 12146185 114659113 alt.binaries.ftd
>> > body <part1of1.QgWH3iJLSSJbDjKOKQ09@powerpost2000AA.local>
>> > 430 No such article
>> >
>> > Server is broken right?
>>
>> Yes.
>
> Are you certain?  The article could have been cancelled or expired.

I was relying on Thomas' remark:

    note: works if the group is set to the other one from
    nzb(alt.binaries.boneless)


>> As you are already authenticated, you cannot make the current group
>> invalid without disconnecting and reconnecting.
>
> Changing groups doesn't do it?  ;-)
>
> Such does make the current group before the command invalid.  Granted,
> there's a new current group after the command (if it succeeds).

Thomas wanted to "unset the current group, making it invalid like right
at connection without disconnecting and reconnecting".  This cannot
be achieved by a GROUP command.  Changing groups does not lead to
that special case of invalid group.


P.-S.:  I hope your overview rebuild went fine.

-- 
Julien ÉLIE

« Il est idiot de monter une côte à bicyclette
  quand il suffit de se retourner pour la descendre. » 
Re: body via article ID and current selected group
#82575
Author: D. Stussy
Date: Thu, 14 Jan 2010 01:30
44 lines
2761 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:hilhqt$vf9$1@news.trigofacile.com...
> Hi D. Stussy,
> >> > group alt.binaries.ftd
> >> > 211 2311981 12146185 114659113 alt.binaries.ftd
> >> > body <part1of1.QgWH3iJLSSJbDjKOKQ09@powerpost2000AA.local>
> >> > 430 No such article
> >> >
> >> > Server is broken right?
> >>
> >> Yes.
> >
> > Are you certain?  The article could have been cancelled or expired.
>
> I was relying on Thomas' remark:
>
>     note: works if the group is set to the other one from
>     nzb(alt.binaries.boneless)

OK.

> >> As you are already authenticated, you cannot make the current group
> >> invalid without disconnecting and reconnecting.
> >
> > Changing groups doesn't do it?  ;-)
> >
> > Such does make the current group before the command invalid.  Granted,
> > there's a new current group after the command (if it succeeds).
>
> Thomas wanted to "unset the current group, making it invalid like right
> at connection without disconnecting and reconnecting".  This cannot
> be achieved by a GROUP command.  Changing groups does not lead to
> that special case of invalid group.
>
> P.-S.:  I hope your overview rebuild went fine.

It's on its way.  It takes more than a week since I have about 100M+
articles in the spool.

I do hav some groups [now] excluded via the "ovgrouppat" pattern.
Previously, I thought that just specifying excluded patterns in newsfeeds
(for overchan) was enough, but apparently, it wasn't.

Re: body via article ID and current selected group
#82578
Author: Thomas Anderson
Date: Thu, 14 Jan 2010 03:46
53 lines
3219 bytes
Thanks for the input. I changed some code around to analyze the command and 
determine if it has articleID or article number and issue the group command 
only for article numbers (should have been this way anyway!). This should 
minimize my problems with this server. If I learn something more, I will 
post back. Thanks again.



D. Stussy wrote:

> "Julien �LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
> news:hilhqt$vf9$1@news.trigofacile.com...
>> Hi D. Stussy,
>> >> > group alt.binaries.ftd
>> >> > 211 2311981 12146185 114659113 alt.binaries.ftd
>> >> > body <part1of1.QgWH3iJLSSJbDjKOKQ09@powerpost2000AA.local>
>> >> > 430 No such article
>> >> >
>> >> > Server is broken right?
>> >>
>> >> Yes.
>> >
>> > Are you certain?  The article could have been cancelled or expired.
>>
>> I was relying on Thomas' remark:
>>
>>     note: works if the group is set to the other one from
>>     nzb(alt.binaries.boneless)
> 
> OK.
> 
>> >> As you are already authenticated, you cannot make the current group
>> >> invalid without disconnecting and reconnecting.
>> >
>> > Changing groups doesn't do it?  ;-)
>> >
>> > Such does make the current group before the command invalid.  Granted,
>> > there's a new current group after the command (if it succeeds).
>>
>> Thomas wanted to "unset the current group, making it invalid like right
>> at connection without disconnecting and reconnecting".  This cannot
>> be achieved by a GROUP command.  Changing groups does not lead to
>> that special case of invalid group.
>>
>> P.-S.:  I hope your overview rebuild went fine.
> 
> It's on its way.  It takes more than a week since I have about 100M+
> articles in the spool.
> 
> I do hav some groups [now] excluded via the "ovgrouppat" pattern.
> Previously, I thought that just specifying excluded patterns in newsfeeds
> (for overchan) was enough, but apparently, it wasn't.
Re: body via article ID and current selected group
#82580
Author: Julien ÉLIE
Date: Thu, 14 Jan 2010 07:18
18 lines
2229 bytes
Hi D. Stussy,

> I do hav some groups [now] excluded via the "ovgrouppat" pattern.
> Previously, I thought that just specifying excluded patterns in newsfeeds
> (for overchan) was enough, but apparently, it wasn't.

That's strange.
Do you then have overview entries that were never fed by overchan?
(I assume that useoverchan is set to true in inn.conf.)
I do not see where they could have come from...

-- 
Julien ÉLIE

« Un dictionnaire est comme une montre ; il vaut mieux en avoir un
  que pas du tout, mais le meilleur n'est jamais tout à fait exact. »
  (Georges-Bernard Shaw) 
Overview - was Re: body via article ID and current selected group
#82579
Author: D. Stussy
Date: Thu, 14 Jan 2010 09:37
56 lines
4158 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:himggp$t1f$1@news.trigofacile.com...
> Hi D. Stussy,
> > I do hav some groups [now] excluded via the "ovgrouppat" pattern.
> > Previously, I thought that just specifying excluded patterns in
newsfeeds
> > (for overchan) was enough, but apparently, it wasn't.
>
> That's strange.
> Do you then have overview entries that were never fed by overchan?
> (I assume that useoverchan is set to true in inn.conf.)
> I do not see where they could have come from...

Yes.  Useoverchan = true and tradindexed overview method.

I specifically excluded "control.cancel" (as a poisoned group) yet it
appears.  Similarly with some spamtrap groups like "alt.0d" yet they appear
also.  As "control.cancel" is quite a large group (my high mark >1.6M) yet
serves no purpose for readers, it makes sense to exclude it.  I had first
thought that excluding it from the overchan feed was enough.  However, I
was apparently wrong.

I note that when rebuilding via makehistory ("-O -x"), it should accept the
mask from "ovgrouppat" (but of course ignores the pattern fed to overchan
from newsfeeds).  However, with the group listed [negatively] in
"ovgrouppat", it still has non-empty overview files created eventually, and
similarly with the other non-special groups.  The reappearances appear to
be new messages, so they're not likely from makehistory's operation (else
old messages would be included).

I also note that overview files are not cleared off when groups are
removed.  (I understand the reasoning for this - so groups could reappear
if needed.)  SO, I've been cleaning off overview files for groups not
carried and for those which are excluded by my overview masks.  That's how
i have noticed their reappearance (and the error in the source).

Here is my pattern (truncated):
ovgrouppat:     "[a-z]*,@control.c[am]*,@*.0d,@...."
(no other wildmats containing brackets; all poisoned)

"control.cancel" and "control.cmsg" (for the malformed control messages
from Taiwan/China) should be masked by the second entry, yet their files
exist and are non-empty.  In reviewing OVadd(), there appears no way of
adding an entry to the overview that bypasses the "ovgrouppat" (when
specified) unless the Xref: header specifies no groups (but then, it would
also skip OVadd() calls too).  As "alt.0d" is also created, bracketed
expressions aren't the problem.

I don't see the problem either.  The error in OVgroupmatch() isn't the
problem, as there's no subsequent positive-matching sub-hierarchy pattern
element.  For "control.cancel", default: wanted<-false; element 1:
wanted<-true; element 2: return false (or wanted<-false); element 3 and
later: no match (returns wanted = false).  As OVgroupmatch() = false,
"control.cancel" should not be stored in the overview, yet it is.

Re: Overview - was Re: body via article ID and current selected group
#82583
Author: Julien ÉLIE
Date: Thu, 14 Jan 2010 19:21
71 lines
4089 bytes
Hi D. Stussy,

> Here is my pattern (truncated):
> ovgrouppat:     "[a-z]*,@control.c[am]*,@*.0d,@...."
> (no other wildmats containing brackets; all poisoned)
>
> I don't see the problem either.  The error in OVgroupmatch() isn't the
> problem, as there's no subsequent positive-matching sub-hierarchy pattern
> element.  For "control.cancel", default: wanted<-false; element 1:
> wanted<-true; element 2: return false (or wanted<-false); element 3 and
> later: no match (returns wanted = false).  As OVgroupmatch() = false,
> "control.cancel" should not be stored in the overview, yet it is.

I've just tested and I cannot reproduce the issue.  The overview data
for the cancel article is *not* stored.  Do you have "control.cancel" in
the Xref: line of the retrievable article?

With:

ovgrouppat: "[a-z]*,@control.c[am]*,@*.0d"

200 news.trigofacile.com InterNetNews server INN 2.6.0 (20091229 prerelease) ready (transit mode)
IHAVE <hhdhdsdfhydsdhd8$zd3s8d$1@news.trigofacile.com>
335 Send it
Path: not-for-mail
From: =?ISO-8859-15?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid>
Newsgroups: trigofacile.test4
Subject: test ovpat
Control: cancel <aaa@news.trigofacile.com>
Date: Tue, 12 Jan 2010 21:37:55 +0100
Message-ID: <hhdhdsdfhydsdhd8$zd3s8d$1@news.trigofacile.com>
Mime-Version: 1.0
Content-Type: text/plain;
        format=flowed;
        charset="ISO-8859-15";
        reply-type=original
Content-Transfer-Encoding: 7bit

test
..
235 Article transferred OK
HEAD <hhdhdsdfhydsdhd8$zd3s8d$1@news.trigofacile.com>
221 0 <hhdhdsdfhydsdhd8$zd3s8d$1@news.trigofacile.com> head
Path: news.trigofacile.com!not-for-mail
From: =?ISO-8859-15?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid>
Newsgroups: trigofacile.test4
Subject: test ovpat
Control: cancel <aaa@news.trigofacile.com>
Date: Tue, 12 Jan 2010 21:37:55 +0100
Message-ID: <hhdhdsdfhydsdhd8$zd3s8d$1@news.trigofacile.com>
Mime-Version: 1.0
Content-Type: text/plain;
        format=flowed;
        charset="ISO-8859-15";
        reply-type=original
Content-Transfer-Encoding: 7bit
..
MODE READER
200 news.trigofacile.com InterNetNews NNRP server INN 2.6.0 (20091229 prerelease) ready (posting ok)
GROUP control.cancel
211 404 230871 231274 control.cancel
OVER 231275
423 No articles in 231275

-- 
Julien ÉLIE

« Un dictionnaire est comme une montre ; il vaut mieux en avoir un
  que pas du tout, mais le meilleur n'est jamais tout à fait exact. »
  (Georges-Bernard Shaw) 
Re: Overview - was Re: body via article ID and current selected group
#82590
Author: D. Stussy
Date: Fri, 15 Jan 2010 07:20
88 lines
5407 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:hinqs8$688$1@news.trigofacile.com...
> > Here is my pattern (truncated):
> > ovgrouppat:     "[a-z]*,@control.c[am]*,@*.0d,@...."
> > (no other wildmats containing brackets; all poisoned)
> >
> > I don't see the problem either.  The error in OVgroupmatch() isn't the
> > problem, as there's no subsequent positive-matching sub-hierarchy
pattern
> > element.  For "control.cancel", default: wanted<-false; element 1:
> > wanted<-true; element 2: return false (or wanted<-false); element 3 and
> > later: no match (returns wanted = false).  As OVgroupmatch() = false,
> > "control.cancel" should not be stored in the overview, yet it is.
>
> I've just tested and I cannot reproduce the issue.  The overview data
> for the cancel article is *not* stored.  Do you have "control.cancel" in
> the Xref: line of the retrievable article?

Yes.  I checked this before I posted.  It appears that makehistory isn't
adding anything to the overview for old articles already in the spool
(overview rebuild), but currently arriving articles are being added to
control.cancel.

Example:

07:15:38 snarked:/news/overview/c/c # grep ovgrouppat ~news/etc/inn.conf
ovgrouppat:
"[a-z]*,@control.c[am]*,@*.test.*,*.test.moderat*,@alt.*.alt.*,@fa.*,@*.0d,
@*.filters,@alt.sex.cancel,@spam"
07:15:45 snarked:/news/overview/c/c # grep -A1 overview ~news/etc/newsfeeds
overview!:*,@control.c[am]*,@*.test.*,*.test.moderat*,@alt.*.alt.*,@fa.*,@*
.0d,\

@*.filters,@alt.sex.cancel,@spam:P5,Tc,WnteO:/var/lib/news/bin/overchan
07:16:01 snarked:/news/overview/c/c # tail -n3 control.cancel.DAT
1626835 Cancel "UVJ80 http://www.weproduct.com ¥N¼g½פå¥N¼g PaperDoDo
±MÃD¥N°µ²έpSpss½Ķ ¥þ°êºӳդh½פåºô   PaperDoDo@weproduct.com
¥þ°ê³պӤh½פåºô  www.weproduct.com 1Y72Q"      qwqpmvtf@gmail.com
Fri, 15 Jan 2010 14:58:43 +0800
<vg40l59d9m1cinpuv8tkd3ccbgbivjgj0l@4ax.com> 959      1       Xref:
news.snarked.org control.cancel:1626835
1626836 Cancel "CM6SI http://www.weproduct.com ¥N¼g½פå¥N¼g PaperDoDo
±MÃD¥N°µ²έpSpss½Ķ ¥þ°êºӳդh½פåºô   PaperDoDo@weproduct.com
¥þ°ê³պӤh½פåºô  www.weproduct.com 026N3"      bfrodeuf@gmail.com
Fri, 15 Jan 2010 14:58:47 +0800
<3h40l5lbt21qln085rfv311ihplqdkrm0l@4ax.com> 992      1       Xref:
news.snarked.org control.cancel:1626836
1626837 Cancel "K6I23 http://www.weproduct.com ¥N¼g½פå¥N¼g PaperDoDo
±MÃD¥N°µ²έpSpss½Ķ ¥þ°êºӳդh½פåºô   PaperDoDo@weproduct.com
¥þ°ê³պӤh½פåºô  www.weproduct.com 9PV2D"      lgqlhnsk@gmail.com
Fri, 15 Jan 2010 14:54:59 +0800
<0a40l51e6j4dvtepa1ttmvk6gl2g3s1nh2@4ax.com> 1005     1       Xref:
news.snarked.org control.cancel:1626837
07:16:09 snarked:/news/overview/c/c # ~news/bin/grephistory
0a40l51e6j4dvtepa1ttmvk6gl2g3s1nh2@4ax.com
@030135410000000000000035788200000001@
07:16:32 snarked:/news/overview/c/c # ~news/bin/sm
@030135410000000000000035788200000001@
Path:
news.snarked.org!feeder.erje.net!newsfeed.straub-nv.de!news.linkpendium.com
!news.linkpendium.com!teleglobe.net!newsgate.cuhk.edu.hk!netnews!not-for-ma
il
From: lgqlhnsk@gmail.com
Newsgroups: tw.bbs.rec.pcgame
Subject: Cancel "K6I23 http://www.weproduct.com ¥N¼g½פå¥N¼g PaperDoDo
±MÃD¥N°µ²έpSpss½Ķ ¥þ°êºӳդh½פåºô   PaperDoDo@weproduct.com
¥þ°ê³պӤh½פåºô  www.weproduct.com 9PV2D"
Control: cancel <hio92q$4da$1@news.seed.net.tw>
Date: Fri, 15 Jan 2010 14:54:59 +0800
Organization: HiNetNews
Lines: 1
Message-ID: <0a40l51e6j4dvtepa1ttmvk6gl2g3s1nh2@4ax.com>
NNTP-Posting-Host: 122-124-32-229.dynamic.hinet.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: netnews.hinet.net 1263538484 18310 122.124.32.229 (15 Jan 2010
06:54:44 GMT)
X-Complaints-To: usenet@HiNetnews.hinet.net
NNTP-Posting-Date: Fri, 15 Jan 2010 06:54:44 +0000 (UTC)
X-Newsreader: Forte Agent 3.3/32.846
Xref: news.snarked.org control.cancel:1626837

-------------(end of article)----------------
The difference of "*" vs. "[a-z]*" in the two patterns is not significant
here.

Re: Overview - was Re: body via article ID and current selected group
#82593
Author: Julien ÉLIE
Date: Fri, 15 Jan 2010 21:04
17 lines
2357 bytes
Hi D. Stussy,

> overview!:*,@control.c[am]*,@*.test.*,*.test.moderat*,@alt.*.alt.*,@fa.*,@*.0d,\
> @*.filters,@alt.sex.cancel,@spam:P5,Tc,WnteO:/var/lib/news/bin/overchan

Hmm...  I believe your issue is related to the bug we fixed three weeks ago
about poison groups.  It will be committed to INN 2.5.2:

    http://inn.eyrie.org/trac/changeset/8860/trunk/innd/art.c

Could you please try that patch and see whether it solves the problem?

-- 
Julien ÉLIE

« Omnia uincit Amor et nos cedamus Amori. » (Virgile) 
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