FTP protocol violations

Wed, 2 Apr 86 17:06 EST

    Date: Wed, 2 Apr 86 14:15:37 est
    From: romkey@BORAX.LCS.MIT.EDU (John Romkey)

       Date: Wed, 2 Apr 86 09:36 EST
       From: Benson I. Margulies <Margulies@SCRC-YUKON.ARPA>

       If being permissive about what one accepts means accepting this, should
       I make my implementation ignore the second two digits of positive
       responses to simple model commands? I can't see taking too and 250 and
       no other 2xy's.

    That's the way my IBM PC FTP does it. The command state machine is
    just driven by the first digit. The other two digits can be used to
    get more information, but unless I've missed something somewhere,
    you can safely ignore them in deciding whether or not a command
    succeeded, or what to do next.
                                                    - john romkey
                                                      ftp software

Wait a minute. A spec is a spec. What's the point of the two digits if
(a) some hosts send the wrong ones, and (b) some hosts don't bother to
look at them. If the spec said you could be lazy, then it would be OK.
If the spec doesn't, an implementation is INCORRECT if it sends the
wrong codes and an implementation is ASKING FOR TROUBLE if it accepts
more than what the spec says.

This archive was generated by hypermail 2.0b3 on Thu Mar 09 2000 - 14:36:05 GMT