Project

General

Profile

Bug #4745

ERF51-5531: unknown permission for katello/api/v2/organizations#repo_discover (Foreman::Exception)

Added by Pavel Studenik over 8 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
High
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

foreman-1.5.0.9-1.el6sat.noarch

When I tried discovery repo (Content -> Products -> Yum Repo Discovery), I got following error:

Processing by Katello::Api::V2::OrganizationsController#repo_discover as JSON
Parameters: {"id"=>"ACME_Corporation", "url"=>"http://yum.spacewalkproject.org/2.1-client/Fedora/20/x86_64/", "api_version"=>"v2", "organization"=>{"id"=>"ACME_Corporation"}}
ERF51-5531: unknown permission for katello/api/v2/organizations#repo_discover (Foreman::Exception)
/usr/share/foreman/app/controllers/api/base_controller.rb:275:in `action_permission'
/usr/share/foreman/app/controllers/api/base_controller.rb:50:in `resource_scope'
/usr/share/foreman/app/controllers/api/base_controller.rb:153:in `block in
...
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
Rendered api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout (0.9ms)
Completed 500 Internal Server Error in 20ms (Views: 9.6ms | ActiveRecord: 0.4ms)

Associated revisions

Revision 36c2153a (diff)
Added by Justin Sherrill over 8 years ago

fixes #4745 - fixing error on repo discover

This is a temporary fix until we fully integrate foreman roles into katello

Revision 009db9cc
Added by Justin Sherrill over 8 years ago

Merge pull request #3929 from jlsherrill/discover

fixes #4745 - fixing error on repo discover

History

#1 Updated by Dominic Cleal over 8 years ago

  • Project changed from Foreman to Katello
  • Category deleted (47)

#2 Updated by Mike McCune over 8 years ago

  • Triaged set to Yes

#3 Updated by Mike McCune over 8 years ago

  • Triaged deleted (Yes)

#4 Updated by Mike McCune over 8 years ago

  • Assignee set to Partha Aji
  • Priority changed from Normal to High
  • Triaged set to Yes

#5 Updated by Justin Sherrill over 8 years ago

  • Category set to Web UI
  • Status changed from New to Assigned
  • Assignee changed from Partha Aji to Justin Sherrill

#7 Updated by Justin Sherrill over 8 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset katello|commit:36c2153a7bd0386251e86a2738b60262ac6ed2c2.

#8 Updated by Eric Helms almost 8 years ago

  • Legacy Backlogs Release (now unused) set to 13

Also available in: Atom PDF