Project

General

Profile

Actions

Bug #19707

closed

Searching for specific organizations/locations broken

Added by Anonymous over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Organizations and Locations
Target version:
Fixed in Releases:
Found in Releases:

Description

If I try to search through subnets with location_id every subnet is returned as long as the location_id actually exists. If I search for a nonexsitent location_id no subnet gets returned.
Also searching for organizations seems to be broken too, because when I enter a location name as organization I get a list of all subnets.

Examples:

Subnet1:
name: net1-mgmt
location_id: 8

Subnet2:
name: net2-mgmt
location_id: 9

search_string: location_id = 9 and name ~ net%-mgmt

Result: Both Subnets
Expected Result: Subnet2

search_string: location_id = 90 and name ~ net%-mgmt

Result: Nothing
Expected Result: Nothing (this is actually correct)

search_string: organization_id = 9 and name ~ net%-mgmt

Result: Both Subnets
Expected Result: Nothing as organization_id 9 does not exist


Files

proxies.png View proxies.png 17.5 KB Anonymous, 05/30/2017 12:40 PM

Related issues 2 (0 open2 closed)

Related to Foreman - Bug #20867: Scoped search 4.1.1 introduces a regression and breaks testsClosedMarek Hulán09/07/2017Actions
Related to Foreman - Bug #20872: Update scoped_search to 4.1.2 or higherClosedDaniel Lobato Garcia09/07/2017Actions
Actions

Also available in: Atom PDF