Actions
Bug #12888
closedexception handling during api call causes does not handle 'class' errors
Difficulty:
trivial
Triaged:
Yes
Pull request:
Description
When testing a pr i noticed that if something like scoped search throws an error, you get anothe rexception.
To reproduce:
In app/models/product.rb, add:
scoped_search :on => :foo
and then search for products with "foo = bar":
http://devbox:3000/katello/api/v2/products?organization_id=1&search=foo=bar
Result:
undefined method `errors' for #<Class:0x00000007244490>
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/5673 added
Updated by The Foreman Bot over 8 years ago
- Pull request https://github.com/Katello/katello/pull/5675 added
Updated by Justin Sherrill over 8 years ago
- Pull request deleted (
https://github.com/Katello/katello/pull/5675)
Updated by Justin Sherrill over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|ccdd5add7bd63544a7ffe4f996590dd1caf6bcb1.
Actions