BUG: FTP Exit Message Does Not Appear After You Disconnect (328432)



The information in this article applies to:

  • Microsoft Internet Information Services version 5.1
  • Microsoft Internet Information Server 4.0
  • Microsoft Internet Information Server 5.0

This article was previously published under Q328432
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

SYMPTOMS

When you connect to a Microsoft Internet Information Server (IIS) or Internet Information Services (IIS) server that is running the File Transfer Protocol (FTP) Publishing Service that is configured with an exit message, the exit message is not displayed after you disconnect from the server. If a connection is reestablished to the server from the same command prompt instance that you used to open the connection, the exit message is displayed immediately after a connection is reestablished.

CAUSE

Exit messages that are longer than 1,013 characters are truncated before they are sent to the client, which changes the format of the data and gives the client the impression that the exit message was never sent.

RESOLUTION

Limit the length of the exit message to 1,013 characters.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Although the exit message box can contain up to 30,000 characters, FTP only replies with 1,023 characters, including the "221" FTP status code, a space, and the line feed and carriage return escape characters. When you use an exit message with 1,013 characters or less, the correct formatting of the message is sent back to the client:

NOTE: This sample illustrates the formatting, not what is actually displayed.
"221<Space>This is the Exit message!<LFCR>"
With 1,014 or more characters, the exit message format is changed because the exit message is truncated:
"221<Space><LFCR>This is the Exit message!"

Modification Type:MinorLast Reviewed:6/22/2005
Keywords:kbbug KB328432