FTP-1 への変更提案
実現してほしい FTP-1 への具体的な変更を要約する。その大半は、現実を反映するための文書上の変更にすぎない。
-
HELP は 200 を返すべきである。すべてのコマンドは、成功した場合に 2xx を返すべきであり、HELP を除くすべてがそうしていると思う。
-
1xx メッセージの定義は、次のように変更されるべきである。「状態照会に対する情報提供的な応答。これらは肯定でも否定でもない確認応答である。」
-
実験的な応答コードは x9x または xx9 の形式とし、最初の桁は、自動化されたユーザープログラムにとっての応答の重要性を反映するよう選ぶ。599 を超える応答コードは認められない。応答が 2 桁目について既存のカテゴリのいずれかに該当する場合は、xx9 の形式を用いるべきである。ユーザープログラムは、可能な場合には、特定の応答コードを要求するのではなく、最初の桁から応答の重要性を判断することが推奨される。
-
引数なしの STAT コマンドは、カレントワーキングディレクトリのディレクトリ一覧の要求とみなす。ただし、転送の進行中に TELNET SYNCH とともに与えられる場合があり、その場合はその転送の状態の要求となる。(誰もが前半を実装しているようだ。後半を実際に実装している者がいるかどうかはわからない。これは単にプロトコルを現実に一致させるものである。)STAT コマンドへの応答は、0 個以上の 1xx メッセージとそれに続く 200 とすべきである。
-
TYPE P と F は、ソースファイルに ASA 制御文字が含まれており、受信側プログラムが必要に応じて再整形すべきであることを意味する。
以下は、現行の FTP-1 の応答と、新しい方式に合わせてそれらをどのように番号付けし直すべきかの一覧である。4xx から 5xx への変更は 6 月 1 日から必須とすべきである。2 桁目または 3 桁目の変更はそれほど重要ではない。(上述のとおり、一部のホストがその要件を満たさなくても破滅的ではない。)この一覧には、RFC 640 から採り入れた新しい応答候補が 1 つ含まれている。
OLD NEW TEXT
0x0 0x0 (These messages are not very well defined nor
very important. Servers should use their judgment.)
100 110 System status reply. (Since nobody does STAT
as in the protocol, this may be a moot point.)
150 150 "File status reply." (If this were really that,
it would be switched to 120, but I believe what is meant is
the response to a bare STAT in mid-transfer, which is more
a connection status reply than a file status reply.
151 121 Directory listing reply.
200 200 Last command ok.
201 251 ABOR ok.
202 252 ABOR ignored, no transfer in progress.
new 206 Command ignored, superfluous here.
230 230 Login complete.
231 231 Logout complete.
232 232 Logout command will be processed when
transfer is complete.
250 250 Transfer started correctly.
251 251 MARK yyyy = mmmm
252 252 Transfer completed ok.
253 223 Rename ok.
254 224 Delete ok.
255 255 SOCK nnnn
256 256 Mail completed ok.
300 300 Connection greeting
301 301 Command incomplete (no crlf)
330 330 Enter password
350 350 Enter mail.
400 huh? "This service not implemented." I don't
understand this; how does it differ from 506? If it means
no FTP at all, who gave the message? Flush.
401 451 Service not accepting users now, goodbye.
430 430 Foo, you are a password hacker!
431 531 Invalid user or password.
432 532 User invalid for this service.
434 454 Logout by operator.
435 455 Logout by system.
436 456 Service shutting down.
450 520 File not found.
451 521 Access denied.
452 452 Transfer incomplete, connection closed.
453 423 Transfer incomplete, insufficient storage space.
454 454 Can't connect to your socket.
500 500 Command gibberish.
501 501 Argument gibberish.
502 502 Argument missing.
503 503 Arguments conflict.
504 504 You can't get there from here.
505 505 Command conflicts with previous command.
506 506 Action not implemented.
[ This RFC was put into machine readable form for entry ]
[ into the online RFC archives by Via Genie 3/00 ]