Skip to content

Chocolatey Licensed source without authentication stops Chocolatey from working #2736

@AdmiringWorm

Description

@AdmiringWorm

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: chocolatey/chocolatey-licensed-issues#279

Metadata

Metadata

Assignees

No one assigned

    Labels

    0 - TriagingIssue is accepted, but a milestone has yet to be added for the issue.BugIssues where something has happened which was not expected or intended.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions