[wp-trac] [WordPress Trac] #13491: Wrong logic used within ZipArchive

WordPress Trac wp-trac at lists.automattic.com
Sat May 22 05:07:52 UTC 2010


#13491: Wrong logic used within ZipArchive
-----------------------------+----------------------------------------------
 Reporter:  dd32             |       Owner:  dd32        
     Type:  defect (bug)     |      Status:  new         
 Priority:  normal           |   Milestone:  3.0         
Component:  Upgrade/Install  |     Version:  3.0         
 Severity:  major            |    Keywords:  dev-feedback
-----------------------------+----------------------------------------------
 Apparently no-one else noticed, The logic employed in [14346] and
 subsequently [14377] is wrong(Added in #12637). ZipArchive has not been
 used in the wild for 3 weeks because of that.

 Take $zopen = true, Fails the first check, passes the 2nd check, returns
 invalid archive.

 {{{ && > || }}} sometimes.

 I'm going to commit a fix for it now, but due to the limited testing
 recieved, I'm thinking its going to be best to make ZipArchive opt-in for
 3.0, and make it opt-out again in 3.1 trunk.

 The possible issues that could arise are certain configurations which I've
 not tested or which were not tested by the community that for one reason
 or another, fail to uncompress properly using ZipArchive, Whilst I believe
 the chances of the archive being opened without error, and then failing to
 be highly rare, the result would be that either the upgrade to 3.0.1 may
 fail (causing them to have to install a plugin to disable ZipArchive, or
 perform a manual upgrade), or that plugin/theme upgrades/installs would
 error out.

 The work around of (manually) installing a plugin in case of an ZipArchive
 error would be something that users would have to do regardless right now
 if it was working for all testing users..

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13491>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list