Actions
Bug #24979
closedImporting roles can cause 500
Difficulty:
trivial
Triaged:
No
Description
A regression introduced in 2.2.6 by #24525
2018-09-19T15:37:47 [I|app|] Started POST "/ansible/ansible_roles/confirm_import" for 127.0.0.1 at 2018-09-19 15:37:47 +0200 2018-09-19T15:37:47 [I|app|b6e30] Processing by AnsibleRolesController#confirm_import as HTML 2018-09-19T15:37:47 [I|app|b6e30] Parameters: {"utf8"=>"✓", "authenticity_token"=>"jGwuHLBl/bbwHCzVxklMdn7KLv9lsNvXmafUP1iWd6KCIk/M/IWIGMq4caMiEQ1oIR+EbmGJQPK/4rFR8sBncA==", "commit"=>"Update"} 2018-09-19T15:37:47 [D|sql|b6e30] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] 2018-09-19T15:37:47 [D|sql|b6e30] AuthSource Load (0.3ms) SELECT "auth_sources".* FROM "auth_sources" WHERE "auth_sources"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] 2018-09-19T15:37:47 [I|app|b6e30] Current user set to admin (admin) 2018-09-19T15:37:47 [D|app|b6e30] Current location set to none 2018-09-19T15:37:47 [D|app|b6e30] Current organization set to none 2018-09-19T15:37:47 [D|sql|b6e30] (0.3ms) SELECT "taxonomies"."id" FROM "taxonomies" WHERE "taxonomies"."type" IN ('Location') LIMIT $1 [["LIMIT", 1]] 2018-09-19T15:37:47 [D|sql|b6e30] (0.2ms) SELECT "taxonomies"."id" FROM "taxonomies" WHERE "taxonomies"."type" IN ('Organization') LIMIT $1 [["LIMIT", 1]] 2018-09-19T15:37:47 [I|app|b6e30] Completed 500 Internal Server Error in 8ms (ActiveRecord: 1.0ms) | | 2018-09-19T15:37:47 [F|app|] 2018-09-19T15:37:47 [F|app|] NoMethodError (undefined method `to_unsafe_h' for nil:NilClass): 2018-09-19T15:37:47 [F|app|] 2018-09-19T15:37:47 [F|app|] /home/ares/Projekty/Zdrojaky/foreman_ansible/app/controllers/ansible_roles_controller.rb:34:in `confirm_import' | app/controllers/concerns/application_shared.rb:15:in `set_timezone' | app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' | app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller' | lib/middleware/telemetry.rb:9:in `call' | lib/middleware/catch_json_parse_errors.rb:8:in `call' | lib/middleware/logging_context.rb:23:in `call'
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_ansible/pull/208 added
Updated by Marek Hulán over 6 years ago
- Related to Bug #24525: Importing roles via UI broken added
Updated by Marek Hulán over 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_ansible|d50c96025c265e3845641b9ad0564ea2d57444f3.
Updated by Marek Hulán over 6 years ago
- Fixed in Releases foreman-ansible 2.3.0 added
Actions