WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #39781


Ignore:
Timestamp:
02/04/2017 12:01:25 AM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39781 – Description

    initial v1  
    44
    55When issuing the NLIST command to the VSFTPd server with a full filename, it returns with an empty list because the NLIST command is only meant to list directories.   See https://www.ietf.org/rfc/rfc959.txt   
    6 
     6{{{
    77
    88         NAME LIST (NLST)
     
    2020            further process the files automatically.  For example, in
    2121            the implementation of a "multiple get" function.
    22 
     22}}}
    2323When wordpress gets back an empty list it makes the false assumption that the file does not exist.   
    2424
    2525Instead of using NLIST wordpress should use the LIST command which according to the same RFC should return information on the file if a file is specified.
    26 
     26{{{
    2727
    2828         LIST (LIST)
     
    3636            default directory.  The data transfer is over the data
    3737            connection in type ASCII or type EBCDIC. 
    38 
     38}}}
    3939Replacing the VSFTPd server which correctly implements the NLST command with ProFTPd which implements the NLST command incorrectly by returning information about the file in question fixes the problem.   
    4040