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

WordPress Trac noreply at wordpress.org
Sat Dec 12 10:20:24 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 kioub):

 OK, for what is worth, for my FTP server (pure-
 ftpd-1.0.42-2.cp1150.x86_64) I can confirm that what is described is the
 exact case, I provide the output for LIST and NLIST commands when used
 with and without the -a flag.

 LIST

 {{{
 ftp> ls
 229 Extended Passive mode OK (|||44948|)
 150 Accepted data connection
 drwxr-x---    6 scg        99               4096 Dec 11 17:32 .
 drwx--x--x   15 scg        scg              4096 Dec 11 17:27 ..
 -rw-rw-rw-    1 scg        scg              9648 Dec 11 01:05 .htaccess
 drwxr-xr-x    2 scg        scg              4096 Dec  8 05:53 cgi-bin
 -rw-r--r--    1 scg        scg              1150 Dec 11 05:29 favicon.ico
 -rw-r--r--    1 scg        scg               418 Dec  8 06:41 index.php
 -rw-r--r--    1 scg        scg             19930 Dec  8 06:41 license.txt
 -rw-r--r--    1 scg        scg              7358 Dec  9 09:44 readme.html
 -rw-r--r--    1 scg        scg              5035 Dec  9 09:44 wp-
 activate.php
 drwxr-xr-x    9 scg        scg              4096 Dec  8 06:41 wp-admin
 -rw-r--r--    1 scg        scg               271 Dec  8 06:41 wp-blog-
 header.php
 -rw-r--r--    1 scg        scg              1369 Dec  9 09:44 wp-comments-
 post.php
 -rw-r--r--    1 scg        scg              2764 Dec  9 09:44 wp-config-
 sample.php
 -rw-r--r--    1 scg        scg              2867 Dec 11 01:06 wp-
 config.php
 drwxr-xr-x    8 scg        scg              4096 Dec  9 12:06 wp-content
 -rw-r--r--    1 scg        scg              3286 Dec  8 06:41 wp-cron.php
 drwxr-xr-x   16 scg        scg              4096 Dec  9 09:44 wp-includes
 -rw-r--r--    1 scg        scg              2380 Dec  8 06:41 wp-links-
 opml.php
 -rw-r--r--    1 scg        scg              3316 Dec  9 09:44 wp-load.php
 -rw-r--r--    1 scg        scg             33710 Dec  9 09:44 wp-login.php
 -rw-r--r--    1 scg        scg              7887 Dec  9 09:44 wp-mail.php
 -rw-r--r--    1 scg        scg             13021 Dec  9 09:44 wp-
 settings.php
 -rw-r--r--    1 scg        scg             28594 Dec  9 09:44 wp-
 signup.php
 -rw-r--r--    1 scg        scg              4035 Dec  8 06:41 wp-
 trackback.php
 -rw-r--r--    1 scg        scg              3061 Dec  9 09:44 xmlrpc.php
 226-Options: -a -l
 226 25 matches total
 }}}

 LIST -a

 {{{
 ftp> ls -a
 229 Extended Passive mode OK (|||43334|)
 150 Accepted data connection
 drwxr-x---    6 scg        99               4096 Dec 11 17:32 .
 drwx--x--x   15 scg        scg              4096 Dec 11 17:27 ..
 -rw-rw-rw-    1 scg        scg              9648 Dec 11 01:05 .htaccess
 drwxr-xr-x    2 scg        scg              4096 Dec  8 05:53 cgi-bin
 -rw-r--r--    1 scg        scg              1150 Dec 11 05:29 favicon.ico
 -rw-r--r--    1 scg        scg               418 Dec  8 06:41 index.php
 -rw-r--r--    1 scg        scg             19930 Dec  8 06:41 license.txt
 -rw-r--r--    1 scg        scg              7358 Dec  9 09:44 readme.html
 -rw-r--r--    1 scg        scg              5035 Dec  9 09:44 wp-
 activate.php
 drwxr-xr-x    9 scg        scg              4096 Dec  8 06:41 wp-admin
 -rw-r--r--    1 scg        scg               271 Dec  8 06:41 wp-blog-
 header.php
 -rw-r--r--    1 scg        scg              1369 Dec  9 09:44 wp-comments-
 post.php
 -rw-r--r--    1 scg        scg              2764 Dec  9 09:44 wp-config-
 sample.php
 -rw-r--r--    1 scg        scg              2867 Dec 11 01:06 wp-
 config.php
 drwxr-xr-x    8 scg        scg              4096 Dec  9 12:06 wp-content
 -rw-r--r--    1 scg        scg              3286 Dec  8 06:41 wp-cron.php
 drwxr-xr-x   16 scg        scg              4096 Dec  9 09:44 wp-includes
 -rw-r--r--    1 scg        scg              2380 Dec  8 06:41 wp-links-
 opml.php
 -rw-r--r--    1 scg        scg              3316 Dec  9 09:44 wp-load.php
 -rw-r--r--    1 scg        scg             33710 Dec  9 09:44 wp-login.php
 -rw-r--r--    1 scg        scg              7887 Dec  9 09:44 wp-mail.php
 -rw-r--r--    1 scg        scg             13021 Dec  9 09:44 wp-
 settings.php
 -rw-r--r--    1 scg        scg             28594 Dec  9 09:44 wp-
 signup.php
 -rw-r--r--    1 scg        scg              4035 Dec  8 06:41 wp-
 trackback.php
 -rw-r--r--    1 scg        scg              3061 Dec  9 09:44 xmlrpc.php
 226-Options: -a -l
 226 25 matches total
 }}}

 NLIST

 {{{
 ftp> nlist
 229 Extended Passive mode OK (|||39058|)
 150 Accepted data connection
 .
 ..
 .htaccess
 cgi-bin
 favicon.ico
 index.php
 license.txt
 readme.html
 wp-activate.php
 wp-admin
 wp-blog-header.php
 wp-comments-post.php
 wp-config-sample.php
 wp-config.php
 wp-content
 wp-cron.php
 wp-includes
 wp-links-opml.php
 wp-load.php
 wp-login.php
 wp-mail.php
 wp-settings.php
 wp-signup.php
 wp-trackback.php
 xmlrpc.php
 226-Options: -a
 226 25 matches total
 }}}

 NLIST -a

 {{{
 ftp> nlist -a
 229 Extended Passive mode OK (|||39297|)
 150 Accepted data connection
 226-Options: -a
 226 0 matches total
 }}}

 As you can see the FTP server uses the -a flag internally regardless if I
 use it or not. That's why it returns all files (including the hidden ones)
 all the time. Although the -a flag gets ignored for the LIST command it
 results in a false (empty) result for the NLIST command.

 Replying to [comment:50 Otto42]:
 > Okay, think I see the problem here. Stems from [34733].
 >
 > The code changed from using ftp_rawlist() to ftp_nlist(). These execute
 the LIST or NLST commands, respectively. They both list the contents of
 the directory.
 >
 > Historically, LIST has returned a wide variety of formats, and parsing
 those programmatically can be a pain. NLST returns a somewhat more
 standard format, and is intended to only give the list of filenames in a
 directory. Different FTP servers will all have different implementations.
 >
 > It appears that in at least some of these cases, your servers don't
 support the -a argument (or perhaps any arguments) being passed to NLST.
 So the normal practice of sending NLST -a to get all files (including
 hidden ones that may have a period at the beginning of their name) does
 not work, while LIST -a worked just fine.
 >
 > Not really seeing a solution except to switch back to ftp_rawlist(). It
 didn't have these problems in the past. It did have other problems, but
 maybe those can be solved without ftp_nlist().
 >
 > Related: #28013

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


More information about the wp-trac mailing list