Project

General

Profile

Actions

Bug #3736

closed

GET /api/users/loginname throws 500 error

Added by Dominic Cleal over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Started GET "/api/users/admin" for ::1 at 2013-11-23 09:43:52 +0000
Processing by Api::V1::UsersController#show as JSON
  Parameters: {"id"=>"admin", "user"=>{}}
Authorized user admin(Admin User)
undefined method `find_by_name' for #<Class:0x0000000600fdb0> (NoMethodError)
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/dynamic_matchers.rb:27:in `method_missing'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/delegation.rb:14:in `block in find_by_name'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation.rb:241:in `block in scoping'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/scoping.rb:98:in `with_scope'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation.rb:241:in `scoping'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/delegation.rb:14:in `find_by_name'
/usr/share/foreman/app/controllers/api/base_controller.rb:124:in `block in find_resource'
/usr/share/foreman/app/controllers/api/base_controller.rb:120:in `each'
/usr/share/foreman/app/controllers/api/base_controller.rb:120:in `find'
/usr/share/foreman/app/controllers/api/base_controller.rb:120:in `find_resource'

Related issues 1 (0 open1 closed)

Blocks Hammer CLI - Feature #3734: Allow user info to use --login as an optional argumentClosedMartin Bacovsky11/22/2013Actions
Actions #1

Updated by Dominic Cleal over 10 years ago

  • Blocks Feature #3734: Allow user info to use --login as an optional argument added
Actions #2

Updated by Dominic Cleal over 10 years ago

  • Status changed from Assigned to Ready For Testing
  • Translation missing: en.field_release set to 2
Actions #3

Updated by Dominic Cleal over 10 years ago

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

Also available in: Atom PDF