[wp-trac] [WordPress Trac] #33058: $wp_filesystem->exists('') returns a wrong answer (when FS_METHOD='ftpext').

WordPress Trac noreply at wordpress.org
Sun Mar 12 02:03:55 UTC 2023


#33058: $wp_filesystem->exists('') returns a wrong answer (when
FS_METHOD='ftpext').
-------------------------------------------------+-------------------------
 Reporter:  Zdrobau                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.3
Component:  Filesystem API                       |     Version:  2.5
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-         |     Focuses:
  testing-info                                   |
-------------------------------------------------+-------------------------
Changes (by costdev):

 * keywords:  has-patch needs-testing => has-patch needs-testing has-
     testing-info
 * milestone:   => 6.3


Comment:

 == Testing Instructions
 These steps define how to reproduce the issue or test a patch, and
 indicate the expected behavior.

 === Steps to Test
 1. Set up an FTP server on your local system. Make a note of the user and
 password.
 2. Download, install and activate the
 [https://core.trac.wordpress.org/attachment/ticket/33058/33058_test_filesystem_exists.zip
 33058_test_filesystem_exists.zip] plugin.
 3. In `wp-
 content/plugins/33058_test_filesystem_exists/33058_test_filesystem_exists.php`,
 make sure that the `FTP_BASE`, `FTP_USER` and `FTP_PASS` constants are set
 to the appropriate values for your environment.
 4. 🐞 Note the results for each `Empty path exists:` entry.
 5. Apply [https://github.com/WordPress/wordpress-develop/pull/4224 PR
 4224].
 6. Refresh the admin page.
 7. ✅ Note the results for each `Empty path exists:` entry.

 === Expected Results
 When reproducing a bug:
 - ❌ The admin notice shows "No" for direct, and "Yes" for ftpext and
 ftpsockets.

 When testing a patch to validate it works as expected:
 - ✅ The admin notice should show "No" for direct, ftpext and ftpsockets.

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


More information about the wp-trac mailing list