Red Hat Bugzilla – Bug 1296572
WebUI - scoped search - auto complete suggests unquoted queries with using reserved words as entity names
Last modified: 2017-01-13 16:08:07 EST
Description of problem:
If user uses scoped-search reserved words (such as operators, parentheses, =, etc.) as entity attribute values (name, description, etc), auto_complete suggests using it unquoted which results in wrong query:
e.g. with organization name = AND:
'name = AND' instead of 'name = "AND"'
- applies to both Foreman and Katello pages.
Version-Release number of selected component (if applicable):
# rpm -qa katello
[root@smqa-x3550m3-02-vm03 ~]# rpm -qa | grep katello
Steps to Reproduce:
1. create instance of any entity (e.g. Architecture) with a reserved word as a name (e.g. "(")
2. navigate to Hosts > Architectures
3. focus the search bar
4. click the search suggestions: name -> name = -> name = ( -> name = (( -> ...
5. click search
no or funky results
such values should appear double-quoted in the suggestion exactly as multi word values:
name = "(" -> 1 result
Created redmine issue http://projects.theforeman.org/issues/13048 from this bug
Upstream bug component is Provisioning
Moving 6.2 bugs out to sat-backlog.
Upstream bug component is Search
This has been fixed in 6.2 with the removal of active search
This is an older bug which has been reported upstream. We are not going to track this bug downstream. When the upstream issue is resolved, the next build will contain the fix. Thank you.