-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPunit #3
Comments
@HartLarsson In production and meaningful config you should not run Or I miss something? |
well usually PHPunit must not be present in dist version of any plugin/module because it is only need for testing (usually). Because recently is found that phpunit create a big vulnerability if used (latest version seems patched), keep it on the dist version could create a hole in security. The zip version downlodable contains PHPunit tracks, every user willd ownload that version and found inside something related to dev and not needed. |
@HartLarsson all usages of Current and I think all the versions of our plugin in marketplace are not having any phpunit files packed in plugin ZIP package. Also anyone using this plugin via composer will not have This is server admin / programmer fault if s/he will install this plugin via Composer on production in Unless I miss something I cannot see we are doing anything incorrectly. We are following Composer principles and best practices. Correct me if I am wrong. |
@HartLarsson here it is how is explained in PHPUnit docs. If you find some link where there is different approach recommended for Prestashop plugins feel free to pass it and we can discuss it. Thanks! |
SMAR-16/ Ajax controller error handling improvements
On the latest plugin there are tracks or phpunit codes in /vendor/smartsupp/php-partner-client/
PHPunit create avulnerabilty as explained here: https://build.prestashop.com/news/critical-security-vulnerability-in-prestashop-modules/
For security is not better to remove any phpunit tracks?
thanks
The text was updated successfully, but these errors were encountered: