[wp-trac] [WordPress Trac] #49865: _unzip_file_pclzip attempting to create directories all the way up to /

WordPress Trac noreply at wordpress.org
Sat May 6 08:02:38 UTC 2023


#49865: _unzip_file_pclzip attempting to create directories all the way up to /
-------------------------------------------------+-------------------------
 Reporter:  mwheelermindbox                      |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Filesystem API                       |     Version:  5.4
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing-info needs-testing     |     Focuses:
  close                                          |  administration
-------------------------------------------------+-------------------------
Changes (by costdev):

 * keywords:   => needs-testing-info needs-testing close


Comment:

 Hi @mwheelermindbox, welcome to Trac and thanks for opening this ticket!

 Unfortunately, I was unable to reproduce this. When updating the Rollback
 Update Failure feature plugin, and with a breakpoint set
 [https://github.com/WordPress/wordpress-develop/blob/6.2/src/wp-
 admin/includes/file.php#L1714 here], Xdebug shows the following:

 {{{
 $needed_dirs = [
     '/var/www/html/wordpress-develop/src/wp-content/upgrade/rollback-
 update-failure.5.1.1',
     '/var/www/html/wordpress-develop/src/wp-content/upgrade/rollback-
 update-failure.5.1.1/rollback-update-failure',
     '/var/www/html/wordpress-develop/src/wp-content/upgrade/rollback-
 update-failure.5.1.1/rollback-update-failure/src',
     '/var/www/html/wordpress-develop/src/wp-content/upgrade/rollback-
 update-failure.5.1.1/rollback-update-failure/src/testing',
     '/var/www/html/wordpress-develop/src/wp-content/upgrade/rollback-
 update-failure.5.1.1/rollback-update-failure/src/wp-admin',
     '/var/www/html/wordpress-develop/src/wp-content/upgrade/rollback-
 update-failure.5.1.1/rollback-update-failure/src/wp-admin/includes',
     '/var/www/html/wordpress-develop/src/wp-content/upgrade/rollback-
 update-failure.5.1.1/rollback-update-failure/src/wp-includes'
 ]
 }}}

 ------

 As I can't reproduce this, I'm tentatively adding `needs-testing-info` and
 `close`. Reproduction steps should include an archive structure, an
 appropriate `$file`, `$to`, and `$needed_dirs` arguments for
 `_unzip_file_pclzip()`.

 If reproduction steps aren't available within the next month, I'll close
 this ticket as `invalid`.

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


More information about the wp-trac mailing list