Project

General

Profile

Actions

Bug #4154

closed

API for Model deletion is not passing the ID parameter

Added by Og Maciel about 11 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Our automation has found the following issue:

Started POST "/api/models" for 10.16.45.160 at 2014-01-21 14:10:53 -0500
Processing by Api::V2::ModelsController#create as JSON
  Parameters: {"model"=>{"name"=>"tv0426"}, "apiv"=>"v2"}
Expire fragment views/tabs_and_title_records-1 (0.1ms)
Authorized user admin(Admin User)
Completed 201 Created in 44ms (Views: 1.2ms | ActiveRecord: 0.0ms)

Started GET "/api/models?page=1&per_page=20&search=name%3D%22tv0426%22" for 10.16.45.160 at 2014-01-21 14:11:01 -0500
Processing by Api::V2::ModelsController#index as JSON
  Parameters: {"page"=>"1", "per_page"=>"20", "search"=>"name=\"tv0426\"", "apiv"=>"v2", "model"=>{}}
Authorized user admin(Admin User)
  Rendered api/v2/models/index.rabl within api/v2/layouts/index_layout (4.4ms)
Completed 200 OK in 36ms (Views: 5.3ms | ActiveRecord: 17.2ms)

Started GET "/api/models/tv0426" for 10.16.45.160 at 2014-01-21 14:11:02 -0500
Processing by Api::V2::ModelsController#show as JSON
  Parameters: {"apiv"=>"v2", "id"=>"tv0426", "model"=>{}}
Authorized user admin(Admin User)
  Rendered api/v2/models/show.rabl (2.0ms)
Completed 200 OK in 37ms (Views: 2.9ms | ActiveRecord: 20.6ms)

Started DELETE "/api/models/" for 10.16.45.160 at 2014-01-21 14:11:03 -0500

ActionController::RoutingError (No route matches [DELETE] "/api/models"):
  /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'

Started GET "/api/models/tv0426" for 10.16.45.160 at 2014-01-21 14:11:04 -0500
Processing by Api::V2::ModelsController#show as JSON
  Parameters: {"apiv"=>"v2", "id"=>"tv0426", "model"=>{}}
Authorized user admin(Admin User)
  Rendered api/v2/models/show.rabl (1.8ms)
Completed 200 OK in 33ms (Views: 2.5ms | ActiveRecord: 19.4ms)
Actions

Also available in: Atom PDF