[wp-trac] [WordPress Trac] #63173: FS_Method with ftpext and Core Updates
WordPress Trac
noreply at wordpress.org
Tue Mar 25 18:31:57 UTC 2025
#63173: FS_Method with ftpext and Core Updates
------------------------------+------------------------------
Reporter: SirLouen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Filesystem API | Version: trunk
Severity: major | Resolution:
Keywords: has-testing-info | Focuses:
------------------------------+------------------------------
Changes (by SirLouen):
* keywords: => has-testing-info
Comment:
Time for Screenshots and debugging:
1st checkpoint: https://i.imgur.com/wVuHBvg.png
`$from` = `/wp-content/upgrade/wordpress-6.8-latest-sjCZm4`
`$root` = `/wordpress/`
So the full URL will be `/wp-content/upgrade/wordpress-6.8-latest-
sjCZm4/wordpress/readme.html`
2nd checkpoint: https://i.imgur.com/cE7zaYy.png
As expected, `$path = /wp-content/upgrade/wordpress-6.8-latest-
sjCZm4/wordpress/readme.html`
So far, so good.
3rd checkpoint: https://i.imgur.com/XLVnrdi.png
We can see that the $list has one item, hence `return true`
So we can confirm that the first part is TRUE
Now lets go with the next file:
4th checkpoint: https://i.imgur.com/6UX1v0N.png
The `$path` looks decent: `/wp-content/upgrade/wordpress-6.8-latest-
sjCZm4/wordpress/wp-includes/version.php`
And finally, the last part:
5th checkpoint: https://i.imgur.com/IXZ1eWg.png
`$list` = array(0), hence the result is **FALSE**
Ok, wait, probably is a problem with permissions. Lets check the FTP:
{{{
$ docker exec wordpress-develop-ftp-1 ls -l /home/admin/wp-
content/upgrade/wordpress-6.8-latest-sjCZm4/wordpress/readme.html
-rw-r--r-- 1 admin admin 7425 Mar 25 18:13 /home/admin/wp-
content/upgrade/wordpress-6.8-latest-sjCZm4/wordpress/readme.html
}}}
`readme.html` has 644, pretty common
{{{
$ docker exec wordpress-develop-ftp-1 ls -ld /home/admin/wp-
content/upgrade/wordpress-6.8-latest-sjCZm4/wordpress/
drwxr-xr-x 5 admin admin 4096 Mar 25 18:13 /home/admin/wp-
content/upgrade/wordpress-6.8-latest-sjCZm4/wordpress/
}}}
The parent directory of `readme.html`, has 755, everything is fine so far
{{{
$ docker exec wordpress-develop-ftp-1 ls -l /home/admin/wp-
content/upgrade/wordpress-6.8-latest-sjCZm4/wordpress/wp-
includes/version.php
-rw-r--r-- 1 admin admin 1098 Mar 25 18:13 /home/admin/wp-
content/upgrade/wordpress-6.8-latest-sjCZm4/wordpress/wp-
includes/version.php
}}}
644 for `version.php`
And finally... the parent directory of `version.php`:
{{{
$ docker exec wordpress-develop-ftp-1 ls -ld /home/admin/wp-
content/upgrade/wordpress-6.8-latest-sjCZm4/wordpress/wp-includes/
drwxr-xr-x 30 admin admin 16384 Mar 25 18:13 /home/admin/wp-
content/upgrade/wordpress-6.8-latest-sjCZm4/wordpress/wp-includes/
}}}
755! What kind of unexplained wizardry is this?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63173#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list