chef / chef/chef-server

chef-server-ctl oc-id-show-app APP does not recognize app name

Open
#1,599 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Aspect: UX Component: oc-id Triage: Confirmed Type: Bug
Dominant language
Erlang
Stars
303
Forks
211
Avg merge
1d 8h
Merged PRs (30d)
5

Description

Chef Server Version

Running 12.18.14

Platform Details

VM with Ubuntu 18.04.1 LTS

RAM: 3.9G total, 2.2G free.

Configuration

Standalone, new install

/etc/opscode/chef-server.rb:

oc_id['applications'] ||= {}
oc_id['applications']['supermarket'] = {
    'redirect_uri' => 'https://chefnode.novalocal/auth/chef_oauth2/callback'
}
Scenario:

When I try to run chef-server-ctl oc-id-show-app supermarket or chef-server-ctl oc-id-show-app --help it always outputs No app name provided

Steps to Reproduce:
  1. Install Chef Server
  2. Run chef-server-ctl oc-id-show-app supermarket
Expected Result:

Display the JSON with the OAuth information for the Supermarket.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the chef-server-ctl oc-id-show-app entry point and trace how it parses the APP argument and --help option. Reproduce the command with supermarket, then confirm the fix by verifying that it returns the OAuth application JSON instead of "No app name provided".

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang
Domain
authentication, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.