When running choco source add on the chocolatey.licensed source to for instance change it to allow self service. If you do so without adding a user and password switch to your command, Chocolatey CLI cannot be used after that.
What is Expected?
When authentication is not provided for the chocolatey.licensed source a 403 error would be desirable letting the user know of the error made.
How Did You Get This To Happen? (Steps to Reproduce)
Attempt to alter the chocolatey.licensed source via the following command choco source add --name="chocolatey.licensed" --source="https://licensedpackages.chocolatey.org/api/v2/" --allow-self-service
Then try running any Chocolatey CLI command, for instance choco
You get the following error output in shell: Value cannot be null. Parameter name: s
What You Are Seeing?
When running
choco source add
on thechocolatey.licensed
source to for instance change it to allow self service. If you do so without adding a user and password switch to your command, Chocolatey CLI cannot be used after that.What is Expected?
When authentication is not provided for the
chocolatey.licensed
source a 403 error would be desirable letting the user know of the error made.How Did You Get This To Happen? (Steps to Reproduce)
chocolatey.licensed
source via the following commandchoco source add --name="chocolatey.licensed" --source="https://licensedpackages.chocolatey.org/api/v2/" --allow-self-service
choco
Value cannot be null. Parameter name: s
References
┆Issue is synchronized with this Gitlab issue by Unito ┆Milestone: 4.2.0