IBM Support

IV36935: FTPD RETURNS 550 ERROR W/LIST FOR FILE NOT FOUND APPLIES TO AIX 7100-03

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The FTP server (ftpd) returns an error "550" for file not
    found when executing the LIST command to query an exact
    filename as follows. The wild card * is not used.
    
    ftp> ls abc
    200 PORT command successful.
    550 abc: A file or directory in the path name does not
    exist
    
    This behavior is not compliant with RFC 959.
    For consistency, this command should return the
    successful
    completion codes and no data files, as follows:
    
    ftp> ls abc
    200 PORT command successful.
    150 Opening data connection for abc.
    226 Transfer complete.
    
    Additional Note:
    The wild card * pattern matching case is working
    correctly:
    
    ftp> ls abc*
    200 PORT command successful.
    150 Opening data connection for abc*
    226 Transfer complete.
    
    Reference RFC 959, p51.
    LIST
       125, 150
          226, 250
          425, 426, 451
       450
       500, 501, 502, 421, 530
    

Local fix

Problem summary

  • When executing NLST FTP sub-command on a non existing
    file/directory in AIX FTP server, the ftp client will
    display 550 as return code.
    
    For eg:
    ftp> ls abc
    200 PORT command successful.
    550 abc: A file or directory in the path name does not exist.
    ftp>
    Return code 550 for NLST cmd is non compliance with rfc 959.
    

Problem conclusion

  • Modified FTP server code to open a data connection and send 150
    or 125 message if data connection succeeds, or 425 message if
    data connection fails. Followed by 150/125 message, send 226
    message when NLST command is run on any non existing
    file/directory.
    

Temporary fix

Comments

  • 6100-09 - use AIX APAR IV36071
    7100-03 - use AIX APAR IV36935
    

APAR Information

  • APAR number

    IV36935

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2013-02-19

  • Closed date

    2013-02-19

  • Last modified date

    2013-11-26

  • APAR is sysrouted FROM one or more of the following:

    IV36071

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    AIX V7.1

  • Fixed component ID

    5765H4000

Applicable component levels

  • R710 PSY U854680

       UP13/11/22 I 1000

PTF to Fileset Mapping

[{"Business Unit":{"code":"BU009","label":"Systems - Cognitive"},"Product":{"code":"SSMV87","label":"AIX Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":""},{"Business Unit":{"code":"BU011","label":"Systems - zSystems software"},"Product":{"code":"SSMVAX","label":"AIX Express Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":""},{"Business Unit":{"code":"BU011","label":"Systems - zSystems software"},"Product":{"code":"SG11R","label":"APARs - AIX 7.1 environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":""}]

Document Information

Modified date:
26 November 2013