Project

General

Profile

Actions

Bug #24979

closed

Importing roles can cause 500

Added by Marek Hulán over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Difficulty:
trivial
Triaged:
No
Fixed in Releases:
Found in Releases:

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'

Related issues 1 (0 open1 closed)

Related to Ansible - Bug #24525: Importing roles via UI brokenClosedOndřej PražákActions
Actions #1

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/208 added
Actions #2

Updated by Marek Hulán over 5 years ago

  • Related to Bug #24525: Importing roles via UI broken added
Actions #3

Updated by Marek Hulán over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Marek Hulán over 5 years ago

  • Fixed in Releases foreman-ansible 2.3.0 added
Actions

Also available in: Atom PDF