Actions
Bug #3736
closedGET /api/users/loginname throws 500 error
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'
Updated by Dominic Cleal about 11 years ago
- Blocks Feature #3734: Allow user info to use --login as an optional argument added
Updated by Dominic Cleal about 11 years ago
- Status changed from Assigned to Ready For Testing
- Translation missing: en.field_release set to 2
Updated by Dominic Cleal about 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset df4c1afcc4ffecba6ba9d543bc3c31a94447360d.
Actions