Project

General

Profile

Actions

Bug #12493

open

scoped search error w/ API param page=0

Added by Thomas McKay over 9 years ago. Updated 8 months ago.

Status:
Need more information
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Passing page=0 as param causes error in scoped search.

2015-11-16T09:18:27 [app] [E] RangeError: invalid page: 0
 | /home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/will_paginate-3.0.7/lib/will_paginate/page_number.rb:18:in `initialize'
 | /home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/will_paginate-3.0.7/lib/will_paginate/page_number.rb:54:in `new'
 | /home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/will_paginate-3.0.7/lib/will_paginate/page_number.rb:54:in `PageNumber'
 | /home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/will_paginate-3.0.7/lib/will_paginate/active_record.rb:186:in `page'
 | /home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/will_paginate-3.0.7/lib/will_paginate/active_record.rb:167:in `paginate'
 | /home/vagrant/code/katello/app/controllers/katello/api/v2/api_controller.rb:101:in `scoped_search'
 | /home/vagrant/code/katello/app/controllers/katello/api/v2/systems_controller.rb:61:in `index'
Actions

Also available in: Atom PDF