[wp-trac] [WordPress Trac] #33480: After upgrade to 4.3 unable to update plugins.
WordPress Trac
noreply at wordpress.org
Fri Aug 21 07:38:45 UTC 2015
#33480: After upgrade to 4.3 unable to update plugins.
-----------------------------+-----------------------------
Reporter: jobst | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.3.1
Component: Upgrade/Install | Version: 4.3
Severity: major | Resolution:
Keywords: needs-patch | Focuses: administration
-----------------------------+-----------------------------
Comment (by jobst):
It still is a permission problem:
I have a file /SOMEPATH/wp-content/plugins/index.php
- If I chmod that to 0640 I cannot write (below false)
- If I chmod that to 0660 I CAN write (below true)
{{{
WP_Filesystem( array( 'hostname' => '127.0.0.1', 'username' =>
'SOMEUSER', 'public_key' => '/PATH_TO_SOME_KEY.pub',
'private_key'=>'/PATH_TO_SOME_KEY.priv') );
global $wp_filesystem;
error_log(WP_PLUGIN_DIR . '/index.php');
$rc = var_export($wp_filesystem);
error_log($rc);
$rc = $wp_filesystem->is_writable( WP_PLUGIN_DIR . '/index.php');
error_log(">".$rc."<");
}}}
Gotta play some hockey, back in a couple of hours.
Jobst
Replying to [comment:6 dd32]:
> > The real issue is $this->clear_destination uses
"is_writable/is_writeable" which is a PHP function running in the context
of the user running apache (nobody in the case above), so obviously the
files are NOT writeable and never should be!
>
> The SSH2 code uses the `ssh2.sftp://` wrapper which directs the checks
to happen on the remote filesystem via the SSH connection. PHP is then
running the permission checks against SOMEUSER not nobody.
>
> The problem here is that the `ssh2.sftp://` wrapper appears to be
malfunctioning and always returning false, probably due to `stat` failing
over that link - most likely due to a bug in either libssh or the
interpretation of the server permissions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33480#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list