Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return nice error when cookbook version already exists #6

Open
jakauppila opened this issue Aug 6, 2018 · 1 comment
Open

Return nice error when cookbook version already exists #6

jakauppila opened this issue Aug 6, 2018 · 1 comment

Comments

@jakauppila
Copy link

When uploading a cookbook to Artifactory (without Delete/Overwrite permission) utilizingknife artifactory share foo_bar for a version that already exists results in the following error:

ERROR: Error uploading cookbook foo_bar to Supermarket: 403 "". Increase log verbosity (-VV) for more information.

It'd be great if it returned a friendlier message that the cookbook version already exists and that the user does not have permission to overwrite ?

Full Knife output:

PS C:\GIT_Workspaces\foo_bar> knife artifactory share foo_bar -VV
INFO: Using configuration from C:\app_homes\.chef/knife.rb
DEBUG: [KNIFE-ART] running site share with config: {:verbosity=>2, :color=>true, :editor=>nil, :disable_editing=>false, :format=>"summary", :fips=>nil, :dry_run=>false, :supermarket_site=>"https://USER:[email protected]/artifactory/api/chef/chef-local", :config_file=>"C:\\app_homes\\.chef/knife.rb", :artifactory_deploy=>true}
DEBUG: [KNIFE-ART] global var: yes
DEBUG: [KNIFE-ART] Artifactory plugin substituting for Chef::Http::Authenticator --> omitting signing key usage
INFO: Validating ruby files
INFO: Validating templatesINFO: Syntax OK
Generating metadata for foo_bar from C:/Users/USER/AppData/Local/Temp/chef-foo_bar-build20180806-12976-16twsmg/foo_bar/metadata.rb
Making tarball foo_bar.tgz
'which' is not recognized as an internal or external command,
operable program or batch file.
DEBUG: [KNIFE-ART] Deploying cookbook foo_bar.tgz to Artifactory url at https://USER:[email protected]/artifactory/api/chef/chef-local/api/v1/cookbooks/foo_bar.tgz?category=Other
ERROR: Error uploading cookbook foo_bar to Supermarket: 403 "". Increase log verbosity (-VV) for more information.
@jasonwbarnett
Copy link
Contributor

Does anyone maintain this repository anymore? I want to contribute to fix this but I don't want to waste time if this project is abandoned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants