Feature Request: Show more descriptive error on failure to download compressed files #33433
Labels
Customer Report
Issues or PRs that were reported via Happiness. Previously known as "Happiness Request".
[Feature] WPCOM API
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Pri] Low
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
Impacted plugin
Jetpack
What
Add a descriptive error if a compressed file fails to download for security reasons
How
If you upload a .zip file that contains an executable file (.bat for example) to a site, you will not be able to download it. A generic error will be displayed: "This site can't be reached".
Screenshot of the error:![5Ppwje.png](https://cdn.statically.io/img/private-user-images.githubusercontent.com/426388/272538065-2644153b-f89c-426f-866c-96510ab6faab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1NDc4MzUsIm5iZiI6MTcyMzU0NzUzNSwicGF0aCI6Ii80MjYzODgvMjcyNTM4MDY1LTI2NDQxNTNiLWY4OWMtNDI2Zi04NjZjLTk2NTEwYWI2ZmFhYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxM1QxMTEyMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01ZjBlYzZlMmJhOGQ0NzlkYmUwZTc1MDc2YmJhZjA0ODdiMDQ1NmJjMDJmNGIxMTU2N2NhYTgwMDdkNjQzYTQ0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.N1ha7OzFlxij-ko8PqOj8Mr6CF5-vCTEjxT15oopQgs)
If you remove the .bat file, you will be able to download the .zip file correctly. Ideally, the user should see a warning when uploading this type of file, or the error page displayed could be more specific.
The text was updated successfully, but these errors were encountered: