Project

General

Profile

Actions

Bug #4958

closed

Can't edit organizations in Katello mode

Added by Mike McCune about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When running Katello and you try to use the UI to update an Organization you get the following error:

"Organization Not Found"

the log files contain:

Processing by OrganizationsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"h/B4veTECK/p8tc7Zxzfc12aYgSVCss+PZvHTr99iEI=", "organization"=>{"parent_id"=>"", "name"=>"ACME_Corporation", "description"=>"ACME_Corporation Organization", "service_level"=>"", "ignore_types"=>["0", "0", "0", "0", "0", "0", "0", "0", "0"], "user_ids"=>[""], "smart_proxy_ids"=>["", "1"], "subnet_ids"=>["", "1"], "compute_resource_ids"=>["", "1"], "medium_ids"=>["", "6"], "config_template_ids"=>["", "5", "4", "6", "7", "8", "10", "9", "22", "23", "24", "30", "31", "12", "11", "13", "14", "15", "3", "2", "1", "16", "18", "17", "19", "20", "21", "25", "26", "27", "28", "29", "32"], "domain_ids"=>["", "1"], "environment_ids"=>["", "1", "2"], "hostgroup_ids"=>["", "1"], "location_ids"=>[""]}, "commit"=>"Submit", "id"=>"1-acme_corporation"}
Rendered common/404.html.erb within layouts/application (1.5ms)
Rendered layouts/base.html.erb (1.8ms)
Completed 404 Not Found in 329ms (Views: 6.4ms | ActiveRecord: 31.1ms)

other times you will get an actual 500 error:

Processing by OrganizationsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"HiSybkuvpWfPBD6c8uh20CyxzpvWw0qbcPW/kmXOBJ0=", "organization"=>{"parent_id"=>"", "name"=>"ACME_Corporation", "description"=>"ACME_Corporation Organization222", "service_level"=>"", "ignore_types"=>["0", "0", "0", "0", "0", "0", "0", "0", "0"], "user_ids"=>[""], "smart_proxy_ids"=>["", "1"], "subnet_ids"=>["", "1"], "compute_resource_ids"=>["", "1"], "medium_ids"=>["", "6"], "config_template_ids"=>[""], "domain_ids"=>["", "1"], "environment_ids"=>["", "1", "2"], "hostgroup_ids"=>["", "1"], "location_ids"=>[""]}, "commit"=>"Submit", "id"=>"1-acme_corporation"}
Operation FAILED: Failed to replace environments because one or more of the new records could not be saved.
Rendered common/500.html.erb within layouts/application (121.4ms)
Rendered layouts/base.html.erb (1.1ms)
Completed 500 Internal Server Error in 363ms (Views: 125.6ms | ActiveRecord: 10.9ms)

ths does not happen with Foreman standalone

Actions #1

Updated by Joseph Magen about 10 years ago

  • Category changed from API to Web UI
  • Status changed from New to Assigned
  • Assignee changed from Brad Buckingham to Joseph Magen
Actions #2

Updated by Joseph Magen about 10 years ago

  • Status changed from Assigned to Ready For Testing

the organization_extensions were overriding Foreman's has_many :environments. I changed it to has_many kt_environments.

https://github.com/Katello/katello/pull/3920

Actions #3

Updated by Anonymous about 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Applied in changeset katello|commit:c24c2be0c22da676316a50e3ddcbf0aa6355326d.

Actions #4

Updated by Eric Helms almost 10 years ago

  • Triaged changed from No to Yes
Actions #5

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF