[wp-trac] [WordPress Trac] #60398: WordPress 6.4.3 MacOS Compressed Zip plugin archives "Incompatible Archive" on upload

WordPress Trac noreply at wordpress.org
Thu Feb 1 03:06:20 UTC 2024


#60398: WordPress 6.4.3 MacOS Compressed Zip plugin archives "Incompatible Archive"
on upload
----------------------------------------------------+---------------------
 Reporter:  Endymion00                              |       Owner:  (none)
     Type:  defect (bug)                            |      Status:  new
 Priority:  normal                                  |   Milestone:  6.4.4
Component:  Upload                                  |     Version:  6.4.3
 Severity:  normal                                  |  Resolution:
 Keywords:  needs-testing has-patch has-unit-tests  |     Focuses:
----------------------------------------------------+---------------------

Comment (by peterwilsoncc):

 In the [https://github.com/WordPress/wordpress-develop/pull/5996 linked
 pull request]:

 * introduces a new function `wp_zip_file_is_valid()`
 * If `ZipArchive` fails and judges the file as invalid, falls back to
 `PclZip` to double check (props @costdev)
 * adds tests for new function
 * adds a macOS generated archive and invalid archives to the test suite

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


More information about the wp-trac mailing list