[wp-trac] [WordPress Trac] #34976: Plug ins fail to update after WP 4.4 installed

WordPress Trac noreply at wordpress.org
Sat Dec 12 17:01:36 UTC 2015


#34976: Plug ins fail to update after WP 4.4 installed
----------------------------+--------------------
 Reporter:  patdundee       |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  4.4.1
Component:  Filesystem API  |     Version:  4.4
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+--------------------

Comment (by dossy):

 Replying to [comment:57 Otto42]:
 > Yes, removing the -a is not a perfect solution, because it does need to
 see hidden files, such as the .maintenance file. If your FTP server
 assumes -a, then that would work, but not all servers will do that by
 default.

 Can you list even one FTP server whose `NLST` verb does NOT return all
 files, thus requiring the "`-a`" option?  Can you even list one FTP server
 whose `NLST` verb even does anything when passed any option?

 According to [https://tools.ietf.org/html/rfc1123#page-31 RFC1123, section
 4.1.2.7], the `NLST` verb `MUST contain only a simple list of legal
 pathnames,` - dotfiles are legal pathnames, even if there's a semantic
 connotation that they are "hidden" by some programs by default.  Any FTP
 server whose `NLST` verb does not return all legal pathnames, which would
 include dotfiles, is breaking the specification set forth by the RFC.

 Because of this, I suggest that the correct fix to this bug is to use
 `ftp_nlist()` and remove the "`-a`" option, as proposed by @ralbatross in
 [#comment:42 comment #42] above.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34976#comment:59>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list