Thread View: news.software.readers
12 messages
12 total messages
Started by Karen J. Cravens
Sat, 07 Feb 2004 05:50
XNews not displaying message bodies
Author: Karen J. Cravens
Date: Sat, 07 Feb 2004 05:50
Date: Sat, 07 Feb 2004 05:50
27 lines
2500 bytes
2500 bytes
It's actually a server problem, not an XNews problem, but darned if I can
figure out what's going on.
When I hit the test server (a little Perl-based mailing-list-to-NNTP
conversion), XNews reads an article, and displays just the headers, no
body. Hitting H ("show all headers") works just fine, displaying not only
the headers but the body. Hit H again, and the extra headers go away, and
the body's still there, everything now looks fine.
Ooookay.
So go into SAH mode, retrieve a new article, and the whole article shows
up as headers... no blank line between the two. Hit H again, and once
again, the message looks fine.
XNews has worked perfectly well on the "real" news server (obviously; I'm
using it now), so I greatly doubt there's a problem there. Yet when I
fire up a telnet client, connect to the Perl server and manually type the
ARTICLE command, the blank line shows up just fine. And a little custom
Perl scripting seems to indicate that the blank lines from both servers
are identical - a happy little single ^J (same as terminates all the non-
blank lines).
So what in the world is the new server doing wrong that's making XNews
display articles so weirdly? And how come toggling show-all-headers makes
it get unconfused?
Re: XNews not displaying message bodies
Author: Murray Peterson
Date: Sat, 07 Feb 2004 06:38
Date: Sat, 07 Feb 2004 06:38
31 lines
2447 bytes
2447 bytes
"Karen J. Cravens" <silver+news@phoenyx.net> wrote in news:Xns9487F29391262phoenyx@130.133.1.4: > XNews has worked perfectly well on the "real" news server (obviously; > I'm using it now), so I greatly doubt there's a problem there. Yet > when I fire up a telnet client, connect to the Perl server and > manually type the ARTICLE command, the blank line shows up just fine. > And a little custom Perl scripting seems to indicate that the blank > lines from both servers are identical - a happy little single ^J (same > as terminates all the non- blank lines). I believe that there is one more character that should be in there -- a carriage return (^M). Telnet is probably acting on that character and not displaying it as a control character -- check you telnet settings or log the data stream to a file and look at the blank line with a hex editor. > So what in the world is the new server doing wrong that's making XNews > display articles so weirdly? Sounds like the server is separating the headers and the body with a line feed character alone, without the carriage return. > And how come toggling show-all-headers makes it get unconfused? Guessing here -- Xnews probably adds a CR to the LF to make it appear on a new line, and from that point onwards, everything is just as expected. -- Murray Peterson Email: murray_peterson@shaw.ca (remove underscore) URL: http://members.shaw.ca/murraypeterson/
Re: XNews not displaying message bodies
Author: Karen J. Cravens
Date: Sat, 07 Feb 2004 16:01
Date: Sat, 07 Feb 2004 16:01
20 lines
2282 bytes
2282 bytes
begin Murray Peterson <mwp@home.com.invalid> quotation from news:Xns9487F0C74A953farkle@24.71.223.159: > I believe that there is one more character that should be in there -- > a carriage return (^M). Telnet is probably acting on that character > and not displaying it as a control character -- check you telnet > settings or log the data stream to a file and look at the blank line > with a hex editor. I probably should have mentioned that I started out with a CR+LF, since that's what the RFC sez *should* be in there. I didn't take it out until looking at the data stream directly indicated that the working server didn't have the carriage return. Putting in CRs (before LFs) led to XNews being completely unable to display the message (and telnet displaying it wacky). If I put the CRLF sequence in there singly, the CR comes up as a non-displayable character box. The thing is, the naked LF doesn't affect the operation anywhere else.
Re: XNews not displaying message bodies
Author: Murray Peterson
Date: Sat, 07 Feb 2004 18:33
Date: Sat, 07 Feb 2004 18:33
30 lines
2342 bytes
2342 bytes
"Karen J. Cravens" <silver+news@phoenyx.net> wrote in
news:Xns948865F9B29C8phoenyx@130.133.1.4:
> I probably should have mentioned that I started out with a CR+LF,
> since that's what the RFC sez *should* be in there. I didn't take it
> out until looking at the data stream directly indicated that the
> working server didn't have the carriage return.
>
> Putting in CRs (before LFs) led to XNews being completely unable to
> display the message (and telnet displaying it wacky). If I put the
> CRLF sequence in there singly, the CR comes up as a non-displayable
> character box.
>
> The thing is, the naked LF doesn't affect the operation anywhere else.
I don't have any more "simple" ideas at this point. I think you will need
to stream an article to some log files from each server and compare the two
via a hex editor. There is obviously some difference of note, but I really
don't know what it could be.
Perhaps you could modify this script to provide output that would be useful
to you:
http://members.shaw.ca/murraypeterson/proxy-dump.zip
Sorry I couldn't be of more help.
--
Murray Peterson
Email: murray_peterson@shaw.ca (remove underscore)
URL: http://members.shaw.ca/murraypeterson/
Re: XNews not displaying message bodies
Author: Tom B.
Date: Sat, 07 Feb 2004 21:44
Date: Sat, 07 Feb 2004 21:44
21 lines
1709 bytes
1709 bytes
Karen J. Cravens wrote ... > When I hit the test server (a little Perl-based mailing-list-to-NNTP > conversion), XNews reads an article, and displays just the headers, no > body. I guess I'm a wimp but I use News::NNTPClient for all perl NNTP scripts. It handles all that end of line stuff and more for you. I have used it on both NetBSD (read/post) and Windows (read, haven't tried posting). Have you tried just sending \n without doing all the OD OA OD OA stuff? -- Tom B. * * * Gravity Web Pages * * * http://lightning.prohosting.com/~tbates/gravity/ http://gravity.tbates.org/ http://mpgravity.sourceforge.net/
Re: XNews not displaying message bodies
Author: Karen J. Cravens
Date: Sun, 08 Feb 2004 02:41
Date: Sun, 08 Feb 2004 02:41
22 lines
2196 bytes
2196 bytes
begin Tom B. <nfn03862@naples.net> quotation from news:MPG.1a8f264c7559d6a29897b5@news.cis.dfn.de: > I guess I'm a wimp but I use News::NNTPClient for all perl NNTP > scripts. It handles all that end of line stuff and more for you. I > have used it on both NetBSD (read/post) and Windows (read, haven't > tried posting). I do too, for client stuff. It's a server I'm trying to get working, though. > Have you tried just sending \n without doing all the OD OA OD OA > stuff? Yep. Well, actually I started with \r\n and backed off to just \n. And then tried just about every conceivable combination of wacky characters. I'm starting to think maybe the Net::Server library is doing some behind- the-scenes processing, but I'd expect to see signs of that in telnet and raw (Perl) client connections, and I'm not. It's making my brane hurt.
Re: XNews not displaying message bodies
Author: Karen J. Cravens
Date: Sun, 08 Feb 2004 02:47
Date: Sun, 08 Feb 2004 02:47
17 lines
2303 bytes
2303 bytes
begin Murray Peterson <mwp@home.com.invalid> quotation from news:Xns948875CF254F3farkle@24.71.223.159: > I don't have any more "simple" ideas at this point. I think you will > need to stream an article to some log files from each server and > compare the two via a hex editor. There is obviously some difference > of note, but I really don't know what it could be. That's about where I'm at. I think I'm going to pull an article off a Usenet server and stuff it into the mailing list archives and see how it gets served up. Or carved up. I'm about half-convinced that XNews is using some other mechanism to determine the body start, then falling back to the blank line when I use the H toggle. I mean, it's just a blank line. It's too simple to screw up, right? Darned if I can figure out what else XNews would be using to decide, though. All it's doing is an ARTICLE command, after all.
Re: XNews not displaying message bodies
Author: Tom B.
Date: Sun, 08 Feb 2004 04:51
Date: Sun, 08 Feb 2004 04:51
31 lines
2389 bytes
2389 bytes
Karen J. Cravens wrote ... > begin Tom B. <nfn03862@naples.net> quotation from > news:MPG.1a8f264c7559d6a29897b5@news.cis.dfn.de: > > > I guess I'm a wimp but I use News::NNTPClient for all perl NNTP > > scripts. It handles all that end of line stuff and more for you. I > > have used it on both NetBSD (read/post) and Windows (read, haven't > > tried posting). > > I do too, for client stuff. It's a server I'm trying to get working, > though. Ok, I thought you were trying to post mail to a news server. But I suppose there are a few mail->news programs already out there. > Yep. Well, actually I started with \r\n and backed off to just \n. And > then tried just about every conceivable combination of wacky characters. Just for the heck of it I analyzed some network traffic for an article, the last header ends with \r\n (0d 0a) followed immeditately by \r\n. I know the blank line should not have any extraneous white space including spaces between the two CR LF pairs. Well, good luck -- Tom B. * * * Gravity Web Pages * * * http://lightning.prohosting.com/~tbates/gravity/ http://gravity.tbates.org/ http://mpgravity.sourceforge.net/
Re: XNews not displaying message bodies
Author: Murray Peterson
Date: Sun, 08 Feb 2004 06:04
Date: Sun, 08 Feb 2004 06:04
29 lines
2229 bytes
2229 bytes
"Karen J. Cravens" <silver+news@phoenyx.net> wrote in news:Xns9488D377A8D35phoenyx@130.133.1.4: > I'm about half-convinced that XNews is using some other mechanism to > determine the body start, then falling back to the blank line when I use > the H toggle. I can't see how -- the NNTP standard defines the separator as this (crlf followed by another crlf, with no other extraneous characters. > I mean, it's just a blank line. It's too simple to screw > up, right? Actually, it's very easy to screw up -- white space before or after the crlf terminators, swapping the order (lfcr), etc. You wouldn't believe how many programs I have seen that get it wrong. > Darned if I can figure out what else XNews would be using to > decide, though. All it's doing is an ARTICLE command, after all. I really think you need to evaluate every single character coming into Xnews -- telnet is just too poor of a tool for this job. -- Murray Peterson Email: murray_peterson@shaw.ca (remove underscore) URL: http://members.shaw.ca/murraypeterson/
Re: XNews not displaying message bodies
Author: Murray Peterson
Date: Sun, 08 Feb 2004 17:05
Date: Sun, 08 Feb 2004 17:05
16 lines
1674 bytes
1674 bytes
"Karen J. Cravens" <silver+news@phoenyx.net> wrote in news:Xns9488D377A8D35phoenyx@130.133.1.4: > Darned if I can figure out what else XNews would be using to > decide, though. All it's doing is an ARTICLE command, after all. > One last thought -- check the syntax of the headers -- perhaps one of them is illegal in nature. This could bugger up the parsing to the extent of "hiding" the header/article boundary. -- Murray Peterson Email: murray_peterson@shaw.ca (remove underscore) URL: http://members.shaw.ca/murraypeterson/
Re: XNews not displaying message bodies
Author: Karen J. Cravens
Date: Sun, 08 Feb 2004 19:42
Date: Sun, 08 Feb 2004 19:42
30 lines
2956 bytes
2956 bytes
begin Murray Peterson <mwp@home.com.invalid> quotation from news:Xns9488EAF53B5CAfarkle@24.71.223.159: > Actually, it's very easy to screw up -- white space before or after > the crlf terminators, swapping the order (lfcr), etc. You wouldn't > believe how many programs I have seen that get it wrong. Well, yeah. But when I'm looking at the character codes and seeing end- of-the-last-header-LF-LF-start-of-the-message body in both cases, I mean it's difficult to screw up in the sense of failing to notice that one's really -head-CR-LF-CR-LF-start- or something. > I really think you need to evaluate every single character coming into > Xnews -- telnet is just too poor of a tool for this job. Oh, I am doing that. Telnet's for the quick and dirty stuff. (Though IIRC Windows telnet is susceptible to CRLF vs. LF, and if I could remember which it insisted on I suppose I could fire it up and see if it freaks out.) At least, I'm *supposed* to be seeing every single character. I'm starting to suspect that one or more of the libraries I'm using is doing some uninvited behind-the-scenes processing on both incoming and outgoing characters; the nekkid-LF business from the "real" NNTP server is making me particularly suspicious. The alternative seems to be to believe that the LF from individual.net is a different flavor than the LF from localhost. Maybe one's chr(10) and one's chr(10.00001)... mine's not Pentium-based, but maybe individual.net is...
Re: XNews not displaying message bodies
Author: Karen J. Cravens
Date: Sun, 08 Feb 2004 20:11
Date: Sun, 08 Feb 2004 20:11
29 lines
2935 bytes
2935 bytes
begin Murray Peterson <mwp@home.com.invalid> quotation from news:Xns94896701F3962farkle@24.71.223.159: > One last thought -- check the syntax of the headers -- perhaps one of > them is illegal in nature. This could bugger up the parsing to the > extent of "hiding" the header/article boundary. I went back and actually looked at the code for the first time since the original question, and discovered the problem. For the record, XNews is quite capable of dealing with both a CRLF or a plain LF (I remembered wrong in an earlier post... I can't remember what it was I tried that produced the unprintable-character box, but it was probably something wacky, since I was getting desperate at that point). Anyway, I looked over all the headers, since I'd already been wondering about a funky header problem causing this (I suspected the "Lines:" as the culprit, myself, but I knew in the past XNews had dealt with garbled and/or wrong line-counts successfully), and they're all squeaky-clean RFC compliant. That is, the ones that are there... however, XNews cries like a little girl if you give it a "Usenet" message that doesn't include a STUPID "NEWSGROUPS:" LINE. Heh. I guess I can see where it might be a little bothered by that. Weird way to show it, though, but I guess it just doesn't even bother to test for the start of the body until it's seen a Newsgroups line. Anyway, thanks for your help, everyone who responded.
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