[wp-trac] [WordPress Trac] #33196: ssh2_auth_pubkey_file() call can cause a fatal error because of non-existing key error in $this->options['password']

WordPress Trac noreply at wordpress.org
Thu Jul 30 05:10:18 UTC 2015


#33196: ssh2_auth_pubkey_file() call can cause a fatal error because of non-
existing key error in $this->options['password']
----------------------------+-----------------------------
 Reporter:  ehsanakhgari    |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Filesystem API  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------
Changes (by dd32):

 * focuses:  administration =>
 * component:  General => Filesystem API
 * version:  4.2.3 =>
 * milestone:  Awaiting Review => Future Release


Comment:

 Can you post the exact fatal error which occurs in this situation?

 Looking at the patch, it can probably be rewritten slightly to set
 `$this->options['password']` before the empty-password no-keys error
 checks (Assuming that the `$opt['password']` key is always set, and won't
 cause a notice in the current patch)

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


More information about the wp-trac mailing list