Microsoft KB Archive/328432

= BUG: FTP Exit Message Does Not Appear After You Disconnect =

Article ID: 328432

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Internet Information Services 5.1
 * Microsoft Internet Information Server 4.0
 * Microsoft Internet Information Services 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:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



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 &quot;221&quot; 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. &quot;221This is the Exit message!&quot; With 1,014 or more characters, the exit message format is changed because the exit message is truncated: &quot;221This is the Exit message!&quot;

Additional query words: iis 4.0 5.0 ftpsvc logoff log off

Keywords: kbbug KB328432

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.