Actions
Bug #11018
closedTaxonomy API updates throw "Invalid version format" deprecation-related error
Description
| Started PUT "/api/organizations/1" for 2001:4800:7818:104:be76:4eff:fe04:a568 at 2015-07-06 05:39:17 +0000 2015-07-06 05:39:17 [app] [I] Processing by Api::V2::OrganizationsController#update as JSON 2015-07-06 05:39:17 [app] [I] Parameters: {"organization"=>{"config_template_ids"=>["5", "7", "6", "9", "8", "10", "12", "11", "15", "13", "14", "16", "17", "19", "18", "33", "34", "35", "21", "20", "23", "22", "24", "25", "4", "2", "3", "1", "26", "28", "27", "29", "30", "31", "32", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45"]}, "apiv"=>"v2", "id"=>"1"} 2015-07-06 05:39:17 [sql] [D] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."lower_login" = 'admin' LIMIT 1 2015-07-06 05:39:17 [sql] [D] AuthSource Load (0.2ms) SELECT "auth_sources".* FROM "auth_sources" WHERE "auth_sources"."id" = 1 LIMIT 1 2015-07-06 05:39:17 [sql] [D] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."lower_login" = 'admin' LIMIT 1 2015-07-06 05:39:17 [sql] [D] Authenticated user admin against INTERNAL authentication source 2015-07-06 05:39:17 [sql] [D] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."lower_login" = 'foreman_admin' LIMIT 1 2015-07-06 05:39:17 [app] [D] Setting current user thread-local variable to foreman_admin 2015-07-06 05:39:17 [app] [D] Setting current user thread-local variable to nil 2015-07-06 05:39:17 [sql] [D] Post-login processing for admin 2015-07-06 05:39:17 [sql] [D] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."lower_login" = 'foreman_admin' LIMIT 1 2015-07-06 05:39:17 [app] [D] Setting current user thread-local variable to foreman_admin 2015-07-06 05:39:17 [sql] [D] (0.1ms) BEGIN 2015-07-06 05:39:17 [sql] [D] (0.2ms) UPDATE "users" SET "last_login_on" = '2015-07-06 05:39:17.179248', "updated_at" = '2015-07-06 05:39:17.180074' WHERE "users"."id" = 3 2015-07-06 05:39:17 [sql] [D] Role Load (0.2ms) SELECT "roles".* FROM "roles" WHERE "roles"."name" = 'Anonymous' LIMIT 1 2015-07-06 05:39:17 [sql] [D] (0.3ms) SELECT "roles".id FROM "roles" INNER JOIN "user_roles" ON "roles"."id" = "user_roles"."role_id" WHERE "user_roles"."owner_id" = 3 AND "user_roles"."owner_type" = 'User' 2015-07-06 05:39:17 [sql] [D] (0.5ms) COMMIT 2015-07-06 05:39:17 [sql] [D] CACHE (0.0ms) SELECT "roles".* FROM "roles" WHERE "roles"."name" = 'Anonymous' LIMIT 1 2015-07-06 05:39:17 [sql] [D] Role Exists (0.3ms) SELECT 1 AS one FROM "roles" INNER JOIN "user_roles" ON "roles"."id" = "user_roles"."role_id" WHERE "user_roles"."owner_id" = 3 AND "user_roles"."owner_type" = 'User' AND "roles"."id" = 8 LIMIT 1 2015-07-06 05:39:17 [app] [D] Setting current user thread-local variable to nil 2015-07-06 05:39:17 [app] [D] Setting current user thread-local variable to admin 2015-07-06 05:39:17 [sql] [D] AuthSourceHidden Load (0.2ms) SELECT "auth_sources".* FROM "auth_sources" WHERE "auth_sources"."type" IN ('AuthSourceHidden') 2015-07-06 05:39:17 [sql] [D] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."lower_login" = 'admin' AND (users.auth_source_id <> 2) ORDER BY firstname LIMIT 1 2015-07-06 05:39:17 [app] [I] Authorized user admin(Admin User) 2015-07-06 05:39:17 [app] [D] Setting current user thread-local variable to admin 2015-07-06 05:39:17 [app] [W] Action failed | Foreman::Exception: ERF42-9767 [Foreman::Exception]: Invalid version format, please enter in x.y (only major version). | /usr/share/foreman/app/services/foreman/deprecation.rb:5:in `deprecation_warning' | /usr/share/foreman/app/controllers/concerns/api/v2/taxonomies_controller.rb:84:in `rename_config_template' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:555:in `block (5 levels) in _run__2294695437953975365__process_action__776731729083643683__callbacks' | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7560' | /usr/share/foreman/app/controllers/api/v2/base_controller.rb:151:in `disable_json_root'
template assign to organization hammer organization add-config-template --name org68 --config-template tpl68 [command #22] ERF42-9767 [Foreman::Exception]: Invalid version format, please enter in x.y (only major version). [FAIL] returns ok hammer organization remove-config-template --name org68 --config-template tpl68 [command #23] ERF42-9767 [Foreman::Exception]: Invalid version format, please enter in x.y (only major version). [FAIL] returns ok
Updated by Dominic Cleal over 9 years ago
- Related to Refactor #10635: Formalize deprecation warnings added
Updated by The Foreman Bot over 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2518 added
- Pull request deleted (
)
Updated by Dominic Cleal over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 4cd44e2649f8f5cf1aad234c880bd3468ccd5ffe.
Actions