🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
11 messages
11 total messages Started by Mediocrates Tue, 05 Oct 1999 00:00
slrnpull corrupting binaries?
#52706
Author: Mediocrates
Date: Tue, 05 Oct 1999 00:00
19 lines
1525 bytes
Here's a bit of a problem I'm hoping to get some help with. Using
slrnpull on some binary groups results in a percentage of mangled files,
ie using uudecode or uudeview result in jpg files that are
corrupt(premature end of jpeg file). Removing the .minmax file for a
group and re-running slrnpull results in the same articles being
corrupt, but downloading them directly from my ISP's newsserver with
netscape gives the jpg fully intact. This has been the case for the last
3 versions of slrnpull I've used, and was wondering if anyone had any
ideas?

		Thanks in advance,

				 Matt.


-- 
No problem is so large it can't be fit in somewhere.

Re: slrnpull corrupting binaries?
#52722
Author: jwk
Date: Tue, 05 Oct 1999 00:00
30 lines
2071 bytes
On Tue, 05 Oct 1999 10:43:16 +0930, Mediocrates
<Mediocrates@don'tbother.spammingme> wrote:
>Here's a bit of a problem I'm hoping to get some help with. Using
>slrnpull on some binary groups results in a percentage of mangled files,
>ie using uudecode or uudeview result in jpg files that are
>corrupt(premature end of jpeg file). Removing the .minmax file for a
>group and re-running slrnpull results in the same articles being
>corrupt, but downloading them directly from my ISP's newsserver with
>netscape gives the jpg fully intact. This has been the case for the last
>3 versions of slrnpull I've used, and was wondering if anyone had any
>ideas?
>
Are you sure the binaries are corrupted by slrnpull, or are they
unreadable by the stock decode option in slrn?
I've had some trouble with some titles like
song 0/9 part [1/11]
where the stock decode option would use 0/9 as numbering scheme instead
of 1/11, but it would be very strange indeed if slrnpull somehow
'forgot' some lines in the middle of the article.

Good luck,
Jurriaan

-- 
I meant, said Ipslore bitterly, what is there in this world that truly
makes living worth while?
Death thought about it. CATS, he said eventually, CATS ARE NICE.
        Terry Pratchett, Sourcery

Re: slrnpull corrupting binaries?
#52725
Author: Mediocrates
Date: Wed, 06 Oct 1999 00:00
49 lines
2954 bytes
jwk wrote:
> 
> On Tue, 05 Oct 1999 10:43:16 +0930, Mediocrates
> <Mediocrates@don'tbother.spammingme> wrote:
> >Here's a bit of a problem I'm hoping to get some help with. Using
> >slrnpull on some binary groups results in a percentage of mangled files,
> >ie using uudecode or uudeview result in jpg files that are
> >corrupt(premature end of jpeg file). Removing the .minmax file for a
> >group and re-running slrnpull results in the same articles being
> >corrupt, but downloading them directly from my ISP's newsserver with
> >netscape gives the jpg fully intact. This has been the case for the last
> >3 versions of slrnpull I've used, and was wondering if anyone had any
> >ideas?
> >
> Are you sure the binaries are corrupted by slrnpull, or are they
> unreadable by the stock decode option in slrn?
> I've had some trouble with some titles like
> song 0/9 part [1/11]
> where the stock decode option would use 0/9 as numbering scheme instead
> of 1/11, but it would be very strange indeed if slrnpull somehow
> 'forgot' some lines in the middle of the article.
> 
> Good luck,
> Jurriaan
> 
> --
> I meant, said Ipslore bitterly, what is there in this world that truly
> makes living worth while?
> Death thought about it. CATS, he said eventually, CATS ARE NICE.
>         Terry Pratchett, Sourcery

I'm not using slrn to read the articles. What I've been doing is pumping
the articles via slrnpull into inn (/var/spool/news/articles via
symlinks to there from /var/spool/slrnpull/news). What I mean when I say
the articles are corrupt is that running uudecode/uudeview on an article
say 114235 gives a jpg file that when viewed using xv gives the error
'premature end of jpeg file". The only way I can get the file downloaded
correctly is do it with netscape direct from my ISp's server.

      Cheers,

			Matt.


-- 
Many people feel that they deserve some kind of recognition for all the
bad things they haven't done.

Re: slrnpull corrupting binaries?
#52726
Author: Remco Gerlich
Date: Wed, 06 Oct 1999 00:00
22 lines
1894 bytes
Mediocrates <Mediocrates@don'tbother.spammingme> wrote:
> I'm not using slrn to read the articles. What I've been doing is pumping
> the articles via slrnpull into inn (/var/spool/news/articles via
> symlinks to there from /var/spool/slrnpull/news). What I mean when I say
> the articles are corrupt is that running uudecode/uudeview on an article
> say 114235 gives a jpg file that when viewed using xv gives the error
> 'premature end of jpeg file". The only way I can get the file downloaded
> correctly is do it with netscape direct from my ISp's server.

You know that images are usually posted in many parts (10 or so) and
that some readers hide that fact from you? What happens when you use
a newsreader on the spool, instead of trying to manually uudecode
and xv a single article?

-- 
Remco Gerlich,  scarblac@pino.selwerd.cx

   This is no way to be
     Man ought to be free      -- Ted Bundy
       That man should be me

Re: slrnpull corrupting binaries? - bug found!
#52728
Author: Lloyd Zusman
Date: Wed, 06 Oct 1999 00:00
69 lines
4198 bytes
removethis@gmx.net (ras2) writes:

> On 06 Oct 1999 10:30:59 -0400, Lloyd Zusman <ljz@asfast.com>
>  wrote in <ltd7us8st8.fsf@asfast.com>:
> 
> > I can corroborate that slrnpull does not cause leading periods on
> > lines it downloads to be doubled, since in more than a year of
> > regularly using it to download articles, including binaries (1/1,
> > multipart, whatever), I never saw it do that, and I never saw
> > that corruption problem with any of the thousands of binaries
> > that I processed in this manner.
> 
> hm. I can't quite figure out what is going on, but if you
> put a period at the start of a line and there's text on the
> lines above, slrn will pad it with another period. It seems
> to be removed again by either slrnpull or my server (Typhoon
> 1.1.8), though, as it's not there after downloading the post.

Because of the fact that the NNTP protocoal specifies that the "post"
command uses a single period to signal the end of a posted article,
any periods that stand alone on a line in an article need to be
escaped in some way to prevent the newsserver from prematurely
truncating the article.  Therefore, it's necessary that all news
clients that do posting escape lone periods within the bodies of news
articles.  Doubling this lone period is the accepted method for
escaping it.

Some newsservers un-double such periods when they store or deliver
articles, which is why you sometimes don't see them once the posted
article is read.

To play it safe, most software doubles leading periods on all lines
that get posted, not only lines which consist of lone periods.
And from looking into the source code of slrn, it appears that it,
too, is one of those pieces of software which doubles leading
periods on all lines that it posts.

Of course, as you mentioned, this posting behavior of slrn has nothing
to do with the issue that was reported by the person who is using
slrnpull to feed an INN spool, because in his case, slrnpull is
*reading* articles, not posting them, and hence, no doubling or
un-doubling is taking place within slrnpull used in this manner.


> Nothing seems to happen if you put a period on the first line
> of the post and (or?) the posts that slrn saves in the archive
> dir aren't padded.

I'm not sure why the first line of the post would be special, perhaps
the NNTP "post" command is smart enough to ignore a lone period as
the first line of an article, or perhaps something else is going
on.  As for why the articles in the spool directory aren't padded,
it seems like the periods have been previously un-doubled by the
newsserver.


> This doesn't necessarily have anything to do with the problem,
> I just noticed it after making a few tests.
> 
> .
  ^
By the way, this came through as a single period to me.


-- 
 Lloyd Zusman
 ljz@asfast.com

Re: slrnpull corrupting binaries? - bug found!
#52745
Author: Mediocrates
Date: Wed, 06 Oct 1999 00:00
118 lines
5145 bytes
Mediocrates wrote:
<SNIP>

I think I may have discovered a bug in slrnpull regarding uuencoded
data. Observe the ouput of diffing the article file created from
slrnpull and the same article downloaded via netscape from my ISP's
newsserver direct. The article in question was corrupt via slrnpull :

=========================================================================

*** /root/198053        Wed Oct  6 20:38:06 1999
--- /home/users/<CENSORED>/nsmail/1       Wed Oct  6 20:48:36 1999
***************
*** 1,3 ****
--- 1,4 ----
+ From - Wed Oct  6 20:45:49 1999
  From: Sully <sullyfilter@yahoo.com>
  Subject: <ShadowCat> Your SN CD1 Fills Day 1 of 2 (200, vfd) -
1181h043.jpg(1/1) 138614 bytes
  Organization: Sully's Net
***************
*** 12,17 ****
--- 13,20 ----
  NNTP-Posting-Date: Tue, 05 Oct 1999 14:26:20 PDT
  Path:
newsserver1.picknowl.com.au!nsw.nnrp.telstra.net!intgwlon.nntp.telstra.net!newsfeed.nyu.edu!attmtf!ip.att.net!remarQ-easT!supernews.com!remarQ.com!iad-peer.news.verio.net!news.verio.net!dca1-hub1.news.digex.net!intermedia!feed1.news.rcn.net!rcn!nntp.abs.net!newshub2.home.com!news.home.com!ha1.POSTED!not-for-mail
  Xref: newsserver1 alt.binaries.pictures.suze.repost:198053
+ X-Mozilla-Status: 8000
+ X-Mozilla-Status2: 00000000
  
  
  
***************
*** 3098,3104 ****
  MJ1H>STNE+H,O..JD^]4Z94QG)QL2==PE)G=O.2V],C'$;`Z``F]!$4564EZU
  M4SV6H"[1T=VJ;,!.U>7I^SKFT<L;]']H0T?-IADQF)51Q;<)'&Q8<77%,Q6,
  M:K]2J$T\RQ,S\PZU+@B,MNND0MZ^%%73Z1+U2NUN8V9E`?K,\X+RH#HN3!DA
! ..BG)"NNJ)ZP&\"QY/_]F,
  `
  end
  END --- CUT HERE --- Cut Here --- cut here --- 1181h043.jpg
--- 3101,3107 ----
  MJ1H>STNE+H,O..JD^]4Z94QG)QL2==PE)G=O.2V],C'$;`Z``F]!$4564EZU
  M4SV6H"[1T=VJ;,!.U>7I^SKFT<L;]']H0T?-IADQF)51Q;<)'&Q8<77%,Q6,
  M:K]2J$T\RQ,S\PZU+@B,MNND0MZ^%%73Z1+U2NUN8V9E`?K,\X+RH#HN3!DA
! .BG)"NNJ)ZP&\"QY/_]F,
  `
  end
  END --- CUT HERE --- Cut Here --- cut here --- 1181h043.jpg

=========================================================================

NOTE: the missing "." on the last line before the end of uuencoded data.

To prove it's not a coincidence here's another article comparison :

=========================================================================

*** /root/198060        Wed Oct  6 20:38:06 1999
--- /home/users/<CENSORED>/nsmail/3       Wed Oct  6 21:00:22 1999
***************
*** 1,3 ****
--- 1,4 ----
+ From - Wed Oct  6 20:55:11 1999
  From: Sully <sullyfilter@yahoo.com>
  Subject: <ShadowCat> Your SN CD1 Fills Day 1 of 2 (200, vfd) -
1273h053.jpg(1/1) 189239 bytes
  Organization: Sully's Net
***************
*** 12,17 ****
--- 13,20 ----
  NNTP-Posting-Date: Tue, 05 Oct 1999 14:31:50 PDT
  Path:
newsserver1.picknowl.com.au!nsw.nnrp.telstra.net!intgwlon.nntp.telstra.net!newsfeed.nyu.edu!news.idt.net!dca1-hub1.news.digex.net!intermedia!feed1.news.rcn.net!rcn!nntp.abs.net!newshub2.home.com!news.home.com!ha1.POSTED!not-for-mail
  Xref: newsserver1 alt.binaries.pictures.suze.repost:198060
+ X-Mozilla-Status: 8000
+ X-Mozilla-Status2: 00000000
  
  
  
***************
*** 4223,4229 ****
  M+EU/I6DR%"T[+!2J#+S;BI/O5.EU,9R<:%7'>'*3*MO.2W%(C'%+`Z``G%!$
  M454HS6JF>E*`NHZ.[5=,!.5>7I^G7-1RQOT?TA#1\VF&3&8E5'%MPD<;%AQ=
  MU%,Q6*;K]2J$T\RQ,S\PZU+@B,MNND0M[^RBKM]D%JM7:W,:7E0?K,\X+W(X
! ..+DP9(8IT1;KNB011_]DP
  `
  end
  END --- CUT HERE --- Cut Here --- cut here --- 1273h053.jpg
--- 4226,4232 ----
  M+EU/I6DR%"T[+!2J#+S;BI/O5.EU,9R<:%7'>'*3*MO.2W%(C'%+`Z``G%!$
  M454HS6JF>E*`NHZ.[5=,!.5>7I^G7-1RQOT?TA#1\VF&3&8E5'%MPD<;%AQ=
  MU%,Q6*;K]2J$T\RQ,S\PZU+@B,MNND0M[^RBKM]D%JM7:W,:7E0?K,\X+W(X
! .+DP9(8IT1;KNB011_]DP
  `
  end
  END --- CUT HERE --- Cut Here --- cut here --- 1273h053.jpg

=========================================================================


It seems in each case of a corrupted file it's missing a "." on the line
preceding 

`
end


Can anyone corroborate this?

				Matt.



-- 
There's no saint like a reformed sinner.

Re: slrnpull corrupting binaries?
#52749
Author: Mediocrates
Date: Wed, 06 Oct 1999 00:00
34 lines
2300 bytes
Remco Gerlich wrote:
<SNIP>
> You know that images are usually posted in many parts (10 or so) and
> that some readers hide that fact from you? What happens when you use
> a newsreader on the spool, instead of trying to manually uudecode
> and xv a single article?
> 
> --
> Remco Gerlich,  scarblac@pino.selwerd.cx
> 
>    This is no way to be
>      Man ought to be free      -- Ted Bundy
>        That man should be me

Since all the articles are pumped into inn, when I run netscape or any
newsreader and save the article, and then decode it or do a "save image
as", it still ends up corrupt(from my newsserver and directly from the
spool directory). This is for multipart and 1/1 articles.
This has been the case even with slrnpull version 0.9.5.5-1. I have
verified the jpg files with xv, compupic and Gimp and all report the
same decoded articles as being corrupt. I even tested to make sure it
wasn't uudeview/uudecode by saving files directly from my ISP's
newsserver thru netscape into the Drafts folder and then uudeviewing the
result, with no problem files, so I came to the conclusion that it must
be slrnpull.

			Cheers,

				Matt. 

-- 
There's no saint like a reformed sinner.

Re: slrnpull corrupting binaries? - bug found!
#52755
Author: Lloyd Zusman
Date: Wed, 06 Oct 1999 00:00
55 lines
3444 bytes
Mediocrates <Mediocrates@don'tbother.spammingme> writes:

> Mediocrates wrote:
> <SNIP>
> 
> I think I may have discovered a bug in slrnpull regarding uuencoded
> data. Observe the ouput of diffing the article file created from
> slrnpull and the same article downloaded via netscape from my ISP's
> newsserver direct. The article in question was corrupt via slrnpull :
> 
> [ ... diffs showing missing `.' snipped ... ]
> 
> It seems in each case of a corrupted file it's missing a "." on the line
> preceding 
> 
> `
> end
> 
> 
> Can anyone corroborate this?

I think the problem is not that slrnpull is removing a period, but
rather that INN is *adding* the extra period and then compensating in
some way for this when it serves up the article to news clients.  Old
mail/news transport agents sometimes used to do this to keep lines
that contain single leading periods from breaking ancient mail/news
clients.  This is a part of usenet antiquity that still is present in
much of the software that currently is in use, and I wouldn't be a bit
surprised if this behavior is built into INN in some way.

I can corroborate that slrnpull does not cause leading periods on
lines it downloads to be doubled, since in more than a year of
regularly using it to download articles, including binaries (1/1,
multipart, whatever), I never saw it do that, and I never saw
that corruption problem with any of the thousands of binaries
that I processed in this manner.

If indeed this period-doubling-and-later-undoubling behavior is
part of INN, then you won't be able to feed your INN spool
via slrnpull without you yourself causing the period doubling
to take place in exactly the way that INN expects.

I never used slrnpull to feed an INN spool, and based on what you're
reporting here, I now am sure that I'll never do that in the future.
However, I did use slrnpull to manage a local news spool that I have
successfully read via a number of newsreaders (Gnus, Netscape, tin,
xrn, and of course slrn), and as I mentioned, I never saw this problem
with any of the thousands of binaries I downloaded.


-- 
 Lloyd Zusman
 ljz@asfast.com

Re: slrnpull corrupting binaries? - bug found!
#52789
Author: Mediocrates
Date: Thu, 07 Oct 1999 00:00
33 lines
1844 bytes
ras2 wrote:
<SNIP>

The main problem is that it's adding the extra "." on the third to last
line in a random fashion, ie does it to a small percentage of articles.
What struck me as being more curious was that the third to last line in
each case didn't start with a "M" as you would expect from uuencoded
data.

Example: (corrupted version)

..+DP9(8IT1;KNB011_]DP
`
end

(uncorrupted)

.+DP9(8IT1;KNB011_]DP
`
end


			Cheers,

				Matt.


-- 
I don't know half of you half as well as I should like; and I like less
than half of you half as well as you deserve.
		-- J. R. R. Tolkien

Re: slrnpull corrupting binaries?
#52942
Author: John E. Davis
Date: Sat, 09 Oct 1999 00:00
17 lines
1453 bytes
On Wed, 06 Oct 1999 18:58:05 +0930, Mediocrates <Mediocrates@don'tbother.spammingme>
wrote:
>Since all the articles are pumped into inn, when I run netscape or any

   How are you pumping the articles into INN?

[...]
>result, with no problem files, so I came to the conclusion that it must
>be slrnpull.

  This is the wrong conclusion because slrnpull knows nothing about
the content of the articles that it downloads.  It treats all articles
the same.

--John

Re: slrnpull corrupting binaries?
#52968
Author: Mediocrates
Date: Sun, 10 Oct 1999 00:00
46 lines
2752 bytes
"John E. Davis" wrote:
> 
> On Wed, 06 Oct 1999 18:58:05 +0930, Mediocrates <Mediocrates@don'tbother.spammingme>
> wrote:
> >Since all the articles are pumped into inn, when I run netscape or any
> 
>    How are you pumping the articles into INN?
> 
> [...]
> >result, with no problem files, so I came to the conclusion that it must
> >be slrnpull.
> 
>   This is the wrong conclusion because slrnpull knows nothing about
> the content of the articles that it downloads.  It treats all articles
> the same.
> 
> --John

How it works is that /var/spool/slrnpull/news is a symlink to
/var/spool/news/articles, and as a result all the articles end up in the
right spool directory(the groups have already been created via ctlinnd
newgroup). The only thing that needs to be done is to run a little shell
script I slapped together called grp_update

#!/bin/bash
for e in `cat /var/lib/news/active | cut -f 1 -d " " | grep "."` ; do
  ctlinnd renumber $e
done

Now the problem is that an extra "." is being added to the third last
line of any  uuencoded text whose line starts with a "." . This is
before I run the shell script, so I'm assuming it's before inn get's a
chance to look at it, and as one of the previous posters suggested may
be slrn/slrnpull's way of escaping the end-of-article ".". The next time
I run slrnpull(scheduled for Monday), I'll shutdown inn and elimate
another variable from the equation, just in case.

			Matt.

-- 
The best portion of a good man's life, his little, nameless,
unremembered acts
of kindness and love.
		-- Wordsworth

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