chocolatey / chocolatey-licensed-issues

Issues for Licensed Editions of Chocolatey
19 stars 13 forks source link

Adding the Chocolatey licensed source without authentication stops Chocolatey CLI from working #279

Closed ryanrichter94 closed 2 years ago

ryanrichter94 commented 2 years ago

What You Are Seeing?

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)

  1. 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
  2. Then try running any Chocolatey CLI command, for instance choco
  3. You get the following error output in shell: Value cannot be null. Parameter name: s

References

┆Issue is synchronized with this Gitlab issue by Unito ┆Milestone: 4.2.0

AdmiringWorm commented 2 years ago

There is a need to do a followup in Chocolatey CLI to fully fix this issue.

A followup issue has been created for this work here: https://github.com/chocolatey/choco/issues/2736