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

WordPress Trac noreply at wordpress.org
Wed Jan 31 22:03:50 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  |     Focuses:
-------------------------------------+---------------------

Comment (by jorbin):

 Before going into core, this really should have some automated tests so
 this can't get reintroduced.

 I've uploaded a plugin that demonstrates the workaround. I've also
 submitted it to the WordPress Repo. Contributions welcome at
 https://github.com/aaronjorbin/force-pclzip (which also demonstrates how
 you can use GitHub to generate valid zip files from releases)

 Further testing is needed, but based on https://github.com/nih-
 at/libzip/commit/b3e3b19e2e4b7d4651d01148f123129429ecc69b, I believe this
 also only affects sites where PHP is using libzip versions lower than
 1.10.1.

 Some additional relevant reading: #10403, [15052], #12637.

 Replying to [comment:24 welaunchio]:
 >
 > Correct is: `add_filter( 'unzip_file_use_ziparchive', '__return_false'
 );`
 >
 > Two underscores.

 Thanks for catching that, I had been typing from my phone. I've fixed it
 in the original comment.

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


More information about the wp-trac mailing list