chocolatey / chocolatey/choco

Chocolatey Licensed source without authentication stops Chocolatey from working

Open
#2,736 2 comments 0 reactions 0 assignees View on GitHub
0 - Triaging Bug
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

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)

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

### Output Log

N/A

### Related issues

Followup from: https://github.com/chocolatey/chocolatey-licensed-issues/issues/279

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.