Bug 1829279
| Summary: | Custom Button: create custom button with REST API fails | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Nikhil Dhandre <ndhandre> |
| Component: | API | Assignee: | drew uhlmann <duhlmann> |
| Status: | CLOSED DUPLICATE | QA Contact: | Nikhil Dhandre <ndhandre> |
| Severity: | urgent | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> |
| Priority: | unspecified | ||
| Version: | 5.11.5 | CC: | obarenbo, yrudman |
| Target Milestone: | GA | Keywords: | Regression |
| Target Release: | cfme-future | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-04-29 16:15:11 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | CFME Core | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Nikhil Dhandre
2020-04-29 10:35:52 UTC
Hey Nikhil, please include stack traces if you can. Error caught: [NameError] undefined local variable or method `custom_button' for #<Api::CustomButtonsController:0x00007ff9c06d0af8> /Users/drewmu/manageiq-api/app/controllers/api/custom_buttons_controller.rb:14:in `rescue in create_resource' /Users/drewmu/manageiq-api/app/controllers/api/custom_buttons_controller.rb:3:in `create_resource' /Users/drewmu/manageiq-api/app/controllers/api/base_controller.rb:76:in `block in create' /Users/drewmu/manageiq-api/app/controllers/api/base_controller.rb:66:in `collect' /Users/drewmu/manageiq-api/app/controllers/api/base_controller.rb:66:in `create' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/actionpack-5.1.7/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/actionpack-5.1.7/lib/abstract_controller/base.rb:186:in `process_action' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/actionpack-5.1.7/lib/action_controller/metal/rendering.rb:30:in `process_action' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/actionpack-5.1.7/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/activesupport-5.1.7/lib/active_support/callbacks.rb:131:in `run_callbacks' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/actionpack-5.1.7/lib/abstract_controller/callbacks.rb:19:in `process_action' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/actionpack-5.1.7/lib/action_controller/metal/rescue.rb:20:in `process_action' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/actionpack-5.1.7/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/activesupport-5.1.7/lib/active_support/notifications.rb:166:in `block in instrument' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/activesupport-5.1.7/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/activesupport-5.1.7/lib/active_support/notifications.rb:166:in `instrument' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/actionpack-5.1.7/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/actionpack-5.1.7/lib/action_controller/metal/params_wrapper.rb:252:in `process_action' /Users/drewmu/.rvm/gems/ruby-2.5.5/gems/activerecord-5.1.7/lib/active_record/railties/controller_runtime.rb:22:in `process_action' thanks! closing though. *** This bug has been marked as a duplicate of bug 1827818 *** |