Article View: news.software.nntp
Article #55559Re: Is there a hack to support paswords that contain spaces?
From: Greg Andrews
Date: Sun, 09 Dec 2001 06:59
Date: Sun, 09 Dec 2001 06:59
33 lines
2290 bytes
2290 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes: > > The client must then send the username followed by > one or more space characters followed by the > password. > >I don't see that conflicting with taking the password to be >everything beginning with the first non-whitespace after the >username. Am I missing something? > The general problem with handling separator characters as if they aren't separator characters is increasing code complexity in one of the server's more critical code paths. The server that must parse the command can't have one parser for the whole NNTP protocol anymore. Now one parser is used for most commands, and another for the auth command. The basic parsing of protocol commands is more complex, and you risk bug fixes being applied to one parser and not the other. Not to mention the slippery slope effect. Once one command treats separator chars as non-separator chars, it's very easy to add another, and another, and... This tends to multiply the number of parsers as well. -Greg -- +++++ Greg Andrews +++ gerg@panix.com +++++ I have a map of the United States that's actual size -- Steven Wright
Technical Details
Message-ID:
<9uv25f$5g1$1@news.panix.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!news.panix.com!not-for-mailReferences:
<9urfpi$7vi$1@teta.doit.wisc.edu> <1007846386.132947@ok-corral.gunslinger.net> <ylg06l5r1p.fsf@windlord.stanford.edu> <9uuko7$br8$1@marduk.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <9uv25f$5g1$1@news.panix.com> Subject: Re: Is there a hack to support paswords that contain spaces? Date: Sun, 09 Dec 2001 06:59:59 +0000 From: gerg@panix.com (Greg Andrews) References: <9urfpi$7vi$1@teta.doit.wisc.edu> <1007846386.132947@ok-corral.gunslinger.net> <ylg06l5r1p.fsf@windlord.stanford.edu> <9uuko7$br8$1@marduk.litech.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!news.panix.com!not-for-mail Newsgroups: news.software.nntp Organization: I have a map of the United States that's actual size Lines: 32 Distribution: inet NNTP-Posting-Host: panix3.panix.com X-Trace: news.panix.com 1007881199 5633 166.84.1.3 (9 Dec 2001 06:59:59 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: 9 Dec 2001 06:59:59 GMT X-Newsreader: trn 4.0-test74 (May 26, 2000) Originator: gerg@panix.com (Greg Andrews)