Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Pro - Don't prompt to upload file for virus scanning if it is too large #695
What You Are Seeing?
User gets prompted to upload file for virus scanning. After responding with 'Y', the upload fails because the file exceeds the upload size limit.
What is Expected?
Don't prompt user and then fail if we can tell in advance that it won't work.
How Did You Get This To Happen? (Steps to Reproduce)
2016-04-18 12:23:07,187 [INFO ] - Download of 'SSMS-Setup-ENU.exe' (815.42 MB) completed. 2016-04-18 12:23:09,197 [DEBUG] - Running 'Get-VirusCheckValid' with url:'http://download.microsoft.com/download/8/6/3/8639523C-7F12-4CC3-8D2F-908C7A78B4C6/SSMS-Setup-ENU.exe', file: 'C:\Users\David\AppData\Local\Temp\chocolatey\SQL Server Management Studio\13.0.14000.36-preview\SSMS-Setup-ENU.exe' 2016-04-18 12:23:09,233 [DEBUG] - Conducting virus check for 'SSMS-Setup-ENU.exe'. 2016-04-18 12:23:31,346 [WARN ] - Virus scan engines indicate this file has not been scanned before. 2016-04-18 12:23:31,356 [WARN ] - Upload file? 2016-04-18 12:23:31,362 [WARN ] - WARNING: Selecting Yes WILL upload the file to a PUBLIC website and results will be publicly available. Do not select Yes for files that should be kept internal. Upload 'SSMS-Setup-ENU.exe' for scanning? 2016-04-18 12:23:31,370 [WARN ] - [N] No [Y] Yes (default is "N") 2016-04-18 12:23:31,380 [WARN ] - Confirmation (`-y`) is set. Respond within 30 seconds or the default selection will be chosen. 2016-04-18 12:23:40,556 [ERROR] - ERROR: The virus scanner cannot handle files over 500MB. 'SSMS-Setup-ENU.exe' cannot be verified by the scanner. You must determine if it is safe outside of choco and then to install with choco you will need to pass --skip-virus-check to install this package.