Project

General

Profile

Actions

Bug #21017

closed

Internal Server error when searching product repository by numbers with more than 9 digits

Added by Jonathon Turel over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Repositories
Target version:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:
Actions #1

Updated by Jonathon Turel over 6 years ago

Searching the repositories page for something like '9876543210' raises an error because of the query generated by the scoped_search gem which has this clause:

                         OR              "katello_repositories"."id" IN
                                                (
                                                       SELECT "repository_id" 
                                                       FROM   "katello_content_view_repositories" 
                                                       WHERE  "katello_content_view_repositories"."content_view_id" = '9876543210' )

The search input is out of bounds for postgres integers.

Actions #2

Updated by Jonathon Turel over 6 years ago

  • Bugzilla link set to 1467722
Actions #4

Updated by The Foreman Bot over 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6959 added
Actions #5

Updated by Anonymous over 6 years ago

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

Also available in: Atom PDF