Actions
Bug #18414
closedkatello 3.2 will emit a NameError on import_uploads API endpoint when using a deprecated parameter
Description
I am using hammer 0.7 via the tfm 1.12 plugins repository. The hammer-cli triggers a failure in the Katello controller due to a deprecated parameter.
2017-02-07 11:49:00 a717eacb [app] [I] Started PUT "/katello/api/repositories/189/import_uploads" for 10.70.240.2 at 2017-02-07 11:49:00 -0600 2017-02-07 11:49:00 a717eacb [app] [I] Processing by Katello::Api::V2::RepositoriesController#import_uploads as JSON 2017-02-07 11:49:00 a717eacb [app] [I] Parameters: {"upload_ids"=>["973705d5-5b65-48e5-812a-2097ee3fe2c4"], "api_version"=>"v2", "id"=>"189", "repository"=>{}} 2017-02-07 11:49:00 a717eacb [app] [I] Authorized user svc-package-uploader(Service Account Package Uploader) 2017-02-07 11:49:00 a717eacb [app] [E] NameError: uninitialized constant Katello::Foreman::Deprecation | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.1.1/app/controllers/katello/api/v2/repositories_controller.rb:322:in `import_uploads' | /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action' | /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:198:in `process_action' | /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:10:in `process_action' | /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action' | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call' | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call' | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call' | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call' | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
((I've selected Release 3.2.4, but I don't see that in the published repos. Only 3.2, which is the version of Katello I am running.))
Updated by Daniel Kimsey almost 8 years ago
Note the hammer-cli command I am using:
hammer -v repository upload-content --name=devops-all-puppet --organization=ACME --product=acme-operations --path=./pkg
Updated by Justin Sherrill over 7 years ago
- Translation missing: en.field_release deleted (
222)
Updated by Eric Helms over 7 years ago
- Status changed from New to Resolved
- Translation missing: en.field_release set to 166
This has been resolved in latest releases please upgrade and re-open if you hit the issue again.
Actions