chocolatey-licensed-issues
chocolatey-licensed-issues copied to clipboard
Package Internalizer - Attempts to internalize ALL found urls
What You Are Seeing?
choco download
attempts to process all urls found inside a package across all .ps1
files. The selenium error in this example crops up from the included helpers.ps1 file, wherein you can optionally configure the local webserver.
What is Expected?
Only urls pointing to artifacts should be processed
How Did You Get This To Happen? (Steps to Reproduce)
choco download selenium --internalize -s https://chocoaltey.org/api/v2
Output Log
PS C:\packages\selenium> choco download selenium --internalize -s https://chocolatey.org/api/v2
Chocolatey v0.10.15 Business
Downloading existing package(s) to C:\packages\selenium\download
selenium v3.141.59 [Approved]
Found internalizable Chocolatey functions. Inspecting values for remote resources.
Found 'http://localhost:4444' for replacement.
Found 'https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar' for replacement.
Encountered error downloading package selenium v:
System.Exception: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'http://localhost:4444'.
Unable to connect to the remote server
at chocolatey.licensed.infrastructure.app.commandresources.RemoteDownloader.download_file(String url, String filePath, String userAgent, Boolean showProgress)
at chocolatey.licensed.infrastructure.app.commands.ProChocolateyDownloadCommand.process_downloaded_package(IPackage package, String downloadLocation, ChocolateyConfiguration configuration)
at chocolatey.infrastructure.app.nuget.NugetCommon.<>c__DisplayClass14.<GetPackageManager>b__11(Object s, PackageOperationEventArgs e)
at NuGet.PackageManager.OnInstalled(PackageOperationEventArgs e)
at NuGet.PackageManager.Execute(IPackage package, IPackageOperationResolver resolver)
at NuGet.PackageManager.InstallPackage(IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
at chocolatey.licensed.infrastructure.app.commands.ProChocolateyDownloadCommand.download_packages(String packageName, String packageVersion, String downloadLocation, ChocolateyConfiguration configuration)
┆Issue is synchronized with this Gitlab issue by Unito