🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
38 messages
38 total messages Started by *selah* Sat, 01 Jan 2000 00:00
slrn y2k bug?
#56179
Author: *selah*
Date: Sat, 01 Jan 2000 00:00
18 lines
883 bytes
We've been getting this message when starting slrn:

newsrc.time appears corrupt.
I expected to see see: NEWGROUPS yymmdd hhmmss GMT
I will patch the file up for you.

This is the newsrc.time file:

NEWGROUPS 1000101 163537 GMT

I tried changing it to 000101 but it seems that it gets changed back to
1000101 when I exit the program.


-- 
Remove nospam from address to reply.

Re: slrn y2k bug?
#56172
Author: John E. Davis
Date: Sat, 01 Jan 2000 00:00
20 lines
1602 bytes
On 1 Jan 2000 12:44:15 -0500, Carl Fink <carlf@panix.com>
wrote:
>I have now found three installations of slrn that as of January 1,
>2000, are showing the same flawed behavior: namely, they treat all
>groups as "new" and add them to the .jnewsrc file, and will not save
>changes to .slrnrc.  They also seem to be ignoring score files.

All I can suggest is that you upgrade to the newest version.  If you
still have problems, then run it via:

    slrn --nntp --debug slrn.log

Then exit the program an look at slrn.log.  This file woull show the
communication between the server and slrn.  Another person reported a
similar problem but he thinks it is a server problem because the
problem does not manifest itself with other servers.

--John

Re: slrn y2k bug?
#56174
Author: Carl Fink
Date: Sat, 01 Jan 2000 00:00
23 lines
1588 bytes
In <slrn86sund.7p1.davis@aluche.mit.edu> davis@space.mit.edu (John E. Davis) writes:

>All I can suggest is that you upgrade to the newest version.  If you
>still have problems, then run it via:

Easier said than done when I'm running it on my ISP's box, of course.  I'll
ask them to upgrade.

On my own box . . . well, I prefer to use Debian packages, rather than
compile my own.  Debian seems to be a bit behind in its slrn packaging.  If
I must, I shall.

>Another person reported a similar problem but he thinks it is a server
>problem because the problem does not manifest itself with other servers.

Actually, that was me.  I'm still puzzled, but no other news client is
having this problem.
-- 
Carl Fink		carlf@dm.net
Manager, Dueling Modems Computer Forum
<http://dm.net>

Re: slrn y2k bug?
#56176
Author: Dawn Owens-Nicholson
Date: Sat, 01 Jan 2000 00:00
15 lines
1160 bytes
Carl Fink wrote:
> On my home PC using Linux:  0.9.5.7
> On Panix's SunOS host:  0.9.5.4
> On Panix's netBSD hosts: 0.9.5.7
> On Enteract I don't know, but a friend using that system reports the
> same problem.
> 
> This is disturbing.  Anyone know a fix.

Yes--before reporting a bug with a piece of software, upgrade to the latest
version (in this case, compile slrn 0.9.6.2 with S-Lang B1.3.10) then
retest.  I've just run slrn 0.9.6.2 after Jan 1, 2000 and it appears to work
normally. 

Re: slrn y2k bug?
#56183
Author: Carl Fink
Date: Sat, 01 Jan 2000 00:00
32 lines
1521 bytes
In <slrn86sund.7p1.davis@aluche.mit.edu> davis@space.mit.edu (John E. Davis) writes:

>All I can suggest is that you upgrade to the newest version.

Done.  Had no effect.

> . . .  If you still have problems, then run it via:

>    slrn --nntp --debug slrn.log

Okay, done.  These lines look like the important ones:

<281 Ok
>XOVER
>

<412 Not in a newsgroup
>NEWGROUPS 000102 034520 GMT
>

<231 New newsgroups follow.
<soc.culture.asturies 9836 9747 y

etc.  Is the news server misinterpreting the 000102 as coming before,
say, December 1999?  I'm getting this behavior from both innd and an
NT server of some sort.  Annoying.
-- 
Carl Fink		carlf@dm.net
Manager, Dueling Modems Computer Forum
<http://dm.net>

Re: slrn y2k bug?
#56192
Author: Albert Koellner
Date: Sat, 01 Jan 2000 00:00
15 lines
1077 bytes
Carl Fink <carlf@panix.com> wrote:
[....]
> On my home PC using Linux:  0.9.5.7
> On Panix's SunOS host:  0.9.5.4
> On Panix's netBSD hosts: 0.9.5.7
> On Enteract I don't know, but a friend using that system reports the
> same problem.

Here: 0.9.6.2, no problems at all.

> This is disturbing.  Anyone know a fix.

Um, ever thought of upgrading to a *new* version?

Re: slrn y2k bug?
#56194
Author: Carl Fink
Date: Sat, 01 Jan 2000 00:00
22 lines
1407 bytes
In <slrn86sblt.poo.soma@amanda.dorsai.org> soma@nospam.dorsai.org (*selah*) writes:

I have now found three installations of slrn that as of January 1,
2000, are showing the same flawed behavior: namely, they treat all
groups as "new" and add them to the .jnewsrc file, and will not save
changes to .slrnrc.  They also seem to be ignoring score files.

Versions:

On my home PC using Linux:  0.9.5.7
On Panix's SunOS host:  0.9.5.4
On Panix's netBSD hosts: 0.9.5.7
On Enteract I don't know, but a friend using that system reports the
same problem.

This is disturbing.  Anyone know a fix.
-- 
Carl Fink		carlf@dm.net
Manager, Dueling Modems Computer Forum
<http://dm.net>

Re: slrn y2k bug?
#56084
Author: Tuuli Tuominen
Date: Sun, 02 Jan 2000 00:00
23 lines
2258 bytes
On 02 Jan 2000 13:49:13 -0800, Russ Allbery wrote:
>NEWGROUPS will never return groups other than those listed in
>active.times, and people generally don't copy their active.times file over
>from old installations and usually don't initialize it when setting up an
>initial active file.  So if INN is displaying everything in active.times,
>which I believe is the form of the bug, then you'll only see those
>newsgroups created since the last time it was cleared.

Oh. Of course. Being somewhat over-protective of the db files when upgrading
from one machine to the next one, I didn't think of that. Thanks.
By the way, was the NEWNEWS bug supposed to affect all the versions prior to
2.2.2 or only 2.2.1? I tested on installation of 1.7.2 and it kind of hung..
of course, it may be that it just didn't have NEWNEWS enabled.

Followups set to news.software.nntp

Tuuli.
-- 
Historia on aina selkeit� suoria linjoja.
Tulevaisuus taas on pelkk�� spagettia.
		- V. Rauste 11.11.1999

Re: slrn y2k bug?
#56202
Author: *selah*
Date: Sun, 02 Jan 2000 00:00
47 lines
2035 bytes
I tried upgrading to the newest slrn version 0.9.6.2, and now it's having
the same problem of thinking all newgroups are new and downloading them
every time I start slrn.

This is the slrn.log


<200 enews3.newsguy.com InterNetNews NNRP server INN 1.4x101 20-Sep-99
ready (posting ok).  >MODE READER

>

<200 lacy.pathlink.com InterNetNews NNRP server INN 1.4x101 20-Sep-99
ready (posting ok).  >XOVER

>

<412 Not in a newsgroup
>NEWGROUPS 000102 070526 GMT
>


On 1 Jan 2000 22:08:47 GMT, John E. Davis <davis@space.mit.edu> wrote:
>On 1 Jan 2000 12:44:15 -0500, Carl Fink <carlf@panix.com>
>wrote:
>>I have now found three installations of slrn that as of January 1,
>>2000, are showing the same flawed behavior: namely, they treat all
>>groups as "new" and add them to the .jnewsrc file, and will not save
>>changes to .slrnrc.  They also seem to be ignoring score files.
>
>All I can suggest is that you upgrade to the newest version.  If you
>still have problems, then run it via:
>
>    slrn --nntp --debug slrn.log
>
>Then exit the program an look at slrn.log.  This file woull show the
>communication between the server and slrn.  Another person reported a
>similar problem but he thinks it is a server problem because the
>problem does not manifest itself with other servers.
>
>--John


-- 
Remove nospam from address to reply.

Re: slrn y2k bug?
#56210
Author: John E. Davis
Date: Sun, 02 Jan 2000 00:00
11 lines
1212 bytes
On 1 Jan 2000 21:52:10 -0500, Carl Fink <carlf@panix.com>
wrote:
>Actually, that was me.  I'm still puzzled, but no other news client is
>having this problem.

No, it was someone else.  He informed me a short while ago that the
problem was with the server using an old version of INN.

--John

Re: slrn y2k bug?
#56212
Author: Russ Allbery
Date: Sun, 02 Jan 2000 00:00
19 lines
1688 bytes
J Moreno <planb@newsreaders.com> writes:

> What do the earlier versions of INN and C News do with the input?  It
> could be there wouldn't be any error, just the full group list
> (everything since 1920, at least for the next 12 years).

Earlier versions of C News (or whatever the software specifically is; I
forget if the reader stuff is also actually the NNTP reference
implementation rather than C News proper) produce a syntax error, since
the input string is checked against the length of the date string it's
expecting.

Older INN versions checked the length against 6, at least as of 1.5.1, so
they too should return syntax errors.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: slrn y2k bug?
#56214
Author: Jim West
Date: Sun, 02 Jan 2000 00:00
27 lines
1849 bytes
In article <slrn86sund.7p1.davis@aluche.mit.edu>, John E. Davis wrote:
>On 1 Jan 2000 12:44:15 -0500, Carl Fink <carlf@panix.com>
>wrote:
>>I have now found three installations of slrn that as of January 1,
>>2000, are showing the same flawed behavior: namely, they treat all
>>groups as "new" and add them to the .jnewsrc file, and will not save
>>changes to .slrnrc.  They also seem to be ignoring score files.
>
>All I can suggest is that you upgrade to the newest version.  If you
>still have problems, then run it via:
>
>    slrn --nntp --debug slrn.log
>
>Then exit the program an look at slrn.log.  This file woull show the
>communication between the server and slrn.  Another person reported a
>similar problem but he thinks it is a server problem because the
>problem does not manifest itself with other servers.

Just another data point...I also get the problem with one news server but
not with another. This is with slrn-0.9.6.2 and slang-1.3.10.
-- 
James C. West (Jim)                       jwest@okstate.edu
Associate Professor                       jwest@emag.ecen.okstate.edu
Electrical and Computer Engineering
Oklahoma State University

Re: slrn y2k bug?
#56215
Author: Russ Allbery
Date: Sun, 02 Jan 2000 00:00
26 lines
2193 bytes
Tuuli Tuominen <tuuli.tuominen@helsinki.fi> writes:
> Russ Allbery wrote:

>> It's possible.  I'm running 1.7.2 here and it's working fine.  We've
>> had reports that most versions of INN will accept and propagate
>> messages with a year of 1900, since it's corrected to be a year of 2000
>> internally; whether this is a bug or just being generous in what
>> articles one accepts is somewhat in the eye of the beholder.

> It doesn't seem to be that simple. I tested by telnetting into the nntp
> port of a 1.5.1 I know and doing newgroups 000101 000001 and got only a
> few thousand hipcrime groups and some others, but definitely not the
> whole group list. And I _know_ those people haven't patched anything by
> themselves.

NEWGROUPS will never return groups other than those listed in
active.times, and people generally don't copy their active.times file over
from old installations and usually don't initialize it when setting up an
initial active file.  So if INN is displaying everything in active.times,
which I believe is the form of the bug, then you'll only see those
newsgroups created since the last time it was cleared.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: slrn y2k bug?
#56219
Author: Russ Allbery
Date: Sun, 02 Jan 2000 00:00
27 lines
1596 bytes
enCycLoPedic <boojum@attglobal.net> writes:

> Here's the relevant part of a debug log.

> <200 enews3.newsguy.com InterNetNews NNRP server INN 1.4x101 20-Sep-99 
> ready (posting ok).

That version of INN has a Y2K problem that was fixed somewhere around 1.5,
I believe.

> <412 Not in a newsgroup
>> NEWGROUPS 000102 030933 GMT
>> 

> <231 New newsgroups follow.
> [~10000 groups deleted]

That's an INN bug.  It's reading 00 as 1900 instead of 2000 like it
should.  The NEWGROUPS command itself has a Y2K problem in the
specification, unfortunately, as the wire protocol calls for a two-digit
year, so news clients have to send 00 for 2000 and it's the responsibility
of the server to interpret that correctly.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: slrn y2k bug?
#56220
Author: J. Moreno
Date: Sun, 02 Jan 2000 00:00
36 lines
2613 bytes
Russ Allbery <rra@stanford.edu> wrote:

> J Moreno <planb@newsreaders.com> writes:
> > Russ Allbery <rra@stanford.edu> wrote:
> 
> >> That's an INN bug.  It's reading 00 as 1900 instead of 2000 like it
> >> should.  The NEWGROUPS command itself has a Y2K problem in the
> >> specification, unfortunately, as the wire protocol calls for a
> >> two-digit year, so news clients have to send 00 for 2000 and it's the
> >> responsibility of the server to interpret that correctly.
> 
> > I don't think that's a Y2k bug, but rather a Y2.1k bug (the spec
> > actually says to interpret 00 as 2000, which is obviously incorrect).
> > Still, if you ignore that it's not hard to write it so that a 2 digit
> > year works just fine from now on (as long as you aren't more than a
> > century out of date), if the year is larger than the current year assume
> > it came from the last century.
> 
> One can just fix the server to support four-digit years as well, and
> eventually we can stop dealing with the issue.  *wry grin*

True enough.

> I believe INN has supported four digit years here for a little while, and
> at least some of the C News patches floating around support them as well.
> It may be at the point where clients could send a four digit year and then
> retry with a two-digit year iff they get a syntax error.

What do the earlier versions of INN and C News do with the input?  It
could be there wouldn't be any error, just the full group list
(everything since 1920, at least for the next 12 years).

-- 
John Moreno

Re: slrn y2k bug?
#56221
Author: Russ Allbery
Date: Sun, 02 Jan 2000 00:00
19 lines
1597 bytes
Dawn Owens-Nicholson <bluemoon@ux6.cso.uiuc.edu> writes:
> Russ Allbery wrote:

>> That version of INN has a Y2K problem that was fixed somewhere around
>> 1.5, I believe.

> I'm guessing it was fixed after 1.5.1 because I found a news server with
> the same problem and it's running "INN 1.5.1 17-Dec-1996".

It's possible.  I'm running 1.7.2 here and it's working fine.  We've had
reports that most versions of INN will accept and propagate messages with
a year of 1900, since it's corrected to be a year of 2000 internally;
whether this is a bug or just being generous in what articles one accepts
is somewhat in the eye of the beholder.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: slrn y2k bug?
#56228
Author: Russ Allbery
Date: Sun, 02 Jan 2000 00:00
29 lines
2293 bytes
greg <greg@apple2.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> Earlier versions of C News (or whatever the software specifically is; I
>> forget if the reader stuff is also actually the NNTP reference
>> implementation rather than C News proper) produce a syntax error, since
>> the input string is checked against the length of the date string it's
>> expecting.

> I thought C News was obsolete, along with all the stupid limits it set.

I hear it's the default news server shipped with Corel's version of Linux.
C News is actually quite nice for a very small server, since it's a lot
more approachable from a code perspective, and even for the person who can
read and modify shell scripts given how little of it is binary.

> Upgrade inertia is not a valid reason to allow a bug to continue to
> exist.  I thought we'd be above the concept of bug-for-bug compatibility
> by now.

Bug-for-bug compatibility is one thing; talking a wire protocol that's in
violation of the last published NNTP standard is another.  Using
four-digit dates violates RFC 977.  I can readily understand why reader
authors would be hesitant to make that leap.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: slrn y2k bug?
#56231
Author: Tuuli Tuominen
Date: Sun, 02 Jan 2000 00:00
24 lines
2141 bytes
On 02 Jan 2000 11:47:58 -0800, Russ Allbery wrote:
>Dawn Owens-Nicholson <bluemoon@ux6.cso.uiuc.edu> writes:
>> I'm guessing it was fixed after 1.5.1 because I found a news server with
>> the same problem and it's running "INN 1.5.1 17-Dec-1996".
>
>It's possible.  I'm running 1.7.2 here and it's working fine.  We've had
>reports that most versions of INN will accept and propagate messages with
>a year of 1900, since it's corrected to be a year of 2000 internally;
>whether this is a bug or just being generous in what articles one accepts
>is somewhat in the eye of the beholder.

It doesn't seem to be that simple. I tested by telnetting into the nntp port
of a 1.5.1 I know and doing newgroups 000101 000001 and got only a few
thousand hipcrime groups and some others, but definitely not the whole group
list. And I _know_ those people haven't patched anything by themselves.

Our new 2.2.2 is running just fine, though. :-)

Tuuli.
-- 
"Ivanova is always right. I will listen to Ivanova. I will not ignore
 Ivanova's recommendations. Ivanova is God."

Re: slrn y2k bug?
#56235
Author: J. Moreno
Date: Sun, 02 Jan 2000 00:00
36 lines
2192 bytes
Russ Allbery <rra@stanford.edu> wrote:

> enCycLoPedic <boojum@attglobal.net> writes:
> 
> > Here's the relevant part of a debug log.
> 
> > <200 enews3.newsguy.com InterNetNews NNRP server INN 1.4x101 20-Sep-99
> > ready (posting ok).
> 
> That version of INN has a Y2K problem that was fixed somewhere around 1.5,
> I believe.
> 
> > <412 Not in a newsgroup
> >> NEWGROUPS 000102 030933 GMT
> >> 
> 
> > <231 New newsgroups follow.
> > [~10000 groups deleted]
> 
> That's an INN bug.  It's reading 00 as 1900 instead of 2000 like it
> should.  The NEWGROUPS command itself has a Y2K problem in the
> specification, unfortunately, as the wire protocol calls for a two-digit
> year, so news clients have to send 00 for 2000 and it's the responsibility
> of the server to interpret that correctly.

I don't think that's a Y2k bug, but rather a Y2.1k bug (the spec
actually says to interpret 00 as 2000, which is obviously incorrect).
Still, if you ignore that it's not hard to write it so that a 2 digit
year works just fine from now on (as long as you aren't more than a
century out of date), if the year is larger than the current year assume
it came from the last century.

-- 
John Moreno

Re: slrn y2k bug?
#56237
Author: Dawn Owens-Nicholson
Date: Sun, 02 Jan 2000 00:00
8 lines
1028 bytes
Russ Allbery wrote:
> That version of INN has a Y2K problem that was fixed somewhere around 1.5,
> I believe.

I'm guessing it was fixed after 1.5.1 because I found a news server with the
same problem and it's running "INN 1.5.1 17-Dec-1996".

Re: slrn y2k bug?
#56240
Author: Christian Perrier
Date: Sun, 02 Jan 2000 00:00
23 lines
1792 bytes
Carl Fink <carlf@panix.com> wrote :

>On my own box . . . well, I prefer to use Debian packages, rather than
>compile my own.  Debian seems to be a bit behind in its slrn packaging.  If
>I must, I shall.

I'm not a Debian developer, but I try to be a good Debian user...So,
if the y2k bug you noticed is confirmed to be a 0.9.5.7 bug which is
solved by upgrading to 0.9.6.2, this will be forwarded to the slrn
Debian package maintainer so that he may release a 0.9.6.2 package
for slink (Debian 2.1).

Debian have released several y2k patches for slink already. Look at
them....

You can do the bug report by yourself too, if you want : just
install the "bug" Debian package (if it exists in the "stable"
branch : I'm not sure of this) and then type "bug" at the command
line. Then follow instructions.... (sorry if you're already very
aware of all this...).


Re: slrn y2k bug?
#56241
Author: enCycLoPedic
Date: Sun, 02 Jan 2000 00:00
42 lines
1593 bytes
On 1 Jan 2000 22:08:47 GMT, John E. Davis <davis@space.mit.edu> wrote:

>All I can suggest is that you upgrade to the newest version.  If you
>still have problems, then run it via:
>
>    slrn --nntp --debug slrn.log

Here's the relevant part of a debug log.


<200 enews3.newsguy.com InterNetNews NNRP server INN 1.4x101 20-Sep-99 
ready (posting ok).
>MODE READER
>

<480 Authentication required for command
>AUTHINFO USER xxxxxxxxx
>

<381 PASS required
>AUTHINFO PASS xxxxxxxxx
>

<281 Ok
>XOVER
>

<412 Not in a newsgroup
>NEWGROUPS 000102 030933 GMT
>

<231 New newsgroups follow.
[~10000 groups deleted]

-- 

A true friend is one who overlooks your failures and tolerates your 
successes.  (Doug Larson)


Re: slrn y2k bug?
#56246
Author: Michael George
Date: Sun, 02 Jan 2000 00:00
36 lines
2187 bytes
On 1 Jan 2000, Carl Fink <carlf@panix.com> wrote:
>In soma@nospam.dorsai.org (*selah*) writes:
>
>I have now found three installations of slrn that as of January 1,
>2000, are showing the same flawed behavior: namely, they treat all
>groups as "new" and add them to the .jnewsrc file, and will not save
>changes to .slrnrc.  They also seem to be ignoring score files.
>
>Versions:
>
>On my home PC using Linux:  0.9.5.7
>On Panix's SunOS host:  0.9.5.4
>On Panix's netBSD hosts: 0.9.5.7
>On Enteract I don't know, but a friend using that system reports the
>same problem.

I have Red Hat Linux 6.1 running with 0.9.5.7 and I don't have this problem.
Maybe it's not a deal with your software, but the server's...

-Michael

-- 
Reply address is completely bogus.  The real address is:
	GEORGE <at symbol> MINTCITY <dot> COM
but in lowercase, not UPPERCASE
--
No, my friend, the way to have good and safe government, is not to trust it
all to one, but to divide it among the many, distributing to every one exactly
the functions he is competent to.  It is by dividing and subdividing these
republics from the national one down through all its subordinations, until it
ends in the administration of every man's farm by himself; by placing under
every one what his own eye may superintend, that all will be done for the
best.
                -- Thomas Jefferson, to Joseph Cabell, 1816

Re: slrn y2k bug?
#56248
Author: Jim West
Date: Sun, 02 Jan 2000 00:00
55 lines
2647 bytes
In article <slrn86vf3p.fcp.jwest@emag.ecen.okstate.edu>, Jim West wrote:
>In article <slrn86sund.7p1.davis@aluche.mit.edu>, John E. Davis wrote:
>>On 1 Jan 2000 12:44:15 -0500, Carl Fink <carlf@panix.com>
>>wrote:
>>>I have now found three installations of slrn that as of January 1,
>>>2000, are showing the same flawed behavior: namely, they treat all
>>>groups as "new" and add them to the .jnewsrc file, and will not save
>>>changes to .slrnrc.  They also seem to be ignoring score files.
>>
>>All I can suggest is that you upgrade to the newest version.  If you
>>still have problems, then run it via:
>>
>>    slrn --nntp --debug slrn.log
>>
>>Then exit the program an look at slrn.log.  This file woull show the
>>communication between the server and slrn.  Another person reported a
>>similar problem but he thinks it is a server problem because the
>>problem does not manifest itself with other servers.
>
>Just another data point...I also get the problem with one news server but
>not with another. This is with slrn-0.9.6.2 and slang-1.3.10.

Sorry, forgot to append the first several lines of the log. They follow.
THe server is running INN 1.4 (installed on 10 Dec, 99!), which someone 
above said is not y2k compliant.  I will email the server maintainer.


<200 news1.newsguy.com InterNetNews NNRP server INN 1.4x103 10-Dec-99 
ready (posting ok).
>MODE READER
>


(deletions on username and password lines)

<281 Ok
>XOVER
>

<412 Not in a newsgroup
>NEWGROUPS 000102 204423 GMT
>

<231 New newsgroups follow.
<soc.culture.asturies 9841 9747 y
<comp.org.user-groups.management 380 381 y
<comp.org.user-groups.apcug 272 271 y
<comp.org.user-groups.newsletters 548 544 y
-- 
James C. West (Jim)                       jwest@okstate.edu
Associate Professor                       jwest@emag.ecen.okstate.edu
Electrical and Computer Engineering
Oklahoma State University

Re: slrn y2k bug?
#56252
Author: Russ Allbery
Date: Sun, 02 Jan 2000 00:00
27 lines
2189 bytes
J Moreno <planb@newsreaders.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> That's an INN bug.  It's reading 00 as 1900 instead of 2000 like it
>> should.  The NEWGROUPS command itself has a Y2K problem in the
>> specification, unfortunately, as the wire protocol calls for a
>> two-digit year, so news clients have to send 00 for 2000 and it's the
>> responsibility of the server to interpret that correctly.

> I don't think that's a Y2k bug, but rather a Y2.1k bug (the spec
> actually says to interpret 00 as 2000, which is obviously incorrect).
> Still, if you ignore that it's not hard to write it so that a 2 digit
> year works just fine from now on (as long as you aren't more than a
> century out of date), if the year is larger than the current year assume
> it came from the last century.

One can just fix the server to support four-digit years as well, and
eventually we can stop dealing with the issue.  *wry grin*  I believe INN
has supported four digit years here for a little while, and at least some
of the C News patches floating around support them as well.  It may be at
the point where clients could send a four digit year and then retry with a
two-digit year iff they get a syntax error.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: slrn y2k bug?
#56294
Author: John E. Davis
Date: Sun, 02 Jan 2000 00:00
34 lines
2146 bytes
On 1 Jan 2000 22:56:14 -0500, Carl Fink <carlf@panix.com>
wrote:
><412 Not in a newsgroup
>>NEWGROUPS 000102 034520 GMT

According to the protocol, this is the correct command.  I believe
that the problem is with your server.

>etc.  Is the news server misinterpreting the 000102 as coming before,
>say, December 1999?  I'm getting this behavior from both innd and an
>NT server of some sort.  Annoying.

I believe it is.  RFC 977 states:
#v+
3.7.1.  NEWGROUPS

   NEWGROUPS date time [GMT] [<distributions>]

   A list of newsgroups created since <date and time> will be listed in
   the same format as the LIST command.

   The date is sent as 6 digits in the format YYMMDD, where YY is the
   last two digits of the year, MM is the two digits of the month (with
   leading zero, if appropriate), and DD is the day of the month (with
   leading zero, if appropriate).  The closest century is assumed as
   part of the year (i.e., 86 specifies 1986, 30 specifies 2030, 99 is
   1999, 00 is 2000).
#v-
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis     Cambridge, MA  02139-4307

Re: slrn y2k bug?
#56256
Author: greg
Date: Mon, 03 Jan 2000 00:00
20 lines
2213 bytes
In article <1e3tsdh.dhzw77p2qc82N%planb@newsreaders.com>,
planb@newsreaders.com (J. B. Moreno) wrote:

> I don't think so -- most/all current software will have been replaced,
> with the lesson learned; when dealing with two digit years, you need to
> take into account the century.

And here I was thinking the lesson was to always deal with all digits of 
the year (currently 4).

Isn't there a working group for an update to NNTP already?  If so, what 
do they say on this issue?

-- 
 --     ---                          <greg@apple2.com>
  --   -- -- ------------------------------------------------------------------
   -- --   ---              <http://www.war-of-the-worlds.org/>
    ---         (Not associated with Quake Clan Deimos, War Machine of Mars)

Re: slrn y2k bug?
#56265
Author: J. B. Moreno
Date: Mon, 03 Jan 2000 00:00
69 lines
4360 bytes
Curt Welch <curt@kcwc.com> wrote:

> planb@newsreaders.com (J. B. Moreno) wrote:
> > <greg@apple2.com> wrote:
> >
> > > planb@newsreaders.com (J. B. Moreno) wrote:
> > >
> > > > I don't think so -- most/all current software will have been
> > > > replaced, with the lesson learned; when dealing with two digit years,
> > > > you need to take into account the century.
> > >
> > > And here I was thinking the lesson was to always deal with all digits
> > > of the year (currently 4).
> >
> > No, that's clumsy when dealing with people.
> 
> This is a computer protocol we are talking about.

And as a protocol, that's fine -- but he didn't say that when computers
communicate they should use all of the digits but that they should
ALWAYS be used.

> > > Isn't there a working group for an update to NNTP already?  If so,
> > > what do they say on this issue?
> >
> >           A list of newsgroups created since <date and time> MUST be
> >           listed in the same format as the LIST command.
> >
> >           The date is sent as 6 or 8 digits in the format [XX]YYMMDD,
> >           where XX is the first two digits of the year, YY is the last
> >           two digits of the year, MM is the two digits of the month
> >           (with leading zero, if appropriate), and DD is the day of
> >           the month (with leading zero, if appropriate). If the first
> >           two digits of the year are not specified, the year is to be
> >           taken from the current century if YY is smaller than or
> >           equal to the current year, otherwise the year is from the
> >           previous century.
> 
> This is the same wording as the August 1998 document I have in front of
> me.
> 
> DATE/NEWNEWS/NEWGROUPS should all use 4+ digit years so there's no
> confusion.  It's stupid to argue that the 2 digit format should remain the
> "correct" way to do it.  Clients and servers will just have to deal with
> the backward compatibility issues for awhile (including the 100->2000 bug
> caused but trying to do a "%2d" of tm->tm_year on Unix) as shown at the
> beginning of this thread.

As I said in another post, that sounds reasonable and the only problem
is that I expect existing clients to have little reason to change this
(of course in another hundred years that may not matter, just so long as
any future published standard makes it clear that 4 digit is the way to
go).

-snip-
> But this just points out how the 2 digit year makes things a lot more
> complex than they need to be and for no good reason.  In addition to the
> complexity, it's also a typical class of bugs that tend not to be found
> until years after the code is written.  Clearly, everyone should just
> switch to a 4 digit year format so we don't have to deal with this again
> for 8K years.

Like I said -- use a 1 digit year and it's solved forever, if you
haven't checked in over a decade, then get the full list.

-- 
John B. Moreno

Re: slrn y2k bug?
#56276
Author: J. B. Moreno
Date: Mon, 03 Jan 2000 00:00
39 lines
2820 bytes
<greg@apple2.com> wrote:

> planb@newsreaders.com (J. B. Moreno) wrote:
> 
> > I don't think so -- most/all current software will have been replaced,
> > with the lesson learned; when dealing with two digit years, you need to
> > take into account the century.
> 
> And here I was thinking the lesson was to always deal with all digits of
> the year (currently 4).

No, that's clumsy when dealing with people.

> Isn't there a working group for an update to NNTP already?  If so, what
> do they say on this issue?

            A list of newsgroups created since <date and time> MUST be
            listed in the same format as the LIST command.

            The date is sent as 6 or 8 digits in the format [XX]YYMMDD,
            where XX is the first two digits of the year, YY is the last
            two digits of the year, MM is the two digits of the month
            (with leading zero, if appropriate), and DD is the day of
            the month (with leading zero, if appropriate). If the first
            two digits of the year are not specified, the year is to be
            taken from the current century if YY is smaller than or
            equal to the current year, otherwise the year is from the
            previous century.

Which is silly -- if you're more than a decade out of synch it's better
to simply get all of the new groups.  Instead of expanding it to 8
digits they should have shrunk it to 5.

(That last is only half serious, the other half is sardonic).

-- 
John B. Moreno

Re: slrn y2k bug?
#56284
Author: greg
Date: Mon, 03 Jan 2000 00:00
25 lines
2540 bytes
In article <1e3u3xu.egjhnwlhbi3kN%planb@newsreaders.com>,
planb@newsreaders.com (J. B. Moreno) wrote:
><greg@apple2.com> wrote:
>>planb@newsreaders.com (J. B. Moreno) wrote:

>>> I don't think so -- most/all current software will have been 
>>> replaced, with the lesson learned; when dealing with two digit 
>>> years, you need to take into account the century.

>> And here I was thinking the lesson was to always deal with all 
>> digits of the year (currently 4).

> No, that's clumsy when dealing with people.

I have no qualms about shutting them down if they aren't compliant and 
performing some radical reprogramming.  Abbreviating the year is not 
acceptable behavior, be ye technological or biological.

-- 
 --     ---                          <greg@apple2.com>
  --   -- -- ------------------------------------------------------------------
   -- --   ---              <http://www.war-of-the-worlds.org/>
    ---         (Not associated with Quake Clan Deimos, War Machine of Mars)

Re: slrn y2k bug?
#56286
Author: J. B. Moreno
Date: Mon, 03 Jan 2000 00:00
25 lines
2071 bytes
Russ Allbery <rra@stanford.edu> wrote:

> J Moreno <planb@newsreaders.com> writes:
> 
> > What do the earlier versions of INN and C News do with the input?  It
> > could be there wouldn't be any error, just the full group list
> > (everything since 1920, at least for the next 12 years).
> 
> Earlier versions of C News (or whatever the software specifically is; I
> forget if the reader stuff is also actually the NNTP reference
> implementation rather than C News proper) produce a syntax error, since
> the input string is checked against the length of the date string it's
> expecting.
> 
> Older INN versions checked the length against 6, at least as of 1.5.1, so
> they too should return syntax errors.

OK, then it sounds reasonable -- the major problem being that it
requires clients that are trying to switch to do the checking and
there's little incentive for them to do so.

-- 
John B. Moreno

Re: slrn y2k bug?
#56290
Author: Remco Gerlich
Date: Mon, 03 Jan 2000 00:00
33 lines
2208 bytes
Brian McCrary wrote in news.software.readers:
> I too, am having the same problems with slrn after rolling over to y2k.
> While I'm certainly not a programmer, it looks like these lines may be of
> as issue in the slrnpull.c file, starting at line 205:
> 
> static void write_timestamp (FILE *fp) /*{{{*/
> {
>    struct tm *tms;
>    time_t tloc;
>    
>    time (&tloc);
>    tms = localtime (&tloc);
>    
>    fprintf (fp, "%02d/%02d/%04d %02d:%02d:%02d ",
>             tms->tm_mon + 1, tms->tm_mday, 1900 + tms->tm_year,
>             tms->tm_hour, tms->tm_min, tms->tm_sec);
>    
> This looks like to me it's writing out it's inewsrc.time file incorrectly,
> then complaining about it, and when trying to fix it, writes it out wrong
> again.  Am I way off here?  Or maybe this is a simple fix?

This looks to me like the perfectly normal way to write out a date
to a file in mm/dd/yyyy hh:mm:ss format. Correctly.

"%04d" means print 4 digits, "tms->tm_year" is the number of years since
1900, "1900 + tms->tm_year" is the current year.

Where do you see it writing it out twice and complaining?!
-- 
Remco Gerlich,  scarblac@pino.selwerd.cx
Hi! I'm a .sig virus! Join the fun and copy me into yours!

Re: slrn y2k bug?
#56292
Author: Curt Welch
Date: Mon, 03 Jan 2000 00:00
78 lines
4948 bytes
planb@newsreaders.com (J. B. Moreno) wrote:
> <greg@apple2.com> wrote:
>
> > planb@newsreaders.com (J. B. Moreno) wrote:
> >
> > > I don't think so -- most/all current software will have been
> > > replaced, with the lesson learned; when dealing with two digit years,
> > > you need to take into account the century.
> >
> > And here I was thinking the lesson was to always deal with all digits
> > of the year (currently 4).
>
> No, that's clumsy when dealing with people.

This is a computer protocol we are talking about.

> > Isn't there a working group for an update to NNTP already?  If so, what
> > do they say on this issue?
>
>             A list of newsgroups created since <date and time> MUST be
>             listed in the same format as the LIST command.
>
>             The date is sent as 6 or 8 digits in the format [XX]YYMMDD,
>             where XX is the first two digits of the year, YY is the last
>             two digits of the year, MM is the two digits of the month
>             (with leading zero, if appropriate), and DD is the day of
>             the month (with leading zero, if appropriate). If the first
>             two digits of the year are not specified, the year is to be
>             taken from the current century if YY is smaller than or
>             equal to the current year, otherwise the year is from the
>             previous century.

This is the same wording as the August 1998 document I have in front of
me.

DATE/NEWNEWS/NEWGROUPS should all use 4+ digit years so there's no
confusion.  It's stupid to argue that the 2 digit format should remain the
"correct" way to do it.  Clients and servers will just have to deal with
the backward compatibility issues for awhile (including the 100->2000 bug
caused but trying to do a "%2d" of tm->tm_year on Unix) as shown at the
beginning of this thread.

There's just too much confusion about the "correct" way to interpret a 2
digit year as has been seen in this thread.  Even when the RFCs try to
document it, people get confused about it.

And, as seen in the quote above, the RFCs don't always pick the correct
solution anyway.  The 100 year "window" specified by the 2 year format
needs to have at least _some_ of that period extend into the future to deal
with the problems caused when the client and server clocks out out of sync.

For example, a client (with it's timzone set wrong), could send a 00 year
to a server when the server still thinks it's 1999.  According to the RFC,
the server _should_ interpret that date as 1900.  And that causes the
server to dump a huge list of articles to the client - a very bogus thing
to do.

Now, if the client only used the DATE command from the server to determine
the date (the correct thing to do), then this is even less likely to
happen, but could still happen if the clock on the server was changed just
at the right (wrong) time (say for Y2K testing).

The better algorithm here would be to just make the 100 year window
centered over the current time.  It's not like we need that extra 50 years
into the past for NEWNEWS commands.

But this just points out how the 2 digit year makes things a lot more
complex than they need to be and for no good reason.  In addition to the
complexity, it's also a typical class of bugs that tend not to be found
until years after the code is written.  Clearly, everyone should just
switch to a 4 digit year format so we don't have to deal with this again
for 8K years.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: slrn y2k bug?
#56293
Author: Brian McCrary
Date: Mon, 03 Jan 2000 00:00
30 lines
1674 bytes
On 1 Jan 2000 22:56:14 -0500, Carl Fink <carlf@panix.com> wrote:
>In <slrn86sund.7p1.davis@aluche.mit.edu> davis@space.mit.edu (John E. Davis) writes:
>
>>All I can suggest is that you upgrade to the newest version.
>
>Done.  Had no effect.

I too, am having the same problems with slrn after rolling over to y2k.
While I'm certainly not a programmer, it looks like these lines may be of
as issue in the slrnpull.c file, starting at line 205:

static void write_timestamp (FILE *fp) /*{{{*/
{
   struct tm *tms;
   time_t tloc;
   
   time (&tloc);
   tms = localtime (&tloc);
   
   fprintf (fp, "%02d/%02d/%04d %02d:%02d:%02d ",
            tms->tm_mon + 1, tms->tm_mday, 1900 + tms->tm_year,
            tms->tm_hour, tms->tm_min, tms->tm_sec);
   
This looks like to me it's writing out it's inewsrc.time file incorrectly,
then complaining about it, and when trying to fix it, writes it out wrong
again.  Am I way off here?  Or maybe this is a simple fix?

Brian McCrary

Re: slrn y2k bug?
#56295
Author: J. B. Moreno
Date: Mon, 03 Jan 2000 00:00
49 lines
3044 bytes
<greg@apple2.com> wrote:

> In article <ylogb31you.fsf@windlord.stanford.edu>,
> Russ Allbery <rra@stanford.edu> wrote:
> >J Moreno <planb@newsreaders.com> writes:
> 
> >> What do the earlier versions of INN and C News do with the input?  It
> >> could be there wouldn't be any error, just the full group list
> >> (everything since 1920, at least for the next 12 years).
-snip-
> > Older INN versions checked the length against 6, at least as of 1.5.1, so
> > they too should return syntax errors.
> 
> And should also be replaced.

Why other than upgrade-itis?

> Upgrade inertia is not a valid reason to allow a bug to continue to 
> exist.  I thought we'd be above the concept of bug-for-bug compatibility
> by now.

I've not looked at the code, but there is no real reason to expect it to
have a bug -- no reason not too either, but that's not quite the same
thing.

> It's clear to me now that, in 100 years, we'll be dealing with the exact
> same problems again, except next time we won't be taking them a 
> seriously as they were this time around.  Y21H will be worse than Y2K
> because it can only be worse, and programmers won't have the convenient
> excuse of expensive memory to fall back on the next time.

I don't think so -- most/all current software will have been replaced,
with the lesson learned; when dealing with two digit years, you need to
take into account the century.
 
> It should be a felony to design any more software which can cause 
> centurial bugs, and criminal to allow Y2K bugs to continue to exist in
> any interoperating system.

"can cause centurial bugs"?  That's a rather sweeping statement.

RFC 977 has a century bug in the documentation, but if you ignore one
comment, the spec for NEWGROUPS is (as I said before) perfectly usable,
and bug free.

-- 
John B. Moreno

Re: slrn y2k bug?
#56297
Author: greg
Date: Mon, 03 Jan 2000 00:00
42 lines
3174 bytes
In article <ylogb31you.fsf@windlord.stanford.edu>,
Russ Allbery <rra@stanford.edu> wrote:
>J Moreno <planb@newsreaders.com> writes:

>> What do the earlier versions of INN and C News do with the input?  It
>> could be there wouldn't be any error, just the full group list
>> (everything since 1920, at least for the next 12 years).

> Earlier versions of C News (or whatever the software specifically is; I
> forget if the reader stuff is also actually the NNTP reference
> implementation rather than C News proper) produce a syntax error, since
> the input string is checked against the length of the date string it's
> expecting.

I thought C News was obsolete, along with all the stupid limits it set.

> Older INN versions checked the length against 6, at least as of 1.5.1, so
> they too should return syntax errors.

And should also be replaced.

Upgrade inertia is not a valid reason to allow a bug to continue to 
exist.  I thought we'd be above the concept of bug-for-bug compatibility 
by now.

It's clear to me now that, in 100 years, we'll be dealing with the exact 
same problems again, except next time we won't be taking them a 
seriously as they were this time around.  Y21H will be worse than Y2K 
because it can only be worse, and programmers won't have the convenient 
excuse of expensive memory to fall back on the next time.

It should be a felony to design any more software which can cause 
centurial bugs, and criminal to allow Y2K bugs to continue to exist in 
any interoperating system.

-- 
 --     ---                          <greg@apple2.com>
  --   -- -- ------------------------------------------------------------------
   -- --   ---              <http://www.war-of-the-worlds.org/>
    ---         (Not associated with Quake Clan Deimos, War Machine of Mars)

Re: slrn y2k bug?
#56342
Author: Sico Bruins
Date: Tue, 04 Jan 2000 00:00
22 lines
1500 bytes
In article <slrn86u0an.8jo.soma@amanda.dorsai.org>, *selah* wrote:

>I tried upgrading to the newest slrn version 0.9.6.2, and now it's having
>the same problem of thinking all newgroups are new and downloading them
>every time I start slrn.
>
>This is the slrn.log
>
>
><200 enews3.newsguy.com InterNetNews NNRP server INN 1.4x101 20-Sep-99
>ready (posting ok).  >MODE READER

[rest deleted for brevity]

INN 1.4 is probably where the problem is. I am using slrn 0.9.6.2
with a variety of news servers and don't have any Y2K problem.

Admittedly, I don't use slrnpull at all.

CU, Sico.

Re: slrn y2k bug?
#56358
Author: *selah*
Date: Tue, 04 Jan 2000 00:00
11 lines
959 bytes
Update on situation:

The people at newsguy.com seem to have upgraded their version of INN (they
told me they had fixed it but didn't mention what they did) and there is
no longer a problem with adding 1000 new groups each time you start a news
reader (we are using the newest version of slrn).

-- 
Remove nospam from address to reply.

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